The Share Document Library provides a number of out-of-the-box default actions and displays basic, essential metadata for documents and folders. This session will show you how to add custom metadata and status indicators, modify the available actions and wire-up new filters. We'll also look at how the Document Library was extended for the DoD 5015.2 Records Management Fileplan browser. You will need to be familiar with basic Surf concepts as well as JavaScript and Freemarker to follow the webscript customization. Familiarity with YUI 2.x and CSS will aid understanding during this session.
26. Case Study: DoD 5015.2 Extensions 13 Custom Actions Numerous new and overridden actions to support the DoD requirements specification.
27. Case Study: DoD 5015.2 Extensions 14 Custom Toolbar Sensitive to current folder type. New and overridden actions. Custom Filters Removed unsuitable filters (user filters, tags). One static, one dynamic (populated from list of saved searches on the Repository).
28. Case Study: DoD 5015.2 Extensions 15 “documentLibrary” container type determines components
32. Creating the Container 19 Web QuickStart Method dashlet connector.get("/api/loadwebsitedata?site=" + siteId); LoadWebSiteDataGet.java NodeRefdocLib = siteService.getContainer(siteId, COMPONENT_DOCUMENT_LIBRARY); siteService.createContainer(siteId, COMPONENT_DOCUMENT_LIBRARY, WebSiteModel.TYPE_WEBSITE_CONTAINER, null); or nodeService.setType(docLib, WebSiteModel.TYPE_WEBSITE_CONTAINER);
33.
34. Component Replacement Approach 21 Full override / replacement control on all tiers. Your code can be almost completely independent of Alfresco’s. Pros Mandatory component mapping , even for “native” components. Still have to copy/paste where <include> cannot be used, e.g. I18N. Repository folder type to component prefix issue. Not a 100% “clean” override mechanism. Cons
35. Mandatory Component Mapping 22 Big Development Overhead template.dod5015-actions-common.documentlibrary.xml template.dod5015-documentlist.documentlibrary.xml template.dod5015-file-upload.documentlibrary.xml template.dod5015-fileplan.documentlibrary.xml template.dod5015-flash-upload.documentlibrary.xml template.dod5015-html-upload.documentlibrary.xml template.dod5015-navigation.documentlibrary.xml template.dod5015-savedsearch.documentlibrary.xml template.dod5015-title.documentlibrary.xml template.dod5015-toolbar.documentlibrary.xml template.dod5015-tree.documentlibrary.xml … And that’s just the browse page!
36.
37.
38. Need to use AMP on the Repository until refactoring work is complete