[open-ils-commits] r10323 -
trunk/Open-ILS/xul/staff_client/server/cat
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Aug 10 14:59:41 EDT 2008
Author: miker
Date: 2008-08-10 14:59:38 -0400 (Sun, 10 Aug 2008)
New Revision: 10323
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
Log:
send actual value; no wrapping array, just a string; note about future improvement
Modified: trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js 2008-08-10 18:48:29 UTC (rev 10322)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js 2008-08-10 18:59:38 UTC (rev 10323)
@@ -1904,7 +1904,7 @@
for (var j = 0; j < subfields.length; j++) {
var sf = subfields[j];
var sf_code = sf.childNodes[1].value;
- var sf_value = sf.childNodes[1].value;
+ var sf_value = sf.childNodes[2].value;
if (!control_map[tag.value][sf_code]) continue;
@@ -1919,10 +1919,11 @@
for (var val_tag in tags) {
var auth_data = validateBibField( [val_tag], tags[val_tag]);
var res = new XML( auth_data.responseText );
- found = parseInt( res.gw::payload.gw::array.gw::string );
+ found = parseInt(res.gw::payload.gw::string.toString());
if (found) break;
}
+ // XXX If adt, etc should be validated separately from vxz, etc then move this up into the above for loop
for (var j = 0; j < subfields.length; j++) {
var sf = subfields[j];
if (!found) {
More information about the open-ils-commits
mailing list