[jabref] 03/05: patch IEEEXploreFetcher for unirest + libandroid-json-java

Tony Mancill tmancill at moszumanska.debian.org
Tue Nov 29 04:08:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

tmancill pushed a commit to branch dev
in repository jabref.

commit 8bd500e35b9e5cd613ed6784c40f7b59e9f952b6
Author: tony mancill <tmancill at debian.org>
Date:   Mon Nov 28 19:53:32 2016 -0800

    patch IEEEXploreFetcher for unirest + libandroid-json-java
---
 debian/patches/unirest_json.patch | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/debian/patches/unirest_json.patch b/debian/patches/unirest_json.patch
index c2b6628..5e5d206 100644
--- a/debian/patches/unirest_json.patch
+++ b/debian/patches/unirest_json.patch
@@ -127,3 +127,27 @@
          return entry;
      }
  }
+--- a/src/main/java/net/sf/jabref/gui/importer/fetcher/IEEEXploreFetcher.java
++++ b/src/main/java/net/sf/jabref/gui/importer/fetcher/IEEEXploreFetcher.java
+@@ -210,6 +210,10 @@
+         StringBuilder bibtexQueryURLStringBuf = new StringBuilder();
+         bibtexQueryURLStringBuf.append(URL_BIBTEX_START);
+ 
++        // Debian:
++        // wrap method logic in try/catch for JSONException thrown by libandroid-json-java
++        try {
++
+         //loop over each record and create a comma-separate list of article numbers which will be used to download the raw Bibtex
+         JSONArray recordsJsonArray = searchResultsJson.getJSONArray("records");
+         for (int n = 0; n < recordsJsonArray.length(); n++) {
+@@ -229,6 +233,10 @@
+             bibtexQueryURLStringBuf.append("&citations-format=citation-only");
+         }
+ 
++        } catch (JSONException e) {
++            LOGGER.error(e);
++        } // Debian: end try/catch wrapper
++
+         //append the remaining URL
+         bibtexQueryURLStringBuf.append(URL_BIBTEX_END);
+ 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jabref.git



More information about the pkg-java-commits mailing list