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

ISI import failure related to String index out of range: -1 #3669

Closed
elizagrames opened this Issue Jan 27, 2018 · 4 comments

Comments

Projects
None yet
4 participants
@elizagrames

elizagrames commented Jan 27, 2018

JabRef version 4.1 on Ubuntu 17.04 (and also the latest master build) fails to import ISI files (saved as .txt) if the field PS has no hyphen in it. Examples to repeat the issue are below. The error is "String index out of range: -1".

Will import:

PT J
DT Article
TI Example title.
PS 201-
BP 201
EP 299
LA English
AB Example abstract text.
ER

EF

Will not import:

PT J
DT Article
TI Example title.
PS 201
BP 201
EP 299
LA English
AB Example abstract text.
ER

EF
@stefan-kolb

This comment has been minimized.

Member

stefan-kolb commented Feb 6, 2018

Is this format even still in use? I cannot find any documentation on the file format in the web?

@stefan-kolb

This comment has been minimized.

Member

stefan-kolb commented Feb 6, 2018

Also not sure what PS is used for. https://web.archive.org/web/20131031052339/http://wos.isitrial.com/help/helpprn.html
Does not say anything about such a field.

@stefan-kolb stefan-kolb added waiting-for-feedback and removed bug labels Feb 6, 2018

@elizagrames

This comment has been minimized.

elizagrames commented Feb 6, 2018

ISI is still used by Web of Science if you export references for "other reference software." I have no idea why they include PS (it's the page range) but it prevents the import. The workaround I did was to just use sed to remove all lines beginning with PS.

@stefan-kolb

This comment has been minimized.

Member

stefan-kolb commented Feb 6, 2018

Thank you for your report 👍
This should be fixed in current master. Please try the latest build from http://builds.jabref.org/master.

Siedlerchr added a commit that referenced this issue Feb 7, 2018

Merge remote-tracking branch 'upstream/master' into sharelatex
* upstream/master: (47 commits)
  Fix Google Scholar fetcher
  Use english for all LCID mappings #1851
  remove import preferences test mock import and convert to junit5
  fix #3693 (#3702)
  Fix space leads to jump in entry editor (#3699)
  Fix #3669
  Extract creation of the contents of FileAnnotationTabController
  Fix changelog
  Fix NPE
  Remove unnecessary file
  use processbuilder for calling external apps
  Fix color highlight of odd linked files
  Fixes #2964
  Fix koppor issues #3
  Allow spaces in DOIs
  Remove irrelevant log messages during XMP reading
  Adapt log4j configuration for cleaner junit tests #3511
  Eclipse Django style #3655
  Better code style for chained methods
  Update build.gradle
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment