Skip to content

Commit

Permalink
added library key
Browse files Browse the repository at this point in the history
  • Loading branch information
corajr committed May 14, 2014
1 parent 0329461 commit 21eb70b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chrome/content/papermachines/papermachines.js
Expand Up @@ -732,7 +732,7 @@ Zotero.PaperMachines = {
}

var csv_str = "";
var header = ["filename", "itemID", "title", "label", "key", "year", "date", "place"];
var header = ["filename", "itemID", "title", "label", "key", "libraryKey", "year", "date", "place"];
csv_str += header.join(",") + "\n";

var docs = this.buildDocArray(collection);
Expand All @@ -753,6 +753,8 @@ Zotero.PaperMachines = {
val = item.getField("place");
} else if (header[k] == "key") {
val = item.key;
} else if (header[k] == "libraryKey") {
val = item.libraryKey;
} else if (header[k] == "label") {
val = this.getCollectionOfItem(item);
} else {
Expand Down

0 comments on commit 21eb70b

Please sign in to comment.