texture icon indicating copy to clipboard operation
texture copied to clipboard

Enable upload of DAR file directly

Open ctgraham opened this issue 5 years ago • 3 comments

Proposed workflow: Upload of DAR file via the SubmissionsFilesUploadForm is hooked by this plugin and the contents are extracted (if valid).

Specifically:

  • Hook submissionfilesuploadform::execute examines the upload
  • If a 'dar' extension, and if it has at least a "manuscript.xml" and "manifest.xml"
  • Extract the manuscript.xml to create a new submission file
  • Use the manifest.xml to extract new dependent files
  • Replace the submission file from the upload form with the extracted submission file (and dependent files).

Prerequisite: https://github.com/pkp/pkp-lib/issues/5146

ctgraham avatar Oct 11 '19 21:10 ctgraham

@withanage , do you have any work so far on processing the DAR within PHP code? This was mentioned in the PKP Technical Committee particularly regarding the recent conversations across Texture and Fidus Writer.

ctgraham avatar Oct 17 '19 16:10 ctgraham

@ctgraham Actually, not yet. The only code which is there is on the generation side in the https://github.com/pkp/jatsTemplate Sorry for delay in replying due to travelling.

withanage avatar Oct 17 '19 18:10 withanage

Proposed workflow: Upload of DAR file via the SubmissionsFilesUploadForm is hooked by this plugin and the contents are extracted (if valid).

Specifically:

  • Hook submissionfilesuploadform::execute examines the upload
  • If a 'dar' extension, and if it has at least a "manuscript.xml" and "manifest.xml"
  • Extract the manuscript.xml to create a new submission file
  • Use the manifest.xml to extract new dependent files
  • Replace the submission file from the upload form with the extracted submission file (and dependent files). Prerequisite: https://github.com/pkp/pkp-lib/issues/5146

@ctgraham Thanks for the specification. This is the exact way, I thought this to do. An addition will be to check the validity of the manifest file and check if the xml file is valid and has at least a jats body. If no header metadata is avaliable or the plugin configuration allows that, we can fill the jats head with ojs metadata.

withanage avatar Oct 17 '19 18:10 withanage