Skip to content

Commit

Permalink
Merge pull request #75 from zuphilip/option-gedruckt
Browse files Browse the repository at this point in the history
[PicaGBV] Export Option "Gedruckte Ressource" hinzugefügt
  • Loading branch information
zuphilip authored May 21, 2018
2 parents 0f370c5 + 84bd8e8 commit 32e7a0a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions PicaGBV.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"inRepository": true,
"translatorType": 2,
"browserSupport": "gcs",
"lastUpdated": "2017-02-01 08:10:00"
"displayOptions": {
"Gedruckte Ressource": false
},
"lastUpdated": "2018-03-18 15:25:00"
}


Expand Down Expand Up @@ -107,6 +110,9 @@ function writeLine(code, line) {
}

function doExport() {
if (Zotero.getOption("Gedruckte Ressource")) {
physicalForm = "A";
}
var item;
while ((item = Zotero.nextItem())) {

Expand Down Expand Up @@ -163,10 +169,10 @@ function doExport() {
if (physicalForm === "O") {

//item.type --> 0502 Medientyp
writeLine("0502", "Computermedien$bn");
writeLine("0502", "Computermedien$bc");

//item.type --> 0503 Datenträgertyp
writeLine("0503", "Online-Ressource$bnc");
writeLine("0503", "Online-Ressource$bcr");

}

Expand Down

0 comments on commit 32e7a0a

Please sign in to comment.