LP975422 patron search from portal/splash page
authorJason Etheridge <jason@esilibrary.com>
Wed, 9 May 2012 14:30:17 +0000 (10:30 -0400)
committerDan Scott <dan@coffeecode.net>
Sun, 3 Jun 2012 01:44:15 +0000 (21:44 -0400)
make it consider the "Patron circulation summary is horizontal" library setting

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Dan Scott <dan@coffeecode.net>
Open-ILS/xul/staff_client/server/index.xhtml

index 15fe507..57aef29 100644 (file)
                 }
                 function find_patron(newtab) {
                         if(newtab)
-                                xulG.new_tab(urls.XUL_PATRON_DISPLAY,{},{});
+                                xulG.new_patron_tab({},{});
                         else
-                                xulG.set_tab(urls.XUL_PATRON_DISPLAY,{},{});
+                                xulG.set_patron_tab({},{});
                 }
                 
                 function spawn_search(s) {
-                        var loc = urls.XUL_PATRON_DISPLAY;
-                        loc += '?doit=1&amp;query=' + window.escape(js2JSON(s));
-                        xulG.new_tab( loc, {}, {} );
+                        xulG.new_patron_tab( {}, { 'doit' : 1, 'query' : js2JSON(s) } );
                 }
                 function register_patron(newtab) {
                         function spawn_editor(p) {