Conversation
Review Summary by QodoFix incorrect usage of StandardField.KEY for citation keys
WalkthroughsDescription• Replace incorrect StandardField.KEY usage with InternalField.KEY_FIELD for citation keys • StandardField.KEY is a BibTeX sorting field, not the citation key identifier • Update field mappings in exporters and integrity checkers to use correct field type • Add clarifying documentation distinguishing sorting key from citation key Diagramflowchart LR
A["StandardField.KEY<br/>Sorting field only"] -->|"Incorrect usage"| B["Citation key operations"]
C["InternalField.KEY_FIELD<br/>Citation key identifier"] -->|"Correct replacement"| B
B --> D["Fixed in exporters,<br/>integrity checks,<br/>and tests"]
File Changes1. jabgui/src/test/java/org/jabref/gui/commonfxcontrols/SaveOrderPanelViewModelTest.java
|
Code Review by Qodo
1.
|
|
| (targetField == StandardField.XREF) || | ||
| (targetField == StandardField.ENTRYSET) || | ||
| (targetField == StandardField.RELATED) || | ||
| (targetField == StandardField.KEY) || |
* upstream/main: Update PULL_REQUEST_TEMPLATE.md (#15788) New Crowdin updates (#15787) Update heylogs to 0.18.0 and use github-actions format (#15786) Grand refactoring of the AI features (#15688) Chore(deps): Bump com.fasterxml:aalto-xml in /versions (#15782) Chore(deps): Bump org.junit:junit-bom from 6.0.3 to 6.1.0 in /versions (#15783) Fix default value for unwanted characters (#15743) Fix runner tag Fix runner for JBang (PR) Fix duplicate finder progress counter incrementing on empty queue polls (#15781) Refine JabKit CLI: positional input argument and check command group (#15759) Ignore exception in unregisterListener to prevent exception (#15761) Fix wrong usage of "key" (#15779) Fix Hayagriva export to nest identifiers under serial-number (#15750)
* Fix wrong usage of "key" (used for sorting at bibtex tool, NOT the citation key) * Revert change in BibEntry
OMG, we used
org.jabref.model.entry.field.StandardField#KEY.I think, mostly not user-facing; but still...
Steps to test
Some strang Endnote export
AI usage
Just for the initial refacotring.
Checklist
CHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)