cancel
Showing results for 
Search instead for 
Did you mean: 

Adding aspects to Records Management

juha
Champ in-the-making
Champ in-the-making
HI

we would like to add automatically Classifiable and Taggable Aspects to all records in our 3.3 Alfresco RM.

Rules to the File Plan should do it, however, the Metadata editor for the records does not seem to pick this. Ie. the controls for Classifiable and Taggable Aspects do not appear in the metadata? Is there a way to do this?
13 REPLIES 13

chrisliv
Champ in-the-making
Champ in-the-making

anik
Champ in-the-making
Champ in-the-making
The dod5015-evaluator.lib.js file should be in

DOD5015 Module  alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary



I am still not able to find this file. can somebody please post the complete path?

Thanks,

anik
Champ in-the-making
Champ in-the-making
I tried reinstalling record management dod amps and now i can find the evaluator.js files..
Soory it was my mistake.

Thanks

pallavi
Champ in-the-making
Champ in-the-making
HI,

thanks for the tip, I tried it as follows:
editing /usr/local/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/dod-5015-form-config.xml (running on Mac OsX SL server):

   <config evaluator="node-type" condition="cm:content">
      <forms>
         <form id="rm">
            <view-form template="record-metadata.ftl" />
            <edit-form template="record-metadata.ftl" />

            <field-visibility>
               <!– explicitly hide mandatory fields we don't want in edit mode –>
               <hide id="cm:automaticUpdate" />
               <hide id="sys:node-dbid" />
               <hide id="size" for-mode="edit" />
               <hide id="rma:dateFiled" for-mode="edit" />
               <hide id="rma:cutOffDate" for-mode="edit" />
               <hide id="rma:frozenBy" />
               <hide id="rma:frozenAt" />
              <!– tags added 17082010 –>
               <show id="cm:taggable" />

            </field-visibility>



However, this generates the following error when editing the metadata in a record in RM:

An error has occured in the Share component: /share/service/components/form.
It responded with a status of 500 - Internal Error.
Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: 07170000 Failed to process template org/alfresco/components/form/form.get.html.ftl
Server: Alfresco Spring WebScripts - v1.0.0 (Milestone 3 357) schema 1,000
Time: Aug 17, 2010 2:43:21 PM
Click here to view full technical information on the error.
Exception: freemarker.template.TemplateException - Error executing macro: renderField required parameter: field is not specified.
freemarker.core.Macro$Context.sanityCheck(Macro.java:181)
freemarker.core.Macro$Context.runMacro(Macro.java:161)
freemarker.core.Environment.visit(Environment.java:601)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Environment.include(Environment.java:1477)
freemarker.core.Include.accept(Include.java:169)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.IfBlock.accept(IfBlock.java:82)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.IfBlock.accept(IfBlock.java:82)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Environment.process(Environment.java:188)
freemarker.template.Template.process(Template.java:237)
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:156)
org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:578)
org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:263)
org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:143)
org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:69)
org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:203)
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:319)
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:177)
org.springframework.extensions.webscripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:275)
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:79)
org.springframework.extensions.surf.render.RenderService.processComponent(RenderService.java:468)
org.springframework.extensions.surf.render.RenderService.renderRawComponent(RenderService.java:970)
org.springframework.extensions.surf.render.bean.ComponentRenderer.body(ComponentRenderer.java:113)
org.springframework.extensions.surf.render.RenderService.renderRegionComponents(RenderService.java:827)
org.springframework.extensions.surf.taglib.RegionIncludeTag.doStartTag(RegionIncludeTag.java:36)
org.springframework.extensions.surf.render.TagService.execute(TagService.java:213)
org.springframework.extensions.surf.render.TagService.execute(TagService.java:148)
org.springframework.extensions.webscripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:92)
org.springframework.extensions.webscripts.GenericFreemarkerTagDirective.execute(GenericFreemarkerTagDirective.java:121)
freemarker.core.Environment.visit(Environment.java:261)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Environment.process(Environment.java:188)
freemarker.template.Template.process(Template.java:237)
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:156)
org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:328)
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:79)
org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:390)
org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:49)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:131)
org.springframework.extensions.surf.render.bean.RegionRenderer.body(RegionRenderer.java:114)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:131)
org.springframework.extensions.surf.render.RenderService.startRegionRenderer(RenderService.java:779)
org.springframework.extensions.surf.render.RenderService.renderRegion(RenderService.java:723)
org.springframework.extensions.surf.render.PresentationUtil.renderRegion(PresentationUtil.java:134)
org.springframework.extensions.surf.taglib.RegionTag.doStartTag(RegionTag.java:101)
org.springframework.extensions.surf.render.TagService.execute(TagService.java:213)
org.springframework.extensions.surf.render.TagService.execute(TagService.java:148)
org.springframework.extensions.webscripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:92)
org.springframework.extensions.webscripts.RegionFreemarkerTagDirective.execute(RegionFreemarkerTagDirective.java:122)
freemarker.core.Environment.visit(Environment.java:261)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Environment.visit(Environment.java:393)
freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Macro$Context.runMacro(Macro.java:164)
freemarker.core.Environment.visit(Environment.java:601)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Environment.process(Environment.java:188)
freemarker.template.Template.process(Template.java:237)
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:156)
org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:328)
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:79)
org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:582)
org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:124)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:131)
org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.java:70)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:131)
org.springframework.extensions.surf.render.RenderService.startPageRenderer(RenderService.java:664)
org.springframework.extensions.surf.render.RenderService.renderPage(RenderService.java:641)
org.springframework.extensions.surf.render.PresentationUtil.renderPage(PresentationUtil.java:95)
org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:349)
org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:290)
org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:136)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:67)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:637)
Exception: org.springframework.extensions.webscripts.WebScriptException - 07170000 Failed to process template org/alfresco/components/form/form.get.html.ftl
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:160)

Any suggestions (I'm a bit novel on Alfresco)



Hi,
I also tried doing the same thing. Only, intsead of taggable aspect i want the store selector aspect. I m also getting the same error. Did u solve this? Any help on same?