inspirehep / inspire

Official repo of the legacy INSPIRE-HEP overlay
http://projecthepinspire.net
17 stars 20 forks source link

BibTaskLet: normalize journal names #507

Closed tsgit closed 4 years ago

tsgit commented 4 years ago

normalize journal names with same knowledgebase refextract is using

In [1]: from invenio.refextract_kbs import get_kbs

In [2]: from invenio.docextract_convert_journals import mangle_value

In [3]: jkb = get_kbs()['journals']

In [4]: mangle_value(jkb, 'Phys.Rev.Research')
'Phys.Rev.Res.'

Signed-off-by: Thorsten Schwander thorsten.schwander@gmail.com