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 17ec05c
Showing 1 changed file with 7 additions and 7 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

0 comments on commit 17ec05c

Please sign in to comment.