Skip to content

Commit

Permalink
Merge pull request zotero#910 from zuphilip/fix-tei
Browse files Browse the repository at this point in the history
[TEI.js] Fix for loop with object
  • Loading branch information
aurimasv committed Jun 27, 2015
2 parents 5cf8b79 + 36e41d3 commit 5a7f9ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions TEI.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"Full TEI Document": false,
"Export Collections": false
},
"lastUpdated": "2015-06-21 23:45:13"
"lastUpdated": "2015-06-27 15:00:00"
}

// ********************************************************************
Expand Down Expand Up @@ -105,9 +105,9 @@ var ns = {"tei": "http://www.tei-c.org/ns/1.0",



var exportedXMLIds = [];
var generatedItems = [];
var allItems = [];
var exportedXMLIds = {};
var generatedItems = {};
var allItems = {};


function genXMLId (item){
Expand Down Expand Up @@ -563,7 +563,7 @@ function doExport() {
}
else {
var listBibl = teiDoc.createElementNS(ns.tei, "listBibl");
for (var i=0; i<allItems.length; i++) {
for (var i in allItems) {
var item = allItems[i];
//skip attachments
if(item.itemType == "attachment"){
Expand Down

0 comments on commit 5a7f9ce

Please sign in to comment.