code: def folderitem(self, obj, item, index):
          
          url = item.get("url")
          title = item.get("Title")
  
          item["replace"]["Title"] = get_link(url, value=title)
          item["getDate"] = self.localize_date(obj.getDate())
          item["getValidFrom"] = self.localize_date(obj.getValidFrom())
          item["getValidTo"] = self.localize_date(obj.getValidTo())
  
          if obj.getInternal() is True:
              item["replace"]["getAgency"] = ""
              item["state_class"] = "%s %s" % \
                  (item["state_class"], "internalcertificate")
  
          item["getDocument"] = ""
          item["replace"]["getDocument"] = ""
          doc = self.get_document(obj)
          if doc and doc.get_size() > 0:
              filename = doc.filename
              download_url = "{}/at_download/Document".format(url)
              anchor = get_link(download_url, filename)
              item["getDocument"] = filename
              item["replace"]["getDocument"] = anchor
  
          # Latest valid certificate
          if obj == self.latest_certificate:
              item["state_class"] = "state-published"
          # Valid certificate
          elif obj in self.valid_certificates:
              item["state_class"] = "state-valid state-published"
          # Invalid certificates
          else:
              img = get_image("exclamation.png", title=t(_("Out of date")))
              item["replace"]["getValidTo"] = "%s %s" % (item["getValidTo"], img)
              item["state_class"] = "state-invalid"
  
          return item
docs: Augment folder listing item with additional data