Skip to content

Fix journal title in ris importer#2510

Merged
tobiasdiez merged 2 commits into
JabRef:masterfrom
tschechlovdev:ris-fix-journaltitle
Feb 2, 2017
Merged

Fix journal title in ris importer#2510
tobiasdiez merged 2 commits into
JabRef:masterfrom
tschechlovdev:ris-fix-journaltitle

Conversation

@tschechlovdev

Copy link
Copy Markdown
Contributor

Fix for #2506.
The problem was that the T2 field was used for the journal title, if it comes first. Now T2 is only used for the journal title, if the field JO does not appear. I've also added the file from science direct as test case.

@tschechlovdev tschechlovdev changed the title [WIP] Fix journal title in ris importer Fix journal title in ris importer Feb 2, 2017
@tschechlovdev tschechlovdev added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Feb 2, 2017

@lenhard lenhard left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks very much for addressing this! I have only a minor formatting comment.

Moreover, could you add a changelog entry that refers to the #2506?

} else if ("BT".equals(tag)) {
fields.put(FieldName.BOOKTITLE, value);
} else if ("T2".equals(tag) || "JO".equals(tag)) {
} else if ("T2".equals(tag)&&(fields.get(FieldName.JOURNAL) == null || "".equals(fields.get(FieldName.JOURNAL)))){

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you fix the formatting in the condition here? I am referring to whitespaces between operators && and the operands.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Also added a changelog entry.

@tobiasdiez tobiasdiez removed the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Feb 2, 2017
@tobiasdiez tobiasdiez merged commit 99223c4 into JabRef:master Feb 2, 2017
@tobiasdiez

Copy link
Copy Markdown
Member

Thanks!

Siedlerchr added a commit that referenced this pull request Feb 2, 2017
* upstream/master:
  Fix journal title in ris importer (#2510)
  French localization: Main file: translations of strings (#2512)

# Conflicts:
#	CHANGELOG.md
@tschechlovdev tschechlovdev deleted the ris-fix-journaltitle branch February 3, 2017 14:22
Siedlerchr added a commit that referenced this pull request Feb 3, 2017
* upstream/master:
  Fix export of number + pubstate in OFFice XML (#2514)
  Groups button and context menu for adding groups (#2508)
  Fix journal title in ris importer (#2510)
  French localization: Main file: translations of strings (#2512)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants