inspirehep / inspire-next

The INSPIRE repo.
https://inspirehep.net
GNU General Public License v3.0
59 stars 69 forks source link

TexKey generation #613

Open kaplun opened 8 years ago

kaplun commented 8 years ago

Once Labs is the master for records we need to issue TeXkeys there.

This should be implemented using the PidStore, via a record enhancer.

Legacy implementation of TeXkeys is here: https://github.com/inspirehep/invenio/blob/prod/modules/miscutil/lib/sequtils_texkey.py

cc: @tsgit

jmartinm commented 8 years ago

For this I think we can also use https://github.com/inveniosoftware/invenio-sequencegenerator which is supposed to have the same functionality of generating sequences that we have in current inspirehep.

kaplun commented 8 years ago

TeXkeys are somehow different because they don't have an integer based sequence, but are defined with random chars. In this sense the pidstore can be really used to poll if a given generated TeXKey hasn't already been generated and otherwise produce a new one.