diff --git a/CHANGELOG.md b/CHANGELOG.md index 5419597820b..6859bda7d64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve - We reintroduced missing default keybindings for new entries. [#7346](https://github.com/JabRef/jabref/issues/7346) [#7439](https://github.com/JabRef/jabref/issues/7439) - Lists of available fields are now sorted alphabetically. [#7716](https://github.com/JabRef/jabref/issues/7716) - We moved the select/collapse buttons in the unlinked files dialog into a context menu. [#7383](https://github.com/JabRef/jabref/issues/7383) +- We fixed an issue where journal abbreviations containing curly braces were not recognized [#7773](https://github.com/JabRef/jabref/issues/7773) ### Fixed diff --git a/src/main/java/org/jabref/gui/fieldeditors/JournalEditorViewModel.java b/src/main/java/org/jabref/gui/fieldeditors/JournalEditorViewModel.java index e07401b91e2..aeafdde2992 100644 --- a/src/main/java/org/jabref/gui/fieldeditors/JournalEditorViewModel.java +++ b/src/main/java/org/jabref/gui/fieldeditors/JournalEditorViewModel.java @@ -22,8 +22,11 @@ public void toggleAbbreviation() { return; } - if (journalAbbreviationRepository.isKnownName(text.get())) { - Optional nextAbbreviation = journalAbbreviationRepository.getNextAbbreviation(text.get()); + // Ignore brackets when matching abbreviations. + final String name = StringUtil.ignoreCurlyBracket(text.get()); + + if (journalAbbreviationRepository.isKnownName(name)) { + Optional nextAbbreviation = journalAbbreviationRepository.getNextAbbreviation(name); if (nextAbbreviation.isPresent()) { text.set(nextAbbreviation.get());