]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/chrome/content/circ/offline.xul
ae37d79df3e621650915355bd177dc2f3271c142
[Evergreen.git] / Open-ILS / xul / staff_client / chrome / content / circ / offline.xul
1 <?xml version="1.0"?>
2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Example Template for remote xul -->
4
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
6 <!-- STYLESHEETS -->
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
8 <?xml-stylesheet href="chrome://open_ils_staff_client/skin/global.css" type="text/css"?>
9
10 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
11 <!-- LOCALIZATION -->
12 <!DOCTYPE window SYSTEM "chrome://open_ils_staff_client/locale/lang.dtd">
13
14 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
15 <!-- OVERLAYS -->
16 <?xul-overlay href="chrome://open_ils_staff_client/content/OpenILS/util_overlay_offline.xul"?>
17
18 <window id="offline_win" sizemode="maximized"
19         onload="try { my_init(); } catch(E) { alert(E); }"
20         xmlns:html="http://www.w3.org/1999/xhtml"
21         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
22
23         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
24         <!-- BEHAVIOR -->
25         <script type="text/javascript">
26                 var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
27         </script>
28         <scripts id="openils_util_scripts"/>
29
30         <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/JSAN.js"/>
31         <script>
32         <![CDATA[
33                 function my_init() {
34                         try {
35                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
36                                 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
37                                 JSAN.errorLevel = "die"; // none, warn, or die
38                                 JSAN.addRepository('..');
39                                 JSAN.use('util.error'); g.error = new util.error();
40                                 g.error.sdump('D_TRACE','my_init() for offline.xul');
41
42                                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
43                                         try { window.xulG.set_tab_name('Standalone'); } catch(E) { alert(E); }
44                                 }
45
46                                 g.cgi = new CGI();
47
48                                 JSAN.use('circ.offline'); g.offline = new circ.offline();
49
50                                 g.offline.init();
51
52
53                                 JSAN.use('util.date');
54                                 
55                                 function update_clock() {
56                                         var today = util.date.formatted_date(new Date(),"%F %H:%M:%s");
57                                         document.getElementById('today').setAttribute('label',today);
58                                         setTimeout(update_clock,1);
59                                 }
60
61                                 update_clock();
62
63                         } catch(E) {
64                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
65                                         "system administrator or software developer the following:\ncirc/offline.xul\n" + E + '\n';
66                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
67                                 alert(err_msg);
68                         }
69                 }
70
71         ]]>
72         </script>
73
74         <groupbox flex="1">
75                 <caption label="Evergreen Offline"/>
76                 <hbox id="nav">
77                         <button id="today" onclick="alert('Not Yet Implemented');" tooltiptext="Estimated Server Time - Click to adjust"/>
78                         <spacer flex="1"/>
79                         <button id="cmd_checkout" label="Check Out" accesskey="C"/>
80                         <button id="cmd_renew" label="Renew" accesskey="r"/>
81                         <button id="cmd_in_house_use" label="In House Use" accesskey="h"/>
82                         <button id="cmd_checkin" label="Check In" accesskey="i"/>
83                         <button id="cmd_register_patron" label="Register Patron" accesskey="p"/>
84                         <button id="cmd_print_last_receipt" label="Last Receipt" accesskey="l"/>
85                         <button id="cmd_exit" label="Exit" accesskey="x"/>
86                 </hbox>
87                 <deck id="main" style="border: solid thin red; background-color: #FFAAAA;" flex="1">
88                         <vbox flex="1">
89                                 <spacer flex="1"/>
90                                 <html:div>
91                                 <html:span style="font-weight: bold; font-size: x-large;">Use this interface when you have no network connectivity.  Some considerations:</html:span>
92                                 <html:ul>
93                                         <html:li><html:span style="font-size: x-large;">You should synchronize with Evergreen as often as possible by logging in when networked.  This updates the offline patron list and the offline clock (the button in the upper left corner).</html:span></html:li>
94                                         <html:li><html:span style="font-size: x-large;">You should not modify your local system time through your operating system once you have synchronized with Evergreen.  The servers keep track of all time differences between machines and normalizes them when ordering and processing transactions.  However, if the offline clock differs greatly from reality, you may adjust it from within this interface by clicking on the date/time button in the upper left corner.</html:span></html:li>
95                                         <html:li><html:span style="font-size: x-large;">You may upload offline transactions after you regain network connectivity by logging in and choosing <html:span style="font-weight: bold;">Admin -&gt; Upload Offline Transactions</html:span> from the menubar.  Once all transactions have been uploaded, you may review and process them from <html:span style="font-weight: bold;">Admin -&gt; Offline Transaction Management</html:span>.</html:span></html:li>
96                                 </html:ul>
97                                 </html:div>
98                                 <spacer flex="2"/>
99                         </vbox>
100                 </deck>
101         </groupbox>
102
103 </window>
104