<commit_before><#include "/org/alfresco/components/form/controls/association.ftl" />

<#macro renderPackageItems field>

   <#local documentLinkResolver>
	function(item)
	{
	   return item.isContainer ? Alfresco.util.siteURL("folder-details?nodeRef=" + item.nodeRef, { site: item.site }) : Alfresco.util.siteURL("document-details?nodeRef=" + item.nodeRef, { site: item.site });
	}
   </#local>
   
   <#local signatureLinkResolver>
	function(item)
	{
	   return Alfresco.util.siteURL("sign-document?nodeRef=" + item.nodeRef, { site: item.site });
	}
   </#local>

   <#local actions = []>

   <#local viewMoreAction = { "name": "view_details", "label": "form.control.object-picker.countersign.workflow.view_details", "link": documentLinkResolver }>
   <#local signAction = { "name" : "sign_document", "label":"form.control.object-picker.countersign.workflow.sign_document", "link": signatureLinkResolver }>
   <#local actions = actions + [viewMoreAction]>
   <#local actions = actions + [signAction]>

   <script type="text/javascript">//<![CDATA[
   (function()
   {
      <#-- Modify the properties on the object finder created by association control--><commit_msg>Fixed bug in "sign document" link in workflow package control<commit_after><#include "/org/alfresco/components/form/controls/association.ftl" />

<#macro renderPackageItems field>

   <#local documentLinkResolver>
	function(item)
	{
	   return item.isContainer ? Alfresco.util.siteURL("folder-details?nodeRef=" + item.nodeRef, { site: item.site }) : Alfresco.util.siteURL("document-details?nodeRef=" + item.nodeRef, { site: item.site });
	}
   </#local>
   
   <#local signatureLinkResolver>
	function(item)
	{
	   return Alfresco.util.siteURL("sign-document?nodeRef=" + item.nodeRef, { site: item.site } + "&sigType=pdf");
	}
   </#local>

   <#local actions = []>

   <#local viewMoreAction = { "name": "view_details", "label": "form.control.object-picker.countersign.workflow.view_details", "link": documentLinkResolver }>
   <#local signAction = { "name" : "sign_document", "label":"form.control.object-picker.countersign.workflow.sign_document", "link": signatureLinkResolver }>
   <#local actions = actions + [viewMoreAction]>
   <#local actions = actions + [signAction]>

   <script type="text/javascript">//<![CDATA[
   (function()
   {
      <#-- Modify the properties on the object finder created by association control-->
{'fraction_non_alphanumeric': 0.16215089620675283, 'fraction_numerical': 0.0, 'mean_word_length': 4.633802816901408, 'pattern_counts': {'":': 10, '<': 31, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2377456', 'n_tokens_mistral': 781, 'n_tokens_neox': 763, 'n_words': 143}