Method to link incoming submission to existing thread
If authors resubmit a paper using the SciPost preprint server, while their original submission was through the arXiv (or the other way around), then the two submissions are not automatically related.
We thus need an EdAdmin-level method to link such incoming (re)submissions to their existing threads.
To auto-detect such cases, do a pattern matching between submission titles and author lists.
The link should appear in the Pool, for submissions (here, falsely) in the pre-screening phase. Only EdAdmin should see this link and be authorized to take action. There should be a confirmation page with details of actions to be taken, with confirm and cancel buttons.
Things the method should do: (works either way: old/new arXiv/scipost or scipost/arXiv)
- copy the
thread_hash
from the existing submission to new one - set
is_current
in old sub toFalse
- set
is_resubmission_of
in new sub to old value - set
editor_in_charge
in new sub to old value - set
status
in old tohas_been_resubmitted
- set
status
in new toassigned
- set
is_visible_in_pool
in new toTrue
- set
refereeing cycle
in new tocycle undetermined
- (needed?) treat authors
- (needed?) treat Fellows
Then,
- mark the old
EditorialAssignment
ascompleted
- create a new
EditorialAssignment
and mark it asaccepted
- send email to EIC