preprints.helpers module¶
-
preprints.helpers.
get_new_scipost_identifier
(thread_hash=None)[source]¶ Return an identifier for a new SciPost preprint (consistent with thread history).
A SciPost identifier is of the form [YYYY][MM]_[#####]v[vn_nr].
For an existing thread, different cases must be treated:
All preprints in thread are SciPost preprints: the vn_nr is incremented.
Previous preprints are all on an external preprint server: a brand new SciPost identifier is generated; the vn_nr is put to 1.
Previous preprints mix SciPost and external identifiers: the SciPost identifier is reused, putting the vn_nr to [nr of previous SciPost subs in thread] + 1.