As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
/** * Event handler for documentDetailsAvailable bubbling event * * @method onDocumentDetailsAvailable * @param e {object} Event * @param args {object} Event arguments */ onDocumentDetailsAvailable: function RecordsDocumentReferences_onDocumentDetailsAvailable(e, args) { var docDetails = args[1].documentDetails; this.options.parentNodeRef = args[1].metadata.filePlan.replace(':/',''); this.options.docName = docDetails.displayName; if (docDetails.permissions.userAccess.Create && docDetails.type !== "metadata-stub") { this.widgets.manageRefs.set("disabled", false); } }, /** * Mange References button click handler. Redirects browser to Manage References page * * @method onManageReferences */ onManageReferences: function RecordsDocumentReferences_onManageReferences() { var uriTemplate = Alfresco.constants.URL_PAGECONTEXT + 'site/{site}/rmreferences?nodeRef={nodeRef}&parentNodeRef={parentNodeRef}&docName={docName}', url = YAHOO.lang.substitute(uriTemplate, { site: encodeURIComponent(this.options.siteId), nodeRef: this.options.nodeRef, parentNodeRef: this.options.parentNodeRef, docName: encodeURIComponent(this.options.docName) }); window.location.href = url; }