commit a4d973b273923b5a33c1f9acfae65d96a165597d
parent 2cf93502041c8e9779f726e6d662ad36598ec401
Author: Matt Burton <mcburton@gmail.com>
Date: Sun, 12 Apr 2009 16:34:55 +0000
Merge branch 'primo'
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/translators/Primo.js b/translators/Primo.js
@@ -80,8 +80,6 @@ function doWeb(doc, url) {
var creators = xmldoc.display.creator.toString().replace(/\d{4}-(\d{4})?/, '').split("; ");
var contributors = xmldoc.display.contributor.toString().replace(/\d{4}-(\d{4})?/, '').split("; ");
- Zotero.debug(creators);
-
if (!creators[0]) { // <contributor> not available using <contributor> as author instead
creators = contributors;
contributors = null;
@@ -119,6 +117,12 @@ function doWeb(doc, url) {
var edition = xmldoc.display.edition.toString();
if (edition) item.edition = edition;
+ for each (subject in xmldoc.search.subject) {
+ item.tags.push(subject.toString());
+ }
+ // does callNumber get stored anywhere else in the xml?
+ item.callNumber = xmldoc.enrichment.classificationlcc[0];
+
item.complete();
}, function() {Zotero.done();});