def folderitem(self, obj, item, index):
        """Prepare a data item for the listing.

        :param obj: The catalog brain or content object
        :param item: Listing item (dictionary)
        :param index: Index of the listing item
        :returns: Augmented listing data item
        """

        item['Service'] = obj.Title
        item['class']['service'] = 'service_title'
        item['service_uid'] = obj.getServiceUID
        item['Keyword'] = obj.getKeyword
        item['Unit'] = format_supsub(obj.getUnit) if obj.getUnit else ''
        item['retested'] = obj.getRetestOfUID and True or False
        item['class']['retested'] = 'center'

        # Append info link before the service
        # see: bika.lims.site.coffee for the attached event handler
        item["before"]["Service"] = get_link(
            "analysisservice_info?service_uid={}&analysis_uid={}"
            .format(obj.getServiceUID, obj.UID),
            value="<span class='glyphicon glyphicon-info-sign'></span>",
            css_class="service_info")

        # Note that getSampleTypeUID returns the type of the Sample, no matter
        # if the sample associated to the analysis is a regular Sample (routine
        # analysis) or if is a Reference Sample (Reference Analysis). If the
        # analysis is a duplicate, it returns the Sample Type of the sample
        # associated to the source analysis.
        item['st_uid'] = obj.getSampleTypeUID

        # Fill item's category
        self._folder_item_category(obj, item)
        # Fill item's row class
        self._folder_item_css_class(obj, item)
        # Fill result and/or result options
        self._folder_item_result(obj, item)
        # Fill calculation and interim fields
        self._folder_item_calculation(obj, item)
        # Fill method
        self._folder_item_method(obj, item)
        # Fill instrument
        self._folder_item_instrument(obj, item)
        # Fill analyst
        self._folder_item_analyst(obj, item)
        # Fill attachments
        self._folder_item_attachments(obj, item)
        # Fill uncertainty
        self._folder_item_uncertainty(obj, item)
        # Fill Detection Limits
        self._folder_item_detection_limits(obj, item)
        # Fill Specifications
        self._folder_item_specifications(obj, item)
        # Fill Due Date and icon if late/overdue
        self._folder_item_duedate(obj, item)
        # Fill verification criteria
        self._folder_item_verify_icons(obj, item)
        # Fill worksheet anchor/icon
        self._folder_item_assigned_worksheet(obj, item)
        # Fill reflex analysis icons
        self._folder_item_reflex_icons(obj, item)
        # Fill hidden field (report visibility)
        self._folder_item_report_visibility(obj, item)
        # Renders additional icons to be displayed
        self._folder_item_fieldicons(obj)
        # Renders remarks toggle button
        self._folder_item_remarks(obj, item)

        return item
def folderitem ( self , obj , item , index ) : item [ 'Service' ] = obj . Title item [ 'class' ] [ 'service' ] = 'service_title' item [ 'service_uid' ] = obj . getServiceUID item [ 'Keyword' ] = obj . getKeyword item [ 'Unit' ] = format_supsub ( obj . getUnit ) if obj . getUnit else '' item [ 'retested' ] = obj . getRetestOfUID and True or False item [ 'class' ] [ 'retested' ] = 'center' item [ "before" ] [ "Service" ] = get_link ( "analysisservice_info?service_uid={}&analysis_uid={}" . format ( obj . getServiceUID , obj . UID ) , value = "<span class='glyphicon glyphicon-info-sign'></span>" , css_class = "service_info" ) item [ 'st_uid' ] = obj . getSampleTypeUID self . _folder_item_category ( obj , item ) self . _folder_item_css_class ( obj , item ) self . _folder_item_result ( obj , item ) self . _folder_item_calculation ( obj , item ) self . _folder_item_method ( obj , item ) self . _folder_item_instrument ( obj , item ) self . _folder_item_analyst ( obj , item ) self . _folder_item_attachments ( obj , item ) self . _folder_item_uncertainty ( obj , item ) self . _folder_item_detection_limits ( obj , item ) self . _folder_item_specifications ( obj , item ) self . _folder_item_duedate ( obj , item ) self . _folder_item_verify_icons ( obj , item ) self . _folder_item_assigned_worksheet ( obj , item ) self . _folder_item_reflex_icons ( obj , item ) self . _folder_item_report_visibility ( obj , item ) self . _folder_item_fieldicons ( obj ) self . _folder_item_remarks ( obj , item ) return item
Prepare a data item for the listing.

        :param obj: The catalog brain or content object
        :param item: Listing item (dictionary)
        :param index: Index of the listing item
        :returns: Augmented listing data item