Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Vitaliy-1 opened this issue Mar 16, 2021 · 0 comments
Open

Comments

@Vitaliy-1
Copy link
Owner

  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());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant