Skip to content

Instantly share code, notes, and snippets.

@knoxdw
Created April 25, 2011 00:55
Show Gist options
  • Select an option

  • Save knoxdw/940023 to your computer and use it in GitHub Desktop.

Select an option

Save knoxdw/940023 to your computer and use it in GitHub Desktop.
A patch for ajlyon's MARC.js translator
--- zotero-bits/MARC.js 2011-04-22 20:27:06.000000000 -0500
+++ MARC.js 2011-04-23 21:42:16.000000000 -0500
@@ -198,5 +198,5 @@
// Duplicate subfield
Zotero.debug("Duplicate subfield '"+tag+" "+subfieldIndex+"="+subfields[j]);
- returnFields[i][subfieldIndex] = returnFields[i][subfieldIndex] + subfields[j].substr(this.subfieldCodeLength-1);
+ returnFields[i][subfieldIndex] = returnFields[i][subfieldIndex] + " " + subfields[j].substr(this.subfieldCodeLength-1);
}
}
@@ -466,4 +466,5 @@
this._associateDBField(item, "090", "a", "callNumber");
this._associateDBField(item, "099", "a", "callNumber");
+ this._associateDBField(item, "852", "khim", "callNumber");
//German
@knoxdw
Copy link
Copy Markdown
Author

knoxdw commented Apr 25, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment