1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Patron Display -->
8 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
10 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
11 <?xml-stylesheet href="chrome://open_ils_staff_client/skin/global.css" type="text/css"?>
12 <?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
14 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
16 <!DOCTYPE window PUBLIC "" ""[
17 <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
20 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
22 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
24 <window id="pre_cat_fields" title="&staff.circ.pre_cat.window.title;"
25 orient="vertical" style="overflow: auto"
26 onload="try{my_init();font_helper(); }catch(E){alert(E);}"
27 onunload="try{my_finish();}catch(E){alert(E);}"
28 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
30 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
32 <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
33 <scripts id="openils_util_scripts"/>
35 <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
41 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
42 if (typeof JSAN == 'undefined') {
43 throw( document.getElementById("commonStrings").getString('common.jsan.missing') );
45 JSAN.errorLevel = "die"; // none, warn, or die
46 JSAN.addRepository('/xul/server/');
47 JSAN.use('util.error'); g.error = new util.error();
48 g.error.sdump('D_TRACE','my_init() for pre_cat_fields.xul');
49 JSAN.use('OpenILS.data'); g.data = new OpenILS.data();
50 g.data.init({'via':'stash'});
52 document.getElementById('dummy_title').focus();
55 function my_finish() {
56 /* FIXME -- need unique temp space name */
57 /* FIXME -- We need to blank dummy_title on a forced window close */
58 g.data.stash('dummy_title','dummy_author');
64 <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties" />
67 <caption label="&staff.circ.pre_cat.caption.label;"/>
69 <columns><column /><column flex="1"/></columns>
72 <label value="&staff.circ.pre_cat.dummy_title.value;" control="dummy_title"/>
73 <textbox id="dummy_title" onchange="g.data.dummy_title = event.target.value;"/>
76 <label value="&staff.circ.pre_cat.dummy_author.value;" control="dummy_author"/>
77 <textbox id="dummy_author" onchange="g.data.dummy_author = event.target.value;"/>
83 <button label="&staff.circ.pre_cat.cancel.label;" oncommand="g.data.dummy_title = ''; window.close()" accesskey="&staff.circ.pre_cat.cancel.accesskey;"/>
84 <button label="&staff.circ.pre_cat.checkout.label;" oncommand="window.close();" accesskey="&staff.circ.pre_cat.checkout.accesskey;"/>