JabRef / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://devdocs.jabref.org
MIT License
3.6k stars 2.55k forks source link

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

Open ThiloteE opened 2 years ago

ThiloteE commented 2 years ago

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

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

Appendix

No response

ThiloteE commented 2 years ago

Workaround:

Have options>preferenes>import and export>generate a new key for imported entries (overwriting their default) DISABLED.

HoussemNasri commented 2 years ago

Refs #6190

ThiloteE commented 2 years ago

The more I think about it...: JabRef might work as expected. JabRef does exactly what the preference says: JabRef overwrites the key Boulianne_2017 upon import with the citation-key pattern that the user specified in the preferences.

This issue here demonstrates that it could be sensible to add some kind of tool-tip or decoration/validation (controlsfx) as feedback mechanism to the user in the duplicate merger dialogue.

Example for tool-tip message: "Will be overwritten with the citation-key pattern, which is specified in the preferences"

ThiloteE commented 2 years ago

Can still reproduce with JabRef 5.8 development version commit bd77d7336fde1c4618f2e67dcf2ef22ceb1cda77, which is after the big rework of the duplicate manager.

ThiloteE commented 2 years ago

Another solution:

options>preferenes>import and export>generate a new key for imported entries (overwriting their default)