Skip to content

citationkey pattern always overwrites key, regardless of chosen key in entry-merge dialogue #8644

Open
@ThiloteE

Description

@ThiloteE

JabRef version

Latest development branch build (please note build date below)

Operating system

Windows

Details on version and operating system

JabRef 5.6--2022-04-04--dbf921e Windows 10 10.0 amd64 Java 17.0.2 JavaFX 18+12

Checked with the latest development build

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

Follow up to #8641

How to reproduce:

  1. Have options>preferenes>import and export>generate a new key for imported entries (overwriting their default) enabled.
  2. Have a customized key-pattern for the citation-key generator set in preferences.
  3. Have this preference set under citation-key generator preferences:
    image

  1. import a DOI (e.g. 10.1080/1369118x.2017.1353641) via pasting (Grobid) or import dialogue (Do not have this key in your library yet).
  2. Change citationkey of the resulting entry
  3. import same DOI again.
  4. Entry Merge Dialogue emerges
  5. Choose the citationkey from right side (which is the new entry with the key from the web).
  6. Choose one of the buttons Keep merged entry only, Import and remove old entry or Import and keep old entry

What happens:

One is not able to choose the right side key.

image

  • Keep merged entry only: key of new entry will have citationkey pattern applied (bad).
  • Import and keep old entry: key of new entry will have citationkey pattern applied (bad). An a is added to prevent duplicate (Good).
  • Import and remove old entry: key of new entry will have citationkey pattern applied (bad).

Appendix

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions