Closed StellaCh closed 4 years ago
In legacy, we have different options for txt and html formats, let's brainstorm on ways we could have them both in 1 option.
text/html
, text/plain
, for literature detail and list endpoints, similar to https://github.com/inspirehep/inspirehep/blob/276bd2e2eaca0f576c0cf7398daa67236c2f6c4b/backend/inspirehep/records/config.py#L103-L116
For search endpoints, _source
should be specified for the new formats so that only required fields retrieved from elasticsearch
.
jinja
templates serialize records to these formats.application
anymore but receive the full mime-type
text/html
, this should use SanitizedHTML
instead, which allows only limited number of tags and attributes (similar to Banner.jsx)To keep track of the issues to fix:
LGTM, just one comment to change the title of the dropdown to "CV (html)"
Users would like to get a list of their papers to copy paste them in word documents.
Example in legacy: http://old.inspirehep.net/search?ln=en&ln=en&p=a+witten&of=hcv&action_search=Search&sf=earliestdate&so=d&rm=&rg=25&sc=0
Add another format in the dropdown menu under LaTeX(US) called 'CV format (html)' in 'Cite' and 'Cite all' that exports a paper in the following format:
For https://inspirehep.net/literature/1781327
Geodesics of the hyperbolically symmetric black hole L. Herrera, A. Di Prisco, J. Ospino, L. Witten arXiv:2002.07586 [gr-qc] 10.1103/PhysRevD.101.064071 Phys.Rev. D101 (2020) no.6, 064071
where title, authors, arxiv, doi are links.
The fields should be: Title
Authors as they appear in the search results with et al.
arxiv id [arxiv category]
doi
pub note
(jira issue: INSPIR-3635)