From 4e5f9185e95b63537941ef2dbd4ad333d120edc1 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 21 Jun 2012 11:05:50 -0400 Subject: [PATCH] include more Item Form codes under Electronic in the Advanced Search page for the JSPAC Signed-off-by: Jason Etheridge --- Open-ILS/web/opac/skin/default/js/adv_global.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)); } ); -- 2.11.0