Skip to content

Commit

Permalink
Replace "year" by "date" as the fields returned are biblatex fields
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Nov 21, 2015
1 parent f308410 commit b2c8db5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/main/java/net/sf/jabref/importer/fetcher/GVKParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private BibtexEntry parseEntry(Element e) {
String editor = null;
String title = null;
String publisher = null;
String year = null;
String date = null;
String address = null;
String series = null;
String edition = null;
Expand Down Expand Up @@ -153,14 +153,14 @@ private BibtexEntry parseEntry(Element e) {
address = getSubfield("p", datafield);
}

//year
//date
if (datafield.getAttribute("tag").equals("011@")) {
year = getSubfield("a", datafield);
date = getSubfield("a", datafield);
}

//year, volume, number, pages (year bei Zeitschriften (evtl. redundant mit 011@))
//date, volume, number, pages (year bei Zeitschriften (evtl. redundant mit 011@))
if (datafield.getAttribute("tag").equals("031A")) {
year = getSubfield("j", datafield);
date = getSubfield("j", datafield);
volume = getSubfield("e", datafield);
number = getSubfield("a", datafield);
pages = getSubfield("h", datafield);
Expand Down Expand Up @@ -373,8 +373,8 @@ private BibtexEntry parseEntry(Element e) {
if (publisher != null) {
result.setField("publisher", publisher);
}
if (year != null) {
result.setField("year", year);
if (date != null) {
result.setField("date", date);
}
if (address != null) {
result.setField("address", address);
Expand Down
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
Original file line number Diff line number Diff line change
@@ -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},
Expand Down

0 comments on commit b2c8db5

Please sign in to comment.