-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add toggle functionality for journal abbreviation lists #12912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
37c8d2c
1a5edb3
ed985ec
5828a7e
2eee019
623ab21
0589d14
62ccc81
b6a92b8
774f5fb
ed58605
00b8d24
e3b62b7
d3f7ff4
230c70f
35900b1
fd4544d
d9e6b20
fe60693
7ba2574
8fc0d82
10491f5
d1e73e0
39c822d
421b08f
305beee
df1553c
a68cc84
b1237af
09999db
2f9fc82
19cf34b
9dafa2a
9b4a43f
d555a09
c85ec97
5160d78
ccea652
a57193f
818436d
26fc774
153c8ad
2a6604e
a23d3c8
d9437e2
c15e554
f50883d
7247038
19d1401
50c3549
bd53428
9c3d8cc
0cf60ea
eb07892
c8b9b51
f58543b
3a40825
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've seen that you removed line https://github.com/JabRef/jabref/pull/12912/files#diff-3fa252360fc27ea81a62af5e94c9a8263b2519ca8845cd50c55d0a001f334e41L123 -- is this class still used anywhere? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but this class is still being used. I have simplified the filtering logic to determine which entries to process, but the actual unabbreviation is still performed by UndoableUnabbreviator undoableAbbreviator = new UndoableUnabbreviator(freshRepository);
NamedCompound ce = new NamedCompound(Localization.lang("Unabbreviate journal names"));
int count = filteredEntries.stream().mapToInt(entry ->
(int) FieldFactory.getJournalNameFields().stream().filter(journalField ->
undoableAbbreviator.unabbreviate(databaseContext.getDatabase(), entry, journalField, ce)).count()).sum(); There are also tests that verify its functionality. This class is responsible for the actual unabbreviation and undo operations, while my changes simplified how we determine which entries to process. The class is still essential for the functionality to work correctly. May I ask whether this sounds right? |
Uh oh!
There was an error while loading. Please reload this page.