From: Jason Etheridge Date: Thu, 21 Jun 2012 15:05:50 +0000 (-0400) Subject: include more Item Form codes under Electronic X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4e5f9185e95b63537941ef2dbd4ad333d120edc1;p=working%2FEvergreen.git include more Item Form codes under Electronic in the Advanced Search page for the JSPAC Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/web/opac/skin/default/js/adv_global.js b/Open-ILS/web/opac/skin/default/js/adv_global.js index daf3e677ff..971c5cbd2e 100644 --- a/Open-ILS/web/opac/skin/default/js/adv_global.js +++ b/Open-ILS/web/opac/skin/default/js/adv_global.js @@ -161,7 +161,11 @@ function advDrawBibExtras(r) { ); dojo.forEach(ctypeData, function(thing) { - var opt = insertSelectorVal(sel, -1, (thing.search_label ? thing.search_label : thing.value), thing.code); + var code = thing.code; + if (ctype == 'item_form' && code == 's') { // Electronic + code = 'soq'; + } + var opt = insertSelectorVal(sel, -1, (thing.search_label ? thing.search_label : thing.value), code); opt.setAttribute('title', (thing.search_label ? thing.search_label : thing.value)); } );