]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/search_result.xul
Improve Firefox/XULRunner Support
[working/Evergreen.git] / Open-ILS / xul / staff_client / server / patron / search_result.xul
1 <?xml version="1.0"?>
2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Patron Display -->
4
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
6 <!-- STYLESHEETS -->
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
8 <?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
9 <?xml-stylesheet href="/xul/server/skin/patron_display.css" type="text/css"?>
10
11 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
12 <!-- LOCALIZATION -->
13 <!DOCTYPE window PUBLIC "" ""[
14     <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
15 ]>
16
17 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
18 <!-- OVERLAYS -->
19 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
20 <?xul-overlay href="/xul/server/patron/search_result_overlay.xul"?>
21
22 <window id="patron_search_result_win" 
23     onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
24     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
25
26     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
27     <!-- BEHAVIOR -->
28     <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
29     <scripts id="openils_util_scripts"/>
30
31     <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
32     <script>
33     <![CDATA[
34         function $(id) { return document.getElementById(id); }
35         
36         function my_init() {
37             try {
38                 if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); }
39                 JSAN.errorLevel = "die"; // none, warn, or die
40                 JSAN.addRepository('/xul/server/');
41                 JSAN.use('util.error'); g.error = new util.error();
42                 g.error.sdump('D_TRACE','my_init() for patron_search_result.xul');
43
44                 g.cgi = new CGI();
45                 var keys = g.cgi.keys();
46                 var query = {};
47                 for (var i = 0; i < keys.length; i++) {
48                     query[keys[i]] = g.cgi.param(keys[i]);
49                 }
50                 if (typeof xulG != 'undefined') if (xulG.query) {
51                     for (var i in xulG.query) {
52                         query[i] = xulG.query[i];
53                     }
54                 }
55
56                 JSAN.use('patron.search_result'); g.search_result = new patron.search_result();
57                 g.search_result.init( { 'query' : query, 'search_limit' : xulG.search_limit, 'search_sort' : xulG.search_sort } );
58     
59             } catch(E) {
60                 var err_msg = $("commonStrings").getFormattedString('common.exception', ['patron/search_result.xul', E]);
61                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
62                 alert(err_msg);
63             }
64         }
65
66     ]]>
67     </script>
68
69     <commandset id="patron_search_result_cmds">
70         <command id="cmd_patron_refresh" />
71         <command id="cmd_patron_checkout" />
72         <command id="cmd_patron_items" />
73         <command id="cmd_patron_holds" />
74         <command id="cmd_patron_bills" />
75         <command id="cmd_patron_edit" />
76         <command id="cmd_patron_info" />
77         <command id="cmd_search_print" />
78         <command id="cmd_sel_clip" disabled="true"/>
79         <command id="cmd_save_cols" />
80     </commandset>
81
82     <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties"/>
83
84     <box id="patron_search_result_main" />
85
86 </window>
87