-
Notifications
You must be signed in to change notification settings - Fork 867
Description
In the arXiv translator, the category (which is written into the Extra: field) is missing the proper subcategory.
In the code (https://github.com/zotero/translators/blob/master/arXiv.org.js#L401C2-L401C104)
let articleField = attr(entry, "primary_category", "term").replace(/^.+?:/, "").replace(/\..+?$/, "");is used. But the field does not follow that scheme any more, if I have an arXiv article, the used API returns:
<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:arxiv="http://arxiv.org/schemas/atom" xmlns="http://www.w3.org/2005/Atom">
<id>https://arxiv.org/api/Yhjfzc+XfLSF8oBS+HrE6P0GgjE</id>
<title>arXiv Query: search_query=&id_list=2203.08232&start=0&max_results=1</title>
<updated>2026-01-15T11:16:12Z</updated>
<link href="https://arxiv.org/api/query?search_query=&start=0&max_results=1&id_list=2203.08232" type="application/atom+xml"/>
<opensearch:itemsPerPage>1</opensearch:itemsPerPage>
<opensearch:totalResults>1</opensearch:totalResults>
<opensearch:startIndex>0</opensearch:startIndex>
<entry>
<id>http://arxiv.org/abs/2203.08232v1</id>
<title>Snowmass White Paper: Effective Field Theories in Cosmology</title>
<updated>2022-03-15T20:11:56Z</updated>
<link href="https://arxiv.org/abs/2203.08232v1" rel="alternate" type="text/html"/>
<link href="https://arxiv.org/pdf/2203.08232v1" rel="related" type="application/pdf" title="pdf"/>
<summary>Small fluctuations around homogeneous and isotropic expanding backgrounds are the main object of study in cosmology. Their origin and evolution is sensitive to the physical processes that happen during inflation and in the late Universe. As such, they hold the key to answering many of the major open questions in cosmology. Given a large separation of relevant scales in many examples of interest, the most natural description of these fluctuations is formulated in terms of effective field theories. This was the main avenue for many of the important modern developments in theoretical cosmology, which provided a unifying framework for a plethora of cosmological models and made a clear connection between the fundamental cosmological parameters and observables. In this review we summarize these results in the context of effective field theories of inflation, large-scale structure, and dark energy.</summary>
<category term="astro-ph.CO" scheme="http://arxiv.org/schemas/atom"/>
<category term="gr-qc" scheme="http://arxiv.org/schemas/atom"/>
<category term="hep-th" scheme="http://arxiv.org/schemas/atom"/>
<published>2022-03-15T20:11:56Z</published>
<arxiv:comment>Contribution to Snowmass 2021</arxiv:comment>
<arxiv:primary_category term="astro-ph.CO"/>
<author>
<name>Giovanni Cabass</name>
</author>
<author>
<name>Mikhail M. Ivanov</name>
</author>
<author>
<name>Matthew Lewandowski</name>
</author>
<author>
<name>Mehrdad Mirbabayi</name>
</author>
<author>
<name>Marko Simonović</name>
</author>
</entry>
</feed>where you can see that the primary_category field is populated with the correct string that doesn't need to have something stripped off in the beginning (the first regex), nor does the .CO part need to be removed as it is part of the category (as also listed in the beginning of arxiv.org.js).
Moreover, according to the official documentation the .CO part needs to be included as well, see https://info.arxiv.org/help/faq/references.html.
If needed I can provide a quick PR, but I have not looked at how to contribute here. In any case thanks!