cern-sis / issues-inspire

0 stars 0 forks source link

add author.xml support to record editor #427

Open michamos opened 6 months ago

michamos commented 6 months ago

in the record editor, it is possible to populate authors either by inputting a URL or a free text. It would be useful to extend this so author.xml is supported too. This likely requires moving the author.xml parsing to hep.

When a curator copy/pastes an author.xml string to the textarea and clicks on extract, the author.xml should be parsed and the affiliations should be linked using https://github.com/inspirehep/inspirehep/blob/b3cd531aa52af18e2883be3674ddbf1d3f2c322a/backend/inspirehep/curation/api.py#L111 or https://github.com/inspirehep/inspirehep/blob/b3cd531aa52af18e2883be3674ddbf1d3f2c322a/backend/inspirehep/curation/views.py#L118-L133.

In addition, the message in the editor textarea should be changed from Text or URL to Text, author.xml or URL.