mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Yet another merge from head to WCM-DEV2.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3774 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
149
config/alfresco/templates/content/examples/records_report.ftl
Normal file
149
config/alfresco/templates/content/examples/records_report.ftl
Normal file
@@ -0,0 +1,149 @@
|
||||
<#-- Records Report - Template to apply to a records space to report on status of records -->
|
||||
|
||||
<style>
|
||||
body {font:small/1.2em arial,helvetica,clean,sans-serif;font:x-small;margin-top: 10px; margin-right: 10px; margin-bottom: 0px; margin-left: 10px;min-width:500px;}
|
||||
</style>
|
||||
|
||||
<#assign datetimeformat="dd MMM yyyy HH:mm">
|
||||
<#assign xqueryformat="'yyyy-MM-dd'T'HH:mm:ss.000'Z'">
|
||||
<#-- space.childrenByXPath[".//*[@rma:nextReviewDate < '${date?string(xqueryformat)}']"]?sort_by(['properties', 'rma:nextReviewDate']) -->
|
||||
|
||||
<#macro standardHeaders title extra="">
|
||||
<tr><td colspan="10"><h3>${title}</h3></td></tr>
|
||||
<tr Style="font-size:130%;font-weight:bold;color:#0000FF;">
|
||||
<td width=16></td>
|
||||
<td>ID</td>
|
||||
<td width=16></td>
|
||||
<td>Title</td>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td>File Plan</td>
|
||||
<td>Originator</td>
|
||||
<td>Date Filed</td>
|
||||
<td>${extra}</td>
|
||||
</tr>
|
||||
</#macro>
|
||||
|
||||
<#macro standardProperties child extraProperty="">
|
||||
<tr>
|
||||
<!-- Set up workspace path to child and it's associated parent and file plan -->
|
||||
<#assign childRef=child.nodeRef>
|
||||
<#assign childWorkspace=childRef[0..childRef?index_of("://")-1]>
|
||||
<#assign childStorenode=childRef[childRef?index_of("://")+3..]>
|
||||
<#assign childPath="${childWorkspace}/${childStorenode}">
|
||||
|
||||
<#if child.parent.hasAspect("rma:filePlan")>
|
||||
<#assign fileplan=child.parent>
|
||||
<#elseif child.parent.parent?exists && child.parent.hasAspect("rma:filePlan")>
|
||||
<#assign fileplan=child.parent.parent>
|
||||
<#else>
|
||||
<#assign fileplan=child.parent>
|
||||
</#if>
|
||||
|
||||
<#assign fpRef=fileplan.nodeRef>
|
||||
<#assign fpWorkspace=fpRef[0..fpRef?index_of("://")-1]>
|
||||
<#assign fpStorenode=fpRef[fpRef?index_of("://")+3..]>
|
||||
<#assign fileplanPath="${fpWorkspace}/${fpStorenode}">
|
||||
|
||||
<td width=16> <#-- Record properties icon -->
|
||||
<a href="/alfresco/navigate/showDocDetails/${childPath}">
|
||||
<img src="/alfresco/images/icons/View_details.gif" border=0 align=absmiddle alt="Record Details" title="Record Details"></a>
|
||||
</td>
|
||||
<td> <#-- Record identifier -->
|
||||
<a href="/alfresco/navigate/showDocDetails/${childPath}">
|
||||
${child.properties["rma:recordIdentifier"]}</a>
|
||||
</td>
|
||||
<td width=16> <#-- Record icon -->
|
||||
<a href="/alfresco/download/direct/${childPath}/${child.name}">
|
||||
<img src="/alfresco${child.icon16}" width=16 height=16 border=0 align=absmiddle alt="View Record" title="View Record"></a>
|
||||
</td>
|
||||
<td> <#-- Record title -->
|
||||
<a href="/alfresco/download/direct/${childPath}/${child.name}">
|
||||
${child.properties["cm:title"]}</a>
|
||||
</td>
|
||||
<td width=16> <#-- Fileplan icon -->
|
||||
<a href="/alfresco/navigate/browse/${fileplanPath}">
|
||||
<img src="/alfresco${fileplan.icon16}" width=16 height=16 border=0 align=absmiddle alt="Fileplan Contents" title="Fileplan Contents"></a>
|
||||
</td>
|
||||
<td width=16> <#-- Fileplan properties icon -->
|
||||
<a href="/alfresco/navigate/showDocDetails/${fileplanPath}">
|
||||
<img src="/alfresco/images/icons/View_details.gif" border=0 align=absmiddle alt="Fileplan Details" title="Fileplan Details"></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/alfresco/navigate/showDocDetails/${fileplanPath}">
|
||||
${fileplan.name}</a>
|
||||
</td>
|
||||
<td>
|
||||
${child.properties["rma:originator"]}
|
||||
</td>
|
||||
<td>
|
||||
${child.properties["rma:dateFiled"]?string(datetimeformat)}
|
||||
</td>
|
||||
<td>
|
||||
${extraProperty}
|
||||
</td>
|
||||
</tr>
|
||||
</#macro>
|
||||
|
||||
<#macro standardFooters>
|
||||
<tr><td colspan="10"><hr/></td></tr>
|
||||
<tr><td colspan="10"></td></tr>
|
||||
</#macro>
|
||||
|
||||
|
||||
<table width="100%" border="0" cellpadding="1" cellspacing="1">
|
||||
|
||||
<@standardHeaders title="Recent Records" extra="Date"/>
|
||||
<#list space.childrenByXPath[".//*[@rma:dateReceived]"]?sort_by(['properties', 'rma:dateReceived']) as child>
|
||||
<#if (dateCompare(child.properties["cm:modified"], date, 1000*60*60*24*7) == 1) || (dateCompare(child.properties["cm:created"], date, 1000*60*60*24*7) == 1)>
|
||||
<@standardProperties child=child extraProperty=child.properties["rma:dateReceived"]?string(datetimeformat) />
|
||||
</#if>
|
||||
</#list>
|
||||
<@standardFooters/>
|
||||
|
||||
|
||||
<@standardHeaders title="Vital Records Due for Review" extra="Next Review Due"/>
|
||||
<#list space.childrenByXPath[".//*[@rma:nextReviewDate]"]?sort_by(['properties', 'rma:nextReviewDate']) as child>
|
||||
<#if (dateCompare(date, child.properties["rma:nextReviewDate"], 1000*60*60*24*7) == 1)>
|
||||
<@standardProperties child=child extraProperty=child.properties["rma:nextReviewDate"]?string(datetimeformat) />
|
||||
</#if>
|
||||
</#list>
|
||||
<@standardFooters/>
|
||||
|
||||
|
||||
<@standardHeaders title="Records Due for Cutoff" extra="Cutoff Date"/>
|
||||
<#list space.childrenByXPath[".//*[@rma:cutoffDateTime]"]?sort_by(['properties', 'rma:cutoffDateTime']) as child>
|
||||
<#if (dateCompare(date, child.properties["rma:cutoffDateTime"], 1000*60*60*24*7) == 1)>
|
||||
<@standardProperties child=child extraProperty=child.properties["rma:cutoffDateTime"]?string(datetimeformat) />
|
||||
</#if>
|
||||
</#list>
|
||||
<@standardFooters/>
|
||||
|
||||
|
||||
<@standardHeaders title="Records Retention Due for Expiry" extra="Expiry Date"/>
|
||||
<#list space.childrenByXPath[".//*[@rma:holdUntil]"]?sort_by(['properties', 'rma:holdUntil']) as child>
|
||||
<#if (dateCompare(date, child.properties["rma:holdUntil"], 1000*60*60*24*7) == 1)>
|
||||
<@standardProperties child=child extraProperty=child.properties["rma:holdUntil"]?string(datetimeformat) />
|
||||
</#if>
|
||||
</#list>
|
||||
<@standardFooters/>
|
||||
|
||||
|
||||
<@standardHeaders title="Records Due for Transfer" extra="Transfer Date"/>
|
||||
<#list space.childrenByXPath[".//*[@rma:transferDate]"]?sort_by(['properties', 'rma:transferDate']) as child>
|
||||
<#if (dateCompare(date, child.properties["rma:transferDate"], 1000*60*60*24*7) == 1)>
|
||||
<@standardProperties child=child extraProperty=child.properties["rma:transferDate"]?string(datetimeformat) />
|
||||
</#if>
|
||||
</#list>
|
||||
<@standardFooters/>
|
||||
|
||||
|
||||
<@standardHeaders title="Records Due for Destruction" extra="Destruction Due Date"/>
|
||||
<#list space.childrenByXPath[".//*[@rma:destructionDate]"]?sort_by(['properties', 'rma:destructionDate']) as child>
|
||||
<#if (dateCompare(date, child.properties["rma:destructionDate"], 1000*60*60*24*7) == 1)>
|
||||
<@standardProperties child=child extraProperty=child.properties["rma:destructionDate"]?string(datetimeformat) />
|
||||
</#if>
|
||||
</#list>
|
||||
<@standardFooters/>
|
||||
|
||||
</table>
|
@@ -126,4 +126,18 @@
|
||||
</view:properties>
|
||||
<view:associations></view:associations>
|
||||
</cm:content>
|
||||
<cm:content xmlns:alf="http://www.alfresco.org" xmlns:d="http://www.alfresco.org/model/dictionary/1.0" xmlns:view="http://www.alfresco.org/view/repository/1.0" xmlns:sys="http://www.alfresco.org/model/system/1.0" xmlns:act="http://www.alfresco.org/model/action/1.0" xmlns:rule="http://www.alfresco.org/model/rule/1.0" xmlns:fm="http://www.alfresco.org/model/forum/1.0" xmlns:app="http://www.alfresco.org/model/application/1.0" xmlns:usr="http://www.alfresco.org/model/user/1.0" xmlns:ver="http://www.alfresco.org/model/versionstore/1.0" xmlns:cm="http://www.alfresco.org/model/content/1.0" xmlns="" view:childName="cm:records_report.ftl">
|
||||
<view:aspects>
|
||||
<cm:titled></cm:titled>
|
||||
<app:inlineeditable></app:inlineeditable>
|
||||
</view:aspects>
|
||||
<view:properties>
|
||||
<app:editInline>true</app:editInline>
|
||||
<cm:description>Displays the current state of records in a file plan space or a space containing a file plan.</cm:description>
|
||||
<cm:content>contentUrl=classpath:alfresco/templates/content/examples/records_report.ftl|mimetype=text/plain|size=6134|encoding=UTF-8</cm:content>
|
||||
<cm:title>records_report.ftl</cm:title>
|
||||
<cm:name>records_report.ftl</cm:name>
|
||||
</view:properties>
|
||||
<view:associations></view:associations>
|
||||
</cm:content>
|
||||
</view:view>
|
Reference in New Issue
Block a user