code: def folderitem(self, obj, item, index):
          
  
          title = obj.Title()
          description = obj.Description()
          url = obj.absolute_url()
  
          item["replace"]["Title"] = get_link(url, value=title)
          item["Description"] = description
  
          sample_types = obj.getSampleTypes()
          if sample_types:
              links = map(
                  lambda st: get_link(st.absolute_url(),
                                      value=st.Title(),
                                      css_class="link"),
                  sample_types)
              item["replace"]["SampleTypes"] = ", ".join(links)
          else:
              item["SampleTypes"] = ""
  
          parent = obj.aq_parent
          if parent.portal_type == "Client":
              item["Owner"] = parent.aq_parent.Title()
              item["replace"]["Owner"] = get_link(
                  parent.absolute_url(), value=parent.getName())
          else:
              item["Owner"] = self.context.bika_setup.laboratory.Title()
  
          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