Vitaliy-1 / JATSParserPlugin

OJS3 Plugin for parsing JATS XML and displaying it on article detail page
GNU General Public License v3.0
27 stars 24 forks source link

Simplify the process of copying submission files and their metadata #55

Open Vitaliy-1 opened 3 years ago

Vitaliy-1 commented 3 years ago
  1. Don't create a new file for a copied submission file (e.g., when importing a galley), use a file id of a submission file that is being copied.
  2. Clone a submission file and its metadata. Review what metadata should be changed. Relevant for importing XML galleys and creating PDF galley. Example:
    $newSubmissionFile = clone $submissionFile;
    $newSubmissionFile->setData('fileStage', $fileStage);
    $newSubmissionFile->setData('sourceSubmissionFileId', $submissionFile->getId());
    $newSubmissionFile = Services::get('submissionFile')->add($newSubmissionFile, Application::get()->getRequest());