From: miker Date: Sun, 10 Aug 2008 18:59:38 +0000 (+0000) Subject: send actual value; no wrapping array, just a string; note about future improvement X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7fa083b1fa66d2ed5b06fd695a1bf4f6716f933f;p=Evergreen.git send actual value; no wrapping array, just a string; note about future improvement git-svn-id: svn://svn.open-ils.org/ILS/trunk@10323 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js index e27536d369..293c971bfd 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -1904,7 +1904,7 @@ function validateAuthority (button) { 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 @@ function validateAuthority (button) { 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) {