diff --git a/src/main/java/net/sf/jabref/importer/fetcher/GVKParser.java b/src/main/java/net/sf/jabref/importer/fetcher/GVKParser.java index 4f04899e10c..df2eb555757 100644 --- a/src/main/java/net/sf/jabref/importer/fetcher/GVKParser.java +++ b/src/main/java/net/sf/jabref/importer/fetcher/GVKParser.java @@ -70,7 +70,7 @@ private BibEntry parseEntry(Element e) { String editor = null; String title = null; String publisher = null; - String date = null; + String year = null; String address = null; String series = null; String edition = null; @@ -162,14 +162,15 @@ private BibEntry parseEntry(Element e) { address = getSubfield("p", datafield); } - //date + //year if ("011@".equals(tag)) { - date = getSubfield("a", datafield); + year = getSubfield("a", datafield); } - //date, volume, number, pages (year bei Zeitschriften (evtl. redundant mit 011@)) + //year, volume, number, pages (year bei Zeitschriften (evtl. redundant mit 011@)) if ("031A".equals(tag)) { - date = getSubfield("j", datafield); + year = getSubfield("j", datafield); + volume = getSubfield("e", datafield); number = getSubfield("a", datafield); pages = getSubfield("h", datafield); @@ -387,8 +388,8 @@ private BibEntry parseEntry(Element e) { if (publisher != null) { result.setField("publisher", publisher); } - if (date != null) { - result.setField("date", date); + if (year != null) { + result.setField("year", year); } if (address != null) { result.setField("address", address); diff --git a/src/test/resources/net/sf/jabref/importer/fetcher/gvk_gmp.1.bib b/src/test/resources/net/sf/jabref/importer/fetcher/gvk_gmp.1.bib index 6adf1682c64..06c2bdfe780 100644 --- a/src/test/resources/net/sf/jabref/importer/fetcher/gvk_gmp.1.bib +++ b/src/test/resources/net/sf/jabref/importer/fetcher/gvk_gmp.1.bib @@ -1,12 +1,12 @@ @Book{, Title = {GMP-Regelwerke für Arzneimittel}, Publisher = {Maas & Peither, GMP-Verl.}, + Year = {2014}, Address = {Schopfheim}, Edition = {7., aktualisierte Aufl.}, Note = {Text teilw. dt., teilw. engl.}, Number = {7}, Series = {Kleiner GMP-Berater}, - Date = {2014}, ISBN = {9783943267914}, Pagetotal = {310}, Ppn_GVK = {785759913} diff --git a/src/test/resources/net/sf/jabref/importer/fetcher/gvk_gmp.2.bib b/src/test/resources/net/sf/jabref/importer/fetcher/gvk_gmp.2.bib index 1a678c0eddf..714aff69e28 100644 --- a/src/test/resources/net/sf/jabref/importer/fetcher/gvk_gmp.2.bib +++ b/src/test/resources/net/sf/jabref/importer/fetcher/gvk_gmp.2.bib @@ -1,12 +1,12 @@ @Book{, Title = {GMP-Regelwerke für computergestützte Systeme}, Publisher = {Maas & Peither, GMP-Verl}, + Year = {2014}, Address = {Schopfheim}, Edition = {4., aktual. Aufl.}, Note = {Text teilw. dt. und engl}, Number = {Bd. 5}, Series = {Kleiner GMP-Berater}, - Date = {2014}, ISBN = {9783958070011}, Pagetotal = {142}, Ppn_GVK = {810635399} diff --git a/src/test/resources/net/sf/jabref/importer/fetcher/gvk_result_for_797485368.bib b/src/test/resources/net/sf/jabref/importer/fetcher/gvk_result_for_797485368.bib index f76dc7f1d53..8d64b1edea6 100644 --- a/src/test/resources/net/sf/jabref/importer/fetcher/gvk_result_for_797485368.bib +++ b/src/test/resources/net/sf/jabref/importer/fetcher/gvk_result_for_797485368.bib @@ -1,10 +1,10 @@ @Book{, Title = {GMP-Berater}, Publisher = {Maas und Peither GMP Verl.}, + Year = {2014}, Address = {Schopfheim}, Number = {L - N}, Volume = {Bd. I}, - Date = {2014}, Editor = {Anita Maas}, Pagetotal = {Losebl.-Ausg.}, Ppn_GVK = {797485368},