[open-ils-commits] r15038 - trunk/Open-ILS/web/js/dojo/MARC (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Nov 28 18:43:44 EST 2009
Author: miker
Date: 2009-11-28 18:43:37 -0500 (Sat, 28 Nov 2009)
New Revision: 15038
Modified:
trunk/Open-ILS/web/js/dojo/MARC/Record.js
Log:
in insertOrderedFields(), append if no tags are greater than the tag of the field being inserted
Modified: trunk/Open-ILS/web/js/dojo/MARC/Record.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/MARC/Record.js 2009-11-28 23:32:32 UTC (rev 15037)
+++ trunk/Open-ILS/web/js/dojo/MARC/Record.js 2009-11-28 23:43:37 UTC (rev 15038)
@@ -70,12 +70,15 @@
var me = this;
for ( var i in arguments ) {
var f = arguments[i];
+ var done = false;
for (var j in this.fields) {
if (f.tag > this.fields[j].tag) {
this.insertFieldsBefore(this.fields[j], f);
+ done = true;
break;
}
}
+ if (!done) this.appendFields(f);
}
},
More information about the open-ils-commits
mailing list