RM-1099 (Refactor Transfer and Accession reports)

* Report template localization
 * File report dialogue refactoring

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@58441 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2013-11-29 18:48:21 +00:00
parent 487c8a83cc
commit f52d614caf
4 changed files with 36 additions and 37 deletions

View File

@@ -34,8 +34,7 @@
</td> </td>
<td> <td>
<div style="font-size: 22px; padding-bottom: 4px;"> <div style="font-size: 22px; padding-bottom: 4px;">
<#-- FIXME!!! --> ${message("file.report.destruction.report")}
Destruction Report
</div> </div>
</td> </td>
</tr> </tr>
@@ -43,18 +42,15 @@
<div style="font-size: 14px; margin: 12px 0px 24px 0px; padding-top: 10px; border-top: 1px solid #aaaaaa;"> <div style="font-size: 14px; margin: 12px 0px 24px 0px; padding-top: 10px; border-top: 1px solid #aaaaaa;">
<table cellpadding="2" cellspacing="3" border="0"> <table cellpadding="2" cellspacing="3" border="0">
<tr> <tr>
<#-- FIXME!!! --> <td><i>${message("file.report.destroyed")} <#if node.hasAspect("rma:record")>${message("file.report.record")}<#else>${message("file.report.record.folder")}</#if>:</i></td>
<td><i>Destroyed <#if node.hasAspect("rma:record")>Record<#else>Record Folder</#if>:</i></td>
<td>${node.properties["rma:identifier"]} <b>${node.properties.name}</b></td> <td>${node.properties["rma:identifier"]} <b>${node.properties.name}</b></td>
</tr> </tr>
<tr> <tr>
<#-- FIXME!!! --> <td><i>${message("file.report.disposition.authority")}:</i></td>
<td><i>Disposition Authority:</i></td>
<td>${node.properties["rma:recordSearchDispositionAuthority"]}</td> <td>${node.properties["rma:recordSearchDispositionAuthority"]}</td>
</tr> </tr>
<tr> <tr>
<#-- FIXME!!! --> <td><i>${message("file.report.disposition.instructions")}:</i></td>
<td><i>Disposition Instructions:</i></td>
<td>${node.properties["rma:recordSearchDispositionInstructions"]}</td> <td>${node.properties["rma:recordSearchDispositionInstructions"]}</td>
</tr> </tr>
</table> </table>
@@ -62,8 +58,7 @@
<div style="font-size: 14px; margin: 12px 0px 24px 0px; padding-top: 10px; border-top: 1px solid #aaaaaa;"> <div style="font-size: 14px; margin: 12px 0px 24px 0px; padding-top: 10px; border-top: 1px solid #aaaaaa;">
<table cellpadding="2" cellspacing="3" border="0"> <table cellpadding="2" cellspacing="3" border="0">
<tr> <tr>
<#-- FIXME!!! --> <td><i>${message("file.report.destroyed.records")}:</i></td>
<td><i>Destroyed Records:</i></td>
<td></td> <td></td>
</tr> </tr>
</table> </table>

View File

@@ -3,11 +3,9 @@
<#assign isAccession=node.properties["rma:transferAccessionIndicator"]> <#assign isAccession=node.properties["rma:transferAccessionIndicator"]>
<head> <head>
<#if isAccession> <#if isAccession>
<#-- FIXME: Label --> <title>${message("file.report.acession.report")}</title>
<title>Transfer Report</title>
<#else> <#else>
<#-- FIXME: Label --> <title>${message("file.report.transfer.report")}</title>
<title>Transfer Report</title>
</#if> </#if>
<style> <style>
body { font-family: arial,verdana; font-size: 81%; color: #333; } body { font-family: arial,verdana; font-size: 81%; color: #333; }
@@ -20,49 +18,38 @@
</head> </head>
<body> <body>
<#if isAccession> <#if isAccession>
<#-- FIXME: Label --> <h1>${message("file.report.acession.report")}</h1>
<h1>Accession Report</h1>
<#else> <#else>
<#-- FIXME: Label --> <h1>${message("file.report.transfer.report")}</h1>
<h1>Transfer Report</h1>
</#if> </#if>
<table cellpadding="3" cellspacing="3"> <table cellpadding="3" cellspacing="3">
<tr> <tr>
<#-- FIXME: Label --> <td class="label">${message("file.report.transfer.date")}:</td>
<td class="label">Transfer Date:</td> <td>${node.properties["cm:created"]?string(message("file.report.date.format"))?html}</td>
<#-- FIXME: Escape, toString -->
<td><#--${node.properties["cm:created"]}--></td>
</tr> </tr>
<tr> <tr>
<#-- FIXME: Label --> <td class="label">${message("file.report.transfer.location")}:</td>
<td class="label">Transfer Location:</td>
<td> <td>
<#if isAccession> <#if isAccession>
<#-- FIXME: Label --> ${message("file.report.nara")}
NARA
<#else> <#else>
<#-- FIXME: String, Escape --> ${node.properties["rma:transferLocation"]?html}
${node.properties["rma:transferLocation"]}
</#if> </#if>
</td> </td>
</tr> </tr>
<tr> <tr>
<#-- FIXME: Label --> <td class="label">${message("file.report.performed.by")}:</td>
<td class="label">Performed By:</td> <td> ${node.properties["cm:creator"]?html}</td>
<#-- FIXME: String, Escape -->
<td> ${node.properties["cm:creator"]}</td>
</tr> </tr>
<tr> <tr>
<#-- FIXME: Label --> <td class="label">${message("file.report.disposition.authority")}:</td>
<td class="label">Disposition Authority:</td>
<#-- FIXME: Disposition Authority - Check, escape --> <#-- FIXME: Disposition Authority - Check, escape -->
<td></td> <td></td>
</tr> </tr>
</table> </table>
<#-- FIXME: Label --> <h2>${message("file.report.transferred.items")}</h2>
<h2>Transferred Items</h2>
<div class="transferred-item"> <div class="transferred-item">
<#-- <#-- FIXME
<span class="nodeName">folder</span>&nbsp;(Unique Folder Identifier:&nbsp;2013-1385393610833) <span class="nodeName">folder</span>&nbsp;(Unique Folder Identifier:&nbsp;2013-1385393610833)
<div class="records"> <div class="records">
</div> </div>

View File

@@ -0,0 +1,16 @@
# File Report Template
file.report.acession.report=Accession Report
file.report.date.format=EEE MMM dd HH:mm:ss zzz yyyy
file.report.destroyed=Destroyed
file.report.destroyed.records=Destroyed Records
file.report.destruction.report=Destruction Report
file.report.disposition.authority=Disposition Authority
file.report.disposition.instructions=Disposition Instructions
file.report.nara=NARA
file.report.transfer.date=Transfer Date
file.report.transfer.location=Transfer Location
file.report.transfer.report=Transfer Report
file.report.transferred.items=Transferred Items
file.report.performed.by=Performed By
file.report.record=Record
file.report.record.folder=Record Folder

View File

@@ -39,6 +39,7 @@
<value>alfresco.module.org_alfresco_module_rm.messages.capability-service</value> <value>alfresco.module.org_alfresco_module_rm.messages.capability-service</value>
<value>alfresco.module.org_alfresco_module_rm.messages.dataset-service</value> <value>alfresco.module.org_alfresco_module_rm.messages.dataset-service</value>
<value>alfresco.module.org_alfresco_module_rm.messages.rm-system</value> <value>alfresco.module.org_alfresco_module_rm.messages.rm-system</value>
<value>alfresco.module.org_alfresco_module_rm.messages.template</value>
</list> </list>
</property> </property>
</bean> </bean>