Skip to content

Citation keys are always overwritten when importing through web search #7420

@k3KAW8Pnf7mkmdSMPHz27

Description

@k3KAW8Pnf7mkmdSMPHz27

The citation key generator never preserves citation keys while importing from sites such as INSPIRE HEP. The citation keys are overwritten even if "Overwrite existing keys" is disabled in preferences and always without warning.

JabRef version

JabRef 5.3--2021-02-03--242a494
Mac OS X 10.15.7 x86_64 
Java 15.0.2 
JavaFX 15.0.1+1

Relevant links

  1. JabRef renaming keys?! (I don't think these options exist anymore)
  2. InspireHEP and SAO/NASA ADS Bibtex Key Catch (feature request)
  3. Can I use Inspire citation keys when importing via jabref?
  4. There is a mention of unwanted key formatting in Issue with INSPIRE web search #7274

Temporary workaround

It is possible to keep citation keys by using the citation key pattern [CITATIONKEY] during the import.
: must also be removed from the "Remove the following characters" field in preferences.
It should be possible to use the regexp in #7111 (comment) to create a workaround where a different pattern is used when there is no citation key in the imported entry. (If someone manages with this approach, feel free to add a comment and perhaps others will also find it useful)

Steps to reproduce the behavior:

  1. Unmark "Overwrite existing keys" Skärmavbild 2021-02-03 kl  15 41 33
  2. Make a web-search on INSPIRE and import any entry Skärmavbild 2021-02-03 kl  15 43 47
  3. Note that the citation key is overwritten

Skärmavbild 2021-02-03 kl  15 47 36

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions