Conversation
…to fix-inconsistent-casing
…sing # Conflicts: # jablib/src/main/java/org/jabref/model/entry/field/Field.java
…sing # Conflicts: # config/IntelliJ Code Style.xml # jabgui/src/main/java/org/jabref/gui/consistency/ConsistencyCheckDialogViewModel.java # jabgui/src/main/java/org/jabref/gui/fieldeditors/FieldNameLabel.java # jabgui/src/main/java/org/jabref/gui/fieldeditors/identifier/DoiIdentifierEditorViewModel.java # jabgui/src/main/java/org/jabref/gui/mergeentries/threewaymerge/fieldsmerger/FieldMergerFactory.java # jabgui/src/main/java/org/jabref/gui/util/FieldsUtil.java # jablib/src/main/java/org/jabref/model/entry/field/FieldFactory.java
|
|
||
| public class FieldTextMapper { | ||
| public static String getDisplayName(Field field) { | ||
| if (field.isStandardField()) { |
There was a problem hiding this comment.
Future work is to add make use of org.jabref.model.entry.BibEntryTypesManager#isCustomOrModifiedType here. It is hard, because the parameter has the field only - and the field does not have a reference to its parent.
| public static String getDisplayName(Field field) { | ||
| if (field.isStandardField()) { | ||
| StandardField standardField = (StandardField) field; | ||
| return switch (standardField) { |
There was a problem hiding this comment.
Nice start so that we could customize
urldate to URL date or even Date of URL.
jablib/src/main/java/org/jabref/model/entry/field/FieldTextMapper.java
Outdated
Show resolved
Hide resolved
jablib/src/test/java/org/jabref/model/entry/field/FieldFactoryTest.java
Outdated
Show resolved
Hide resolved
jablib/src/main/java/org/jabref/logic/exporter/OOCalcDatabase.java
Outdated
Show resolved
Hide resolved
jablib/src/main/java/org/jabref/model/entry/field/FieldTextMapper.java
Outdated
Show resolved
Hide resolved
| Field Presence Consistency Check Result | ||
|
|
||
| | entry type | citation key | Custom | Pages | Title | | ||
| | entry type | citation key | custom | Pages | Title | |
There was a problem hiding this comment.
Discussion: I think, we should use the field name instead of the display name --> follow-up for someone else :)
koppor
left a comment
There was a problem hiding this comment.
Thank you for your effort and endurance!!
* Prototype * Add ADR * Modify ADR * Fix tests * Fix merge conflict * CHANGELOG.md * Fix APA fields * Refine ADR * typo * Code formatting * Remove capitalization from orfield * Comment to ADR * Remove forced lowercase of field names in bib file * Fix tests * Fix more tests * Add special case for OpenOffice/LibreOffice * Rewrite * Suggestions * Fix tests --------- Co-authored-by: Oliver Kopp <kopp.dev@gmail.com> Co-authored-by: Carl Christian Snethlage <calixtus@users.noreply.github.com>
acada03 to
d741bac
Compare
|
@trag-bot didn't find any issues in the code! ✅✨ |
|
GitHub's UI does something wrong - d741bac is the right commit
This one is NOT in:
|
|
@trag-bot didn't find any issues in the code! ✅✨ |
* upstream/main: Add new check for format (#13909) Consistent casing in fieldnames (#13867) Revert "Pressing TAB in last field in entry editor moves focus to the next ta…" (#13912) Fix YAML Fix on-pr-opened-updated.yml syntax Pressing TAB in last field in entry editor moves focus to the next tab's first field (#13870) Modularize JabSrv (#13908) New translations jabref_en.properties (Italian) (#13907) Remove wrong `assert` statement (#13906) Add .git-blame-ignore-revs (#13884) Do not show transprot info messages (#13904) Pubmed api key support (#13899) Fix warnings for native access Fix automerge workflow (#13903) Add comment on issue on binary (#13902) Have checkstyle and VCS configuration distributed (#13900) Add unknown field to lsp consistency check (#13880) Put config for general tab if missing (#13901) Fix autosave manager exception on shutdown (#13882)


Fixes #10590
see attached ADR
Steps to test
Look at entry editor and preferences for entry types
Mandatory checks
CHANGELOG.mdin a way that is understandable for the average user (if change is visible to the user)