]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/circ/checkin.xul
Fix bills_current template to use mbts_id macro
[working/Evergreen.git] / Open-ILS / xul / staff_client / server / circ / checkin.xul
1 <?xml version="1.0" encoding="UTF-8"?>
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/circ.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/circ/checkin_overlay.xul"?>
21
22 <window id="checkin_win" active="true" 
23     onload="try { my_init(); font_helper(); persist_helper(); document.getElementById('checkin_modifiers_popup').hidePopup(); } 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 my_init() {
35             try {
36                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
37                 if (typeof JSAN == 'undefined') { throw( document.getElementById("commonStrings").getString('common.jsan.missing') ); }
38                 JSAN.errorLevel = "die"; // none, warn, or die
39                 JSAN.addRepository('/xul/server/');
40                 JSAN.use('util.error'); g.error = new util.error();
41                 g.error.sdump('D_TRACE','my_init() for checkin.xul');
42
43                 var tab_name;
44                 if (xul_param('hold_capture')) {
45                     var cb1 = document.getElementById('checkin_auto_print_slips'); cb1.hidden = true; cb1.setAttribute('checked','true'); cb1.removeAttribute('oils_persist');
46                     var cb1_ind = document.getElementById('checkin_auto_print_slips_indicator'); cb1_ind.hidden = false;
47                     var cb2 = document.getElementById('suppress_holds_and_transits'); cb2.hidden = true; cb2.removeAttribute('checked'); cb2.removeAttribute('oils_persist');
48                     var cb2_ind = document.getElementById('suppress_holds_and_transits_indicator'); cb2_ind.hidden = true;
49                     document.getElementById('checkin_effective_date_hbox').hidden = true;
50                     document.getElementById('caption').setAttribute('label',document.getElementById('circStrings').getString('staff.circ.checkin.hold_capture'));
51                     tab_name = document.getElementById('circStrings').getString('staff.circ.checkin.hold_capture');
52                 } else {
53                     tab_name = document.getElementById('circStrings').getString('staff.circ.checkin.check_in.tab');
54                 }
55
56                 JSAN.use('circ.checkin'); g.checkin = new circ.checkin();
57                 g.checkin.init( 
58                     { 
59                     } 
60                 );
61     
62                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
63                     try { window.xulG.set_tab_name(tab_name); } catch(E) { alert(E); }
64                 }
65
66             } catch(E) {
67                 var err_msg = document.getElementById("commonStrings").getFormattedString('common.exception', ['circ.checkin.xul', E]);
68                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
69                 alert(err_msg);
70             }
71         }
72
73         function default_focus() { try { setTimeout( function() { document.getElementById('checkin_barcode_entry_textbox').focus(); }, 0); } catch(E) {} }
74     ]]>
75     </script>
76
77     <popupset id="copy_status_popupset"/>
78
79     <commandset id="checkin_cmds" />
80
81     <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties"/>
82     <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale'-->/cat.properties"/>
83
84     <box id="checkin_main" />
85
86 </window>
87