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.
# Action name menu.selected-items.zip-content=Comprimi e scarica # Actions properties zip-content-action.header=Comprimi e scarica zip-content-action.cancel=Annulla zip-content-action.download=Download zip-content-action.filename.label=Nome del file: zip-content-action.filename.mandatory-field=Specificare il nome del file zip-content-action.no-accent.label=Ignora accenti (la codifica degli accenti puo` creare problemi con alcuni software di compressione)
ERROR [extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 05200002 Erreur lors de la génération de l'archive.
Index: ZipContents.java =================================================================== — ZipContents.java (revisione 10) +++ ZipContents.java (local copy) @@ -179,7 +180,11 @@ } public void addToZip(NodeRef node, ZipOutputStream out, boolean noaccent, String path) throws IOException { - QName nodeQnameType = this.nodeService.getType(node); + // if this is a link follow it to get real node + QName nodeQnameType; + if(this.dictionaryService.isSubClass(this.nodeService.getType(node),ApplicationModel.TYPE_FILELINK)) + node=(NodeRef) nodeService.getProperty(node,ContentModel.PROP_LINK_DESTINATION); + nodeQnameType = this.nodeService.getType(node); String nodeName = (String) nodeService.getProperty(node, ContentModel.PROP_NAME); nodeName = noaccent ? unAccent(nodeName) : nodeName;
… <config evaluator="string-compare" condition="DocLibActions" replace="true"> <actions> … <!– Zip folder –> <action id="zip-folder" type="javascript" label="menu.selected-items.zip-content"> <param name="function">onActionZip</param> </action> </actions> <actionGroups> … <actionGroup id="folder-browse"> <action index="230" id="zip-folder" icon="zipcontents" label="menu.selected-items.zip-content" /> </actionGroup> … </actionGroups> …
… fn: function dlA_onActionZip(record) { var getNodeId = function(nodeRef) { return nodeRef.split('/').reverse()[0]; // Get only nodeId }; var nodesRef = []; if (record instanceof Array) { for (var i=0, ii=record.length ; i<ii ; i++){ nodesRef.push(getNodeId(record[i].nodeRef)); } } else { nodesRef.push(getNodeId(record.nodeRef)) } // Download Simple Dialog var downloadDlg = new YAHOO.widget.SimpleDialog(this.id + '-download-zip-dialog', { …