keeping arxiv ID from bibtex import

Feng-Kun G. shared this question 19 months ago
Answered

Hello,

I imported some references from a bib file. Everything works pretty well except that the arxiv ID was not kept.

An example of bibitem is as follows:

@article{Aaij:2015tga,
    author = "Aaij, Roel and others",
    collaboration = "LHCb",
    title = "{Observation of $J/\psi p$ Resonances Consistent with Pentaquark States in $\Lambda_b^0 \to J/\psi K^- p$ Decays}",
    eprint = "1507.03414",
    archivePrefix = "arXiv",
    primaryClass = "hep-ex",
    reportNumber = "CERN-PH-EP-2015-153, LHCB-PAPER-2015-029",
    doi = "10.1103/PhysRevLett.115.072001",
    journal = "Phys. Rev. Lett.",
    volume = "115",
    pages = "072001",
    year = "2015"
}

which is generated from the INSPIRE-HEP database (for this article, the link is https://inspirehep.net/literature/1382595)

Also in the reference information, I wonder if it is possible to include a field of "Collaboration" by default (currently, this can be added through the custom fields), and then can be recognized when imported from bibtex.

Thank you!

Best Answer
photo

Hi, Feng-Kun

It's possible to edit the import definition files, but this needs to be done manually. These files are in XML format and stored in %localappdata%\Swiss Academic Software\Citavi 6\Settings\Mappings.

The file you are looking for is BibTeX.CitaviTX. To change it, please proceed as follows:

1) Make a copy with a different file name and open this copy in a text editor of your choice

2) Change the value of <Id> to another GUID (you can get one here, for example: https://www.guidgen.com/)

3) Change the <DisplayName> value to something memorable so you can later find the import definition in Citavi

4) Scrolling down, you will find to important sections, ReferenceTypeMapping for document types (@article = JournalArticle in Citavi) and FieldMappingTable containing the individual field mappings for each document type

5) Proceed to <FieldMapping referenceType="JournalArticle"> and add the fields as required using the format you see. Custom fields are labelled CustomField1 through CustomField9.

6) Save the file and restart Citavi.

7) Add this filter in the Citavi import menu.

Best regards

Sebastian

Replies (1)

photo
1

Hi

Apparently the arXIv-ID is not assigned to a field of its own but is stored in eprint with the type of ID stored in another field archivePrefix. If eprint can contain also IDs from other providers, the import will prove difficult because it will require programmatic logic to decide which content goes into which Citavi field.

I'm also not sure what type of information is stored in the field collaboration and how it would be used for citations. There is a field collaborators for journal articles in Citavi but this is intended to contain persons not experiments (assuming that LHCb refers to the Large Hadron Collider beauty experiment).

Best regards

Sebastian

photo
1

Hi Sebastian,

Thanks a lot for the prompt reply.

As for the arxiv ID, what you said is very reasonable. Is it possible to have a workaround, e.g., by allowing some users' configuration such that one can choose to match eprint in the bibitem to arXiv ID, and collaboration to, .e.g., custom field 1, which may be renamed to Collaboration at the same time?

The "collaboration" in that bibitem indeed means an experimental collaboration, instead of individual persons.

photo
2

Hi, Feng-Kun

It's possible to edit the import definition files, but this needs to be done manually. These files are in XML format and stored in %localappdata%\Swiss Academic Software\Citavi 6\Settings\Mappings.

The file you are looking for is BibTeX.CitaviTX. To change it, please proceed as follows:

1) Make a copy with a different file name and open this copy in a text editor of your choice

2) Change the value of <Id> to another GUID (you can get one here, for example: https://www.guidgen.com/)

3) Change the <DisplayName> value to something memorable so you can later find the import definition in Citavi

4) Scrolling down, you will find to important sections, ReferenceTypeMapping for document types (@article = JournalArticle in Citavi) and FieldMappingTable containing the individual field mappings for each document type

5) Proceed to <FieldMapping referenceType="JournalArticle"> and add the fields as required using the format you see. Custom fields are labelled CustomField1 through CustomField9.

6) Save the file and restart Citavi.

7) Add this filter in the Citavi import menu.

Best regards

Sebastian

photo
1

Thank you! This really helps.

I added the following lines:

<Field tag="eprint=" fieldType="arXivID" />
<Field tag="eprint=" fieldType="CustomField1" />
<Field tag="primaryclass=" fieldType="CustomField1" />	
<Field tag="collaboration=" fieldType="CustomField2" />	

photo
Leave a Comment
 
Attach file (NO confidential documents!)