code: def folderitem(self, obj, item, index):
          
  
          uid = api.get_uid(obj)
          url = api.get_url(obj)
          title = api.get_title(obj)
  
          # get the category
          if self.show_categories_enabled():
              category = obj.getCategoryTitle()
              if category not in self.categories:
                  self.categories.append(category)
              item["category"] = category
  
          ref_results = self.get_reference_results()
          ref_result = ref_results.get(uid)
  
          item["Title"] = title
          item["replace"]["Title"] = get_link(url, value=title)
          item["result"] = ref_result.get("result")
          item["min"] = ref_result.get("min")
          item["max"] = ref_result.get("max")
  
          # Icons
          after_icons = ""
          if obj.getAccredited():
              after_icons += get_image(
                  "accredited.png", title=_("Accredited"))
          if obj.getAttachmentOption() == "r":
              after_icons += get_image(
                  "attach_reqd.png", title=_("Attachment required"))
          if obj.getAttachmentOption() == "n":
              after_icons += get_image(
                  "attach_no.png", title=_("Attachment not permitted"))
          if after_icons:
              item["after"]["Title"] = after_icons
  
          return item
docs: Service triggered each time an item is iterated in folderitems.
  
          The use of this service prevents the extra-loops in child objects.
  
          :obj: the instance of the class to be foldered
          :item: dict containing the properties of the object to be used by
              the template
          :index: current index of the item