pkp/texture

Enable upload of DAR file directly

Opened this issue · 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: pkp/pkp-lib#5146

@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
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.

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: pkp/pkp-lib#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.