Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use .COMMENT instead of outdated .REVIEW #10478

Merged
merged 4 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv
- The ampersand checker now skips verbatim fields (`file`, `url`, ...). [#10419](https://github.com/JabRef/jabref/pull/10419)
- If no existing document is selected for exporting "XMP annotated pdf" JabRef will now create a new PDF file with a sample text and the metadata. [#10102](https://github.com/JabRef/jabref/issues/10102)
- We modified the DOI cleanup to infer the DOI from an ArXiV ID if it's present. [10426](https://github.com/JabRef/jabref/issues/10426)
- The Medline importer uses the field `comment` for notes (instead of `review).

### Fixed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public boolean isRecognizedFormat(BufferedReader reader) throws IOException {
}

public static void processSubSup(Map<Field, String> map) {
Field[] subsup = {StandardField.TITLE, StandardField.ABSTRACT, StandardField.REVIEW, new UnknownField("notes")};
Field[] subsup = {StandardField.TITLE, StandardField.ABSTRACT, StandardField.COMMENT, new UnknownField("notes")};

for (Field aSubsup : subsup) {
if (map.containsKey(aSubsup)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ public void testProcessSubSup() {
IsiImporter.processSubSup(subs);
assertEquals("$_3$", subs.get(StandardField.ABSTRACT));

subs.put(StandardField.REVIEW, "/sub 31/");
subs.put(StandardField.COMMENT, "/sub 31/");
IsiImporter.processSubSup(subs);
assertEquals("$_{31}$", subs.get(StandardField.REVIEW));
assertEquals("$_{31}$", subs.get(StandardField.COMMENT));

subs.put(StandardField.TITLE, "/sup 3/");
IsiImporter.processSubSup(subs);
Expand All @@ -114,9 +114,9 @@ public void testProcessSubSup() {
IsiImporter.processSubSup(subs);
assertEquals("$^3$", subs.get(StandardField.ABSTRACT));

subs.put(StandardField.REVIEW, "/sup 31/");
subs.put(StandardField.COMMENT, "/sup 31/");
IsiImporter.processSubSup(subs);
assertEquals("$^{31}$", subs.get(StandardField.REVIEW));
assertEquals("$^{31}$", subs.get(StandardField.COMMENT));

subs.put(StandardField.TITLE, "/sub $Hello/");
IsiImporter.processSubSup(subs);
Expand Down