include more Item Form codes under Electronic collab/phasefx/item_form_jspac_tweak
authorJason Etheridge <jason@esilibrary.com>
Thu, 21 Jun 2012 15:05:50 +0000 (11:05 -0400)
committerJason Etheridge <jason@esilibrary.com>
Thu, 21 Jun 2012 18:02:39 +0000 (14:02 -0400)
in the Advanced Search page for the JSPAC

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/web/opac/skin/default/js/adv_global.js

index daf3e67..971c5cb 100644 (file)
@@ -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));
                 }
             );