New options to return MarcXML or JSON output of specified tags.
David Straub
Branch: DavidMStraub/pyinspire:xmljson
Branch: ihuston/pyinspire:master
Merged
Merged pull request
Merged in DavidMStraub/pyinspire/xmljson (pull request #3)
Merged in DavidMStraub/pyinspire/xmljson (pull request #3)
With the -x/--marcxml or -j/--json options, the MarXML/JSON output of the INSPIRE API is returned. Since by default this returns a huge amount of information for each paper, the addition option -t/--tags is introduced, which allows to specify the fields to be returned (according to the 'ot' tag in the inspire API, [http://inspirehep.net/info/hep/api]). By default, only authors and title are returned.