[jabref] 02/05: Fix medline fetcher by using https
Tony Mancill
tmancill at moszumanska.debian.org
Thu Dec 8 13:34:49 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 99784cdeaace7dac37fcc3041e6c6b22dddb60d7
Author: tony mancill <tmancill at debian.org>
Date: Wed Dec 7 21:04:32 2016 -0800
Fix medline fetcher by using https
---
debian/patches/080_fix_medline_fetcher.patch | 32 ++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 33 insertions(+)
diff --git a/debian/patches/080_fix_medline_fetcher.patch b/debian/patches/080_fix_medline_fetcher.patch
new file mode 100644
index 0000000..7355f50
--- /dev/null
+++ b/debian/patches/080_fix_medline_fetcher.patch
@@ -0,0 +1,32 @@
+Author: Oliver Kopp <kopp.dev at gmail.com>
+Date: Wed, 23 Nov 2016 02:36:25 +0100
+Subject: [PATCH] Fix medline fetcher by using https
+Forwarded: not-needed
+Origin: https://github.com/JabRef/jabref/commit/a3f779a6008df46cc452a26ef8ddfacc21db2c46.patch
+
+---
+ src/main/java/net/sf/jabref/gui/importer/fetcher/MedlineFetcher.java | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/main/java/net/sf/jabref/gui/importer/fetcher/MedlineFetcher.java b/src/main/java/net/sf/jabref/gui/importer/fetcher/MedlineFetcher.java
+index c0da745..929ee18 100644
+--- a/src/main/java/net/sf/jabref/gui/importer/fetcher/MedlineFetcher.java
++++ b/src/main/java/net/sf/jabref/gui/importer/fetcher/MedlineFetcher.java
+@@ -66,7 +66,7 @@ private static String toSearchTerm(String in) {
+ */
+ private SearchResult getIds(String term, int start, int pacing) {
+
+- String baseUrl = "http://eutils.ncbi.nlm.nih.gov/entrez/eutils";
++ String baseUrl = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils";
+ String medlineUrl = baseUrl + "/esearch.fcgi?db=pubmed&retmax=" + Integer.toString(pacing) +
+ "&retstart=" + Integer.toString(start) + "&term=";
+
+@@ -218,7 +218,7 @@ public boolean processQuery(String query, ImportInspector iIDialog, OutputPrinte
+ * @return Will return an empty list on error.
+ */
+ private static List<BibEntry> fetchMedline(String id, OutputPrinter status) {
+- String baseUrl = "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&retmode=xml&rettype=citation&id=" +
++ String baseUrl = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&retmode=xml&rettype=citation&id=" +
+ id;
+ try {
+ URL url = new URL(baseUrl);
diff --git a/debian/patches/series b/debian/patches/series
index 4eb52ee..aeca971 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@
050_unirest_json.patch
060_disable_java-diff-utils.patch
070_remove_lookup_DOI.patch
+080_fix_medline_fetcher.patch
--
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