From ffdb88d83d72cf102ef3d4d832800ec326cd88db Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Fri, 29 Jul 2016 12:59:42 +0200 Subject: [PATCH] Fixed #1639 (#1641) * Fixed #1639 * Removed old code --- CHANGELOG.md | 1 + .../net/sf/jabref/importer/fetcher/GoogleScholarFetcher.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20c805ad4c7..30bdc9d447e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `# - Fixed [#1592](https://github.com/JabRef/jabref/issues/1592): LibreOffice: wrong numbers in citation labels - The merge entry dialog showed wrong heading after merging from DOI - Fixed [#1321](https://github.com/JabRef/jabref/issues/1321): LaTeX commands in fields not displayed in the list of references +- Fixed [#1639](https://github.com/JabRef/jabref/issues/1639): Google Scholar fetching works again. - Date fields in the BibLatex standard are now always formatted in the correct way, independent of the preferences ### Removed diff --git a/src/main/java/net/sf/jabref/importer/fetcher/GoogleScholarFetcher.java b/src/main/java/net/sf/jabref/importer/fetcher/GoogleScholarFetcher.java index 44b36eae33d..fff4822be54 100644 --- a/src/main/java/net/sf/jabref/importer/fetcher/GoogleScholarFetcher.java +++ b/src/main/java/net/sf/jabref/importer/fetcher/GoogleScholarFetcher.java @@ -266,8 +266,7 @@ private String getCitationsFromUrl(String urlQuery, Map ids) thr private BibEntry downloadEntry(String link) throws IOException { try { - String s = new URLDownload(GoogleScholarFetcher.URL_START + link) - .downloadToString(Globals.prefs.getDefaultEncoding()); + String s = new URLDownload(link).downloadToString(Globals.prefs.getDefaultEncoding()); BibtexParser bp = new BibtexParser(new StringReader(s)); ParserResult pr = bp.parse(); if ((pr != null) && (pr.getDatabase() != null)) {