Replacing persist mechanism with oils_persist.
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 3 Sep 2009 04:14:48 +0000 (04:14 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 3 Sep 2009 04:14:48 +0000 (04:14 +0000)
This changeset isn't as scary as it looks, I promise. :-)

In XUL you can say,   <element attribute1="foo" attribute2="bar" persist="attribute1 attribute2" />
and whenever those specified attributes change, the new values will be remembered the next time that element is loaded.

Problems with persist:
  * No longer works with remote XUL in Xulrunner 1.9 series, only chrome.  Mozilla did this for security reasons.
  * Persist was tied to the window.location of each interface, so:
    1) Settings would be lost on any "upgrade" that effectively changed the URL.  For example, /xul/rel_1_2/server/ versus /xul/rel_1_4/server/
    2) Some interfaces still make use of URL params, which effectively breaks persistance (because the URL changes constantly), and allows localstore.rdf to grow without limit (thanks to Jeff for noticing that last bit)

The solution:
  * We renamed all occurances of @persist to @oils_persist, in case Mozilla changes the behavior again.
  * We created a persist_helper() function and call it alongside font_helper() in the @onload for most windows (all that currently have elements using @oils_persist, at least)

persist_helper grabs all elements that have an @oils_persist, and constructs look-up keys based on the location.hostname, location.path, and element.id, and uses the Mozilla preference system to look for preferences with those
keys.  These keys don't include URL parameters.  For <checkbox> elements, an event listener is added that will set the preference whenever the element fires a command event (is checked or unchecked).

TODO:
  * Tweak the keys further so that they're BUILD_ID (version) agnostic
  * Add more event listeners to accomodate @oils_persist on other elements like window, splitter, and grippy.
  * Possibly remove persist_helper (and font_helper) from the inline @onload, and load it through a window.addEventListener('load',function(){ persist_helper(); },false); in the global util overlay instead.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@13953 dcc99617-32d9-48b4-a31d-7c20da2025e4

40 files changed:
Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.xul
Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.xul
Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.xul
Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.xul
Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul
Open-ILS/xul/staff_client/chrome/content/util/list_clipboard.xul
Open-ILS/xul/staff_client/server/cat/copy_buckets.xul
Open-ILS/xul/staff_client/server/cat/copy_buckets_quick.xul
Open-ILS/xul/staff_client/server/cat/copy_editor.xul
Open-ILS/xul/staff_client/server/cat/copy_summary.xul
Open-ILS/xul/staff_client/server/cat/marcedit.xul
Open-ILS/xul/staff_client/server/cat/record_buckets.xul
Open-ILS/xul/staff_client/server/cat/record_buckets_overlay.xul
Open-ILS/xul/staff_client/server/cat/record_buckets_quick.xul
Open-ILS/xul/staff_client/server/cat/spine_labels.xul
Open-ILS/xul/staff_client/server/cat/volume_editor.xul
Open-ILS/xul/staff_client/server/cat/z3950.xul
Open-ILS/xul/staff_client/server/circ/checkin.xul
Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul
Open-ILS/xul/staff_client/server/circ/checkout.xul
Open-ILS/xul/staff_client/server/circ/checkout_overlay.xul
Open-ILS/xul/staff_client/server/circ/copy_details.xul
Open-ILS/xul/staff_client/server/circ/copy_status.xul
Open-ILS/xul/staff_client/server/circ/copy_status_overlay.xul
Open-ILS/xul/staff_client/server/circ/in_house_use.xul
Open-ILS/xul/staff_client/server/patron/bill_history.xul
Open-ILS/xul/staff_client/server/patron/bills.xul
Open-ILS/xul/staff_client/server/patron/bills_overlay.xul
Open-ILS/xul/staff_client/server/patron/display.xul
Open-ILS/xul/staff_client/server/patron/display_horiz.xul
Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul
Open-ILS/xul/staff_client/server/patron/display_overlay.xul
Open-ILS/xul/staff_client/server/patron/hold_details.xul
Open-ILS/xul/staff_client/server/patron/hold_notices.xul
Open-ILS/xul/staff_client/server/patron/holds.xul
Open-ILS/xul/staff_client/server/patron/holds_overlay.xul
Open-ILS/xul/staff_client/server/patron/standing_penalties.xul
Open-ILS/xul/staff_client/server/patron/summary.xul
Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul

index 4cc9467..56d7e59 100644 (file)
                }
        }
 
+    function persist_helper() {
+        try {
+            netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
+            var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces['nsIPrefBranch']);
+            var nodes = document.getElementsByAttribute('oils_persist','*');
+            for (var i = 0; i < nodes.length; i++) {
+                var base_key = 'oils_persist_' + String(location.hostname + location.pathname + '_' + nodes[i].getAttribute('id')).replace('/','_','g') + '_';
+                var attribute_list = nodes[i].getAttribute('oils_persist').split(' ');
+                for (var j = 0; j < attribute_list.length; j++) {
+                    var key = base_key + attribute_list[j];
+                    var value = prefs.prefHasUserValue(key) ? prefs.getCharPref(key) : null;
+                    dump('persist_helper: retrieving key = ' + key + ' value = ' + value + ' for ' + nodes[i].nodeName + '\n');
+                    if (value) nodes[i].setAttribute( attribute_list[j], value );
+                }
+                if (nodes[i].nodeName == 'checkbox' && attribute_list.indexOf('checked') > -1) nodes[i].addEventListener(
+                    'command',
+                    function(bk) {
+                        return function(ev) {
+                            try {
+                                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
+                                var key = bk + 'checked';
+                                var value = ev.target.checked;
+                                ev.target.setAttribute( 'checked', value );
+                                prefs.setCharPref( key, value );
+                                dump('persist_helper: setting key = ' +  key + ' value = ' + value + ' for checkbox\n');
+                            } catch(E) {
+                                alert('Error in persist_helper(), checkbox command event listener: ' + E);
+                            }
+                        };
+                    }(base_key), 
+                    false
+                );
+                // TODO: Need to add event listeners for window resizing, splitter repositioning, grippy state, etc.
+            }
+        } catch(E) {
+            alert('Error in persist_helper(): ' + E);
+        }
+    }
+
        function getKeys(o) {
                var keys = [];
                for (var k in o) keys.push(k);
index d19616d..8fa3bc4 100644 (file)
@@ -16,7 +16,7 @@
 <?xul-overlay href="chrome://open_ils_staff_client/content/OpenILS/util_overlay_offline.xul"?>
 
 <window id="offline_checkin_win" sizemode="maximized"
-       onload="try { my_init(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
@@ -50,7 +50,7 @@
                                <hbox>
                                        <spacer flex="1"/>
                                        <description>&common.check_barcode.description;</description>
-                                       <checkbox id="strict_i_barcode" persist="checked"/>
+                                       <checkbox id="strict_i_barcode" oils_persist="checked"/>
                                </hbox>
                                <hbox>
                                        <label value="&common.step3.label;" style="font-weight: bold"/>
@@ -63,7 +63,7 @@
                                <hbox>
                                        <spacer flex="1"/>
                                        <description>&staff.circ.offline.print.description;</description>
-                                       <checkbox id="print_receipt" persist="checked"/>
+                                       <checkbox id="print_receipt" oils_persist="checked"/>
                                </hbox>
                                <hbox>
                                        <spacer flex="1"/>
index b4d23df..2744d4b 100644 (file)
@@ -16,7 +16,7 @@
 <?xul-overlay href="chrome://open_ils_staff_client/content/OpenILS/util_overlay_offline.xul"?>
 
 <window id="offline_checkout_win" sizemode="maximized"
-       onload="try { my_init(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
@@ -50,7 +50,7 @@
                                <hbox>
                                        <spacer flex="1"/>
                                        <description>&common.check_barcode.description;</description>
-                                       <checkbox id="strict_p_barcode" persist="checked"/>
+                                       <checkbox id="strict_p_barcode" oils_persist="checked"/>
                                </hbox>
                                <hbox>
                                        <label value="&common.step3.label;" style="font-weight: bold" accesskey="&common.step3.accesskey;" control="duedate"/>
@@ -87,7 +87,7 @@
                                <hbox>
                                        <spacer flex="1"/>
                                        <description>&common.check_barcode.description;</description>
-                                       <checkbox id="strict_i_barcode" persist="checked"/>
+                                       <checkbox id="strict_i_barcode" oils_persist="checked"/>
                                </hbox>
                                <hbox>
                                        <label value="&common.step5.label;" style="font-weight: bold"/>
                                <hbox>
                                        <spacer flex="1"/>
                                        <description>&staff.circ.offline.print.description;</description>
-                                       <checkbox id="print_receipt" persist="checked"/>
+                                       <checkbox id="print_receipt" oils_persist="checked"/>
                                </hbox>
                                <hbox>
                                        <spacer flex="1"/>
index 91ec999..e635c41 100644 (file)
@@ -16,7 +16,7 @@
 <?xul-overlay href="chrome://open_ils_staff_client/content/OpenILS/util_overlay_offline.xul"?>
 
 <window id="offline_checkout_win" sizemode="maximized"
-       onload="try { my_init(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
@@ -59,7 +59,7 @@
                                <hbox>
                                        <spacer flex="1"/>
                                        <description>&common.check_barcode.description;</description>
-                                       <checkbox id="strict_i_barcode" persist="checked"/>
+                                       <checkbox id="strict_i_barcode" oils_persist="checked"/>
                                </hbox>
                                <hbox>
                                        <label value="&common.step4.label;" style="font-weight: bold"/>
@@ -72,7 +72,7 @@
                                <hbox>
                                        <spacer flex="1"/>
                                        <description>&staff.circ.offline.print.description;</description>
-                                       <checkbox id="print_receipt" persist="checked"/>
+                                       <checkbox id="print_receipt" oils_persist="checked"/>
                                </hbox>
                                <hbox>
                                        <spacer flex="1"/>
index 44332d4..0040009 100644 (file)
@@ -16,7 +16,7 @@
 <?xul-overlay href="chrome://open_ils_staff_client/content/OpenILS/util_overlay_offline.xul"?>
 
 <window id="offline_checkout_win" sizemode="maximized"
-       onload="try { my_init(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
@@ -50,7 +50,7 @@
                                <hbox>
                                        <spacer flex="1"/>
                                        <description>&common.check_barcode.description;</description>
-                                       <checkbox id="strict_p_barcode" persist="checked"/>
+                                       <checkbox id="strict_p_barcode" oils_persist="checked"/>
                                </hbox>
                                <hbox>
                                        <label value="&common.step3.label;" style="font-weight: bold" accesskey="&common.step3.accesskey;" control="duedate"/>
@@ -83,7 +83,7 @@
                                <hbox>
                                        <spacer flex="1"/>
                                        <description>&common.check_barcode.description;</description>
-                                       <checkbox id="strict_i_barcode" persist="checked"/>
+                                       <checkbox id="strict_i_barcode" oils_persist="checked"/>
                                </hbox>
                                <hbox>
                                        <label value="&common.step5.label;" style="font-weight: bold"/>
@@ -96,7 +96,7 @@
                                <hbox>
                                        <spacer flex="1"/>
                                        <description>&staff.circ.offline.print.description;</description>
-                                       <checkbox id="print_receipt" persist="checked"/>
+                                       <checkbox id="print_receipt" oils_persist="checked"/>
                                </hbox>
                                <hbox>
                                        <spacer flex="1"/>
index dec20ef..ad5cee1 100644 (file)
@@ -28,9 +28,9 @@
 -->
 
 <window id="menu_frame_win"
-       onload="try { my_init(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        orient="vertical" width="800" height="500"
-       sizemode="maximized" persist="width height" title="&staff.main.menu.title;"
+       sizemode="maximized" oils_persist="width height" title="&staff.main.menu.title;"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
index 1aab020..630953c 100644 (file)
@@ -19,8 +19,8 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="util_list_clipboard_win" 
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
-       width="300" height="300" persist="width height"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
+       width="300" height="300" oils_persist="width height"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
index a73453d..555edcb 100644 (file)
@@ -21,7 +21,7 @@
 <?xul-overlay href="/xul/server/cat/copy_buckets_overlay.xul"?>
 
 <window id="copy_buckets_win" title="&staff.cat.copy_buckets.window_title;"
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }" height="600" width="800" persist="height,width"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }" height="600" width="800" oils_persist="height width"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
index 568c045..50d4717 100644 (file)
@@ -23,7 +23,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="copy_buckets_win" title="&staff.cat.copy_buckets_quick.title;"
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }" persist="height,width"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }" oils_persist="height width"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
index 866ca33..4725605 100644 (file)
@@ -19,8 +19,8 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="cat_copy_editor_win" 
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
-       width="800" height="580" persist="width height"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
+       width="800" height="580" oils_persist="width height"
        title="&staff.cat.copy_editor.window.label;"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
index 5b538df..eafeb24 100644 (file)
@@ -22,7 +22,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="cat_copy_summary_win" 
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns:html="http://www.w3.org/1999/xhtml"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
 
        <groupbox id="groupbox" flex="1" style="overflow: none; min-height: 80;">
                <caption label="&staff.cat.copy_summary.label;" id="caption"/>
-               <deck id="item_deck" persist="selectedIndex">
+               <deck id="item_deck" oils_persist="selectedIndex">
                        <tree id="item_summary_list" enableColumnDrag="true" flex="1"/>
                        <grid>
                                <columns>
index 22536e0..f755b03 100644 (file)
@@ -11,7 +11,7 @@
 
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
-<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:xhtml="http://www.w3.org/1999/xhtml" onload="try { my_init(); font_helper(); } catch(E) { alert(E); }">
+<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:xhtml="http://www.w3.org/1999/xhtml" onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }">
 
 <scripts id="openils_util_scripts"/>
 <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
 <groupbox flex="0">
        <caption label="&staff.cat.marcedit.options.label;"/>
        <hbox flex="1">
-               <checkbox persist="checked" accesskey="&staff.cat.marcedit.stackSubfields.accesskey;" label="&staff.cat.marcedit.stackSubfields.label;" oncommand="stackSubfields(this);" checked="false" id="stackSubfields"/>
-        <checkbox persist="checked" accesskey="&staff.cat.marcedit.fastItemAdd.accesskey;" label="&staff.cat.marcedit.fastItemAdd.label;" oncommand="fastItemAdd_toggle(this);" checked="false" id="fastItemAdd_checkbox"/>
+               <checkbox oils_persist="checked" accesskey="&staff.cat.marcedit.stackSubfields.accesskey;" label="&staff.cat.marcedit.stackSubfields.label;" oncommand="stackSubfields(this);" checked="false" id="stackSubfields"/>
+        <checkbox oils_persist="checked" accesskey="&staff.cat.marcedit.fastItemAdd.accesskey;" label="&staff.cat.marcedit.fastItemAdd.label;" oncommand="fastItemAdd_toggle(this);" checked="false" id="fastItemAdd_checkbox"/>
         <hbox id="fastItemAdd_textboxes">
             <label control="fastItemAdd_callnumber" accesskey="&staff.cat.marcedit.fastItemAdd_callnumber.accesskey;" value="&staff.cat.marcedit.fastItemAdd_callnumber.label;" />
-            <textbox context="clipboard" id="fastItemAdd_callnumber" persist="value" onchange="this.setAttribute('value',this.value);"/>
+            <textbox context="clipboard" id="fastItemAdd_callnumber" oils_persist="value" onchange="this.setAttribute('value',this.value);"/>
             <label control="fastItemAdd_barcode" accesskey="&staff.cat.marcedit.fastItemAdd_barcode.accesskey;" value="&staff.cat.marcedit.fastItemAdd_barcode.label;" />
             <textbox context="clipboard" id="fastItemAdd_barcode"/>
         </hbox>
@@ -61,7 +61,7 @@
                                <label id="recordTypeLabel" context="recordTypeMenu"/>
                        </caption>
                        <vbox flex="0">
-                               <grid flex="0" id="leaderGrid" type="BKS" hidden="false" persist="hidden">
+                               <grid flex="0" id="leaderGrid" type="BKS" hidden="false" oils_persist="hidden">
                                        <columns>
                                                <column flex="1"/>
                                                <column flex="1"/>
index 5a06e2d..4efb76f 100644 (file)
@@ -21,7 +21,7 @@
 <?xul-overlay href="/xul/server/cat/record_buckets_overlay.xul"?>
 
 <window id="record_buckets_win" title="&staff.cat.record_buckets.title;"
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }" height="300" width="300" persist="height,width"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }" height="300" width="300" oils_persist="height width"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
index 25354eb..ca6b8ff 100644 (file)
@@ -17,7 +17,7 @@
 </box>
 
 <vbox id="cmvb1" flex="1">
-    <tabbox id="record_buckets_tabbox" flex="1" persist="selectedIndex">
+    <tabbox id="record_buckets_tabbox" flex="1" oils_persist="selectedIndex">
         <tabs>
             <tab id="record_query_tab" label="&staff.cat.record_buckets_overlay.record_query_tab.label;"
                                                                        accesskey="&staff.cat.record_buckets_overlay.record_query_tab.accesskey;"/>
index 509c27d..10ec0a0 100644 (file)
@@ -20,7 +20,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="record_buckets_win" title="&staff.cat.record_buckets_quick.add_to_bucket.title;"
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }" persist="height,width"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }" oils_persist="height width"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
index c0a2c4c..884185a 100644 (file)
@@ -20,7 +20,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="spine_labels_win" 
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
 
                        <hbox>
                                <label value="&staff.cat.spine_labels.font_size.label;" control="pt"/>
-                               <textbox id="pt" value="10" onchange="this.setAttribute('value',this.value)" persist="value" context="clipboard"/>
+                               <textbox id="pt" value="10" onchange="this.setAttribute('value',this.value)" oils_persist="value" context="clipboard"/>
                        </hbox>
                        <grid><columns><column/><column/><column/><column/></columns><rows>
                                <row> <label class="header" value="&staff.cat.spine_labels.spine_label.label;"/><spacer/> </row>
-                               <row> <label value="&staff.cat.spine_labels.spine_label.left_margin.label;" control="lm"/><textbox id="lm" value="0" onchange="this.setAttribute('value',this.value)" persist="value" context="clipboard"/> </row>
-                               <row> <label value="&staff.cat.spine_labels.spine_label.label_width.label;" control="lw"/><textbox id="lw" value="8" onchange="this.setAttribute('value',this.value)" persist="value" context="clipboard"/> </row>
-                               <row> <label value="&staff.cat.spine_labels.spine_label.label_length.label;" control="ll"/><textbox id="ll" value="9" onchange="this.setAttribute('value',this.value)" persist="value" context="clipboard"/> </row>
-                               <row> <label class="header" value="&staff.cat.spine_labels.pocket_label.label;"/><checkbox id="pl" checked="false" persist="checked" label="Enabled"/> </row>
-                               <row> <label value="&staff.cat.spine_labels.pocket_label.middle_margin.label;" control="mm"/><textbox id="mm" value="2" onchange="this.setAttribute('value',this.value)" persist="value" context="clipboard"/> </row>
-                               <row> <label value="&staff.cat.spine_labels.pocket_label.label_width.label;" control="plw"/><textbox id="plw" value="28" onchange="this.setAttribute('value',this.value)" persist="value" context="clipboard"/> </row>
-                               <row> <label value="&staff.cat.spine_labels.pocket_label.label_length.label;" control="pll"/><textbox id="pll" value="9" onchange="this.setAttribute('value',this.value)" persist="value" context="clipboard"/> </row>
+                               <row> <label value="&staff.cat.spine_labels.spine_label.left_margin.label;" control="lm"/><textbox id="lm" value="0" onchange="this.setAttribute('value',this.value)" oils_persist="value" context="clipboard"/> </row>
+                               <row> <label value="&staff.cat.spine_labels.spine_label.label_width.label;" control="lw"/><textbox id="lw" value="8" onchange="this.setAttribute('value',this.value)" oils_persist="value" context="clipboard"/> </row>
+                               <row> <label value="&staff.cat.spine_labels.spine_label.label_length.label;" control="ll"/><textbox id="ll" value="9" onchange="this.setAttribute('value',this.value)" oils_persist="value" context="clipboard"/> </row>
+                               <row> <label class="header" value="&staff.cat.spine_labels.pocket_label.label;"/><checkbox id="pl" checked="false" oils_persist="checked" label="Enabled"/> </row>
+                               <row> <label value="&staff.cat.spine_labels.pocket_label.middle_margin.label;" control="mm"/><textbox id="mm" value="2" onchange="this.setAttribute('value',this.value)" oils_persist="value" context="clipboard"/> </row>
+                               <row> <label value="&staff.cat.spine_labels.pocket_label.label_width.label;" control="plw"/><textbox id="plw" value="28" onchange="this.setAttribute('value',this.value)" oils_persist="value" context="clipboard"/> </row>
+                               <row> <label value="&staff.cat.spine_labels.pocket_label.label_length.label;" control="pll"/><textbox id="pll" value="9" onchange="this.setAttribute('value',this.value)" oils_persist="value" context="clipboard"/> </row>
                                <row>
-                                       <checkbox id="title" checked="true" persist="checked" label="&staff.cat.spine_labels.pocket_label.title.label;"/>
+                                       <checkbox id="title" checked="true" oils_persist="checked" label="&staff.cat.spine_labels.pocket_label.title.label;"/>
                                        <hbox>
                                                <label value="&staff.cat.spine_labels.on_line.label;"/>
-                                               <textbox id="title_line" value="4" persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
+                                               <textbox id="title_line" value="4" oils_persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
                                        </hbox>
                                </row>
                                <row>
-                                       <checkbox id="title_r" checked="true" persist="checked" label="&staff.cat.spine_labels.pocket_label.include_title.label;"/>
+                                       <checkbox id="title_r" checked="true" oils_persist="checked" label="&staff.cat.spine_labels.pocket_label.include_title.label;"/>
                                        <hbox>
                                                <label value="&staff.cat.spine_labels.on_line.label;"/>
-                                               <textbox id="title_r_line" value="5" persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
+                                               <textbox id="title_r_line" value="5" oils_persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
                                        </hbox>
                                </row>
-                               <row> <spacer/><checkbox id="title_r_indent" checked="true" persist="checked" label="&staff.cat.spine_labels.indent_title.label;"/> </row>
+                               <row> <spacer/><checkbox id="title_r_indent" checked="true" oils_persist="checked" label="&staff.cat.spine_labels.indent_title.label;"/> </row>
                                <row>
-                                       <checkbox id="author" checked="true" persist="checked" label="Include Author"/>
+                                       <checkbox id="author" checked="true" oils_persist="checked" label="Include Author"/>
                                        <hbox>
                                                <label value="&staff.cat.spine_labels.on_line.label;"/>
-                                               <textbox id="author_line" value="3" persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
+                                               <textbox id="author_line" value="3" oils_persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
                                        </hbox>
                                </row>
                                <row>
-                                       <checkbox id="call_number" checked="true" persist="checked" label="&staff.cat.spine_labels.inc_call_number.label;"/>
+                                       <checkbox id="call_number" checked="true" oils_persist="checked" label="&staff.cat.spine_labels.inc_call_number.label;"/>
                                        <hbox>
                                                <label value="&staff.cat.spine_labels.on_line.label;"/>
-                                               <textbox id="call_number_line" value="2" persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
+                                               <textbox id="call_number_line" value="2" oils_persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
                                        </hbox>
                                </row>
                                <row>
-                                       <checkbox id="owning_lib_shortname" checked="false" persist="checked" label="&staff.cat.spine_labels.inc_owning_library_policy_code.label;"/>
+                                       <checkbox id="owning_lib_shortname" checked="false" oils_persist="checked" label="&staff.cat.spine_labels.inc_owning_library_policy_code.label;"/>
                                        <hbox>
                                                <label value="&staff.cat.spine_labels.on_line.label;"/>
-                                               <textbox id="owning_lib_shortname_line" value="" persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
+                                               <textbox id="owning_lib_shortname_line" value="" oils_persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
                                        </hbox>
                                </row>
                                <row>
-                                       <checkbox id="owning_lib" checked="false" persist="checked" label="&staff.cat.spine_labels.inc_owning_library.label;"/>
+                                       <checkbox id="owning_lib" checked="false" oils_persist="checked" label="&staff.cat.spine_labels.inc_owning_library.label;"/>
                                        <hbox>
                                                <label value="&staff.cat.spine_labels.on_line.label;"/>
-                                               <textbox id="owning_lib_line" value="" persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
+                                               <textbox id="owning_lib_line" value="" oils_persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
                                        </hbox>
                                </row>
                                <row>
-                                       <checkbox id="shelving_location" checked="false" persist="checked" label="&staff.cat.spine_labels.inc_shelving_location.label;"/>
+                                       <checkbox id="shelving_location" checked="false" oils_persist="checked" label="&staff.cat.spine_labels.inc_shelving_location.label;"/>
                                        <hbox>
                                                <label value="&staff.cat.spine_labels.on_line.label;"/>
-                                               <textbox id="shelving_location_line" value="" persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
+                                               <textbox id="shelving_location_line" value="" oils_persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
                                </hbox>
                                </row>
                                <row>
-                                       <checkbox id="barcode" checked="true" persist="checked" label="&staff.cat.spine_labels.inc_item_barcode.label;"/>
+                                       <checkbox id="barcode" checked="true" oils_persist="checked" label="&staff.cat.spine_labels.inc_item_barcode.label;"/>
                                        <hbox>
                                                <label value="&staff.cat.spine_labels.on_line.label;"/>
-                                               <textbox id="barcode_line" value="1" persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
+                                               <textbox id="barcode_line" value="1" oils_persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
                                        </hbox>
                                </row>
                                <row>
                                        <hbox>
-                                               <checkbox id="custom1" checked="false" persist="checked" label="&staff.cat.spine_labels.custom.label;"/>
-                                               <textbox id="custom1_tb" value="%price%" persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
+                                               <checkbox id="custom1" checked="false" oils_persist="checked" label="&staff.cat.spine_labels.custom.label;"/>
+                                               <textbox id="custom1_tb" value="%price%" oils_persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
                                        </hbox>
                                        <hbox>
                                                <label value="&staff.cat.spine_labels.on_line.label;"/>
-                                               <textbox id="custom1_line" value="" persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
+                                               <textbox id="custom1_line" value="" oils_persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
                                        </hbox>
                                </row>
                                <row>
                                        <hbox>
-                                               <checkbox id="custom2" checked="false" persist="checked" label="&staff.cat.spine_labels.custom.label;"/>
-                                               <textbox id="custom2_tb" value="%deposit_amount%" persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
+                                               <checkbox id="custom2" checked="false" oils_persist="checked" label="&staff.cat.spine_labels.custom.label;"/>
+                                               <textbox id="custom2_tb" value="%deposit_amount%" oils_persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
                                        </hbox>
                                        <hbox>
                                                        <label value="&staff.cat.spine_labels.on_line.label;"/>
-                                                       <textbox id="custom2_line" value="" persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
+                                                       <textbox id="custom2_line" value="" oils_persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
                                        </hbox>
                                </row>
                                <row>
                                        <hbox>
-                                               <checkbox id="custom3" checked="false" persist="checked" label="&staff.cat.spine_labels.custom.label;"/>
-                                               <textbox id="custom3_tb" value="%alert_message%" persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
+                                               <checkbox id="custom3" checked="false" oils_persist="checked" label="&staff.cat.spine_labels.custom.label;"/>
+                                               <textbox id="custom3_tb" value="%alert_message%" oils_persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
                                        </hbox>
                                        <hbox>
                                                <label value="&staff.cat.spine_labels.on_line.label;"/>
-                                               <textbox id="custom3_line" value="" persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
+                                               <textbox id="custom3_line" value="" oils_persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
                                        </hbox>
                                </row>
                                <row>
                                        <hbox>
-                                               <checkbox id="custom4" checked="false" persist="checked" label="&staff.cat.spine_labels.custom.label;"/>
-                                               <textbox id="custom4_tb" value="Don't sell me on eBay" persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
+                                               <checkbox id="custom4" checked="false" oils_persist="checked" label="&staff.cat.spine_labels.custom.label;"/>
+                                               <textbox id="custom4_tb" value="Don't sell me on eBay" oils_persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
                                        </hbox>
                                        <hbox>
                                                <label value="&staff.cat.spine_labels.on_line.label;"/>
-                                               <textbox id="custom4_line" value="" persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
+                                               <textbox id="custom4_line" value="" oils_persist="value" onchange="this.setAttribute('value',this.value)" context="clipboard"/>
                                        </hbox>
                                </row>
                        </rows></grid>
index a7aff26..cbed04b 100644 (file)
@@ -19,8 +19,8 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="cat_volume_editor_win" 
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
-       title="&staff.cat.volume_editor.title;" height="400" width="300" persist="height,width"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
+       title="&staff.cat.volume_editor.title;" height="400" width="300" oils_persist="height width"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
index 6c037fc..dfc1259 100644 (file)
@@ -20,7 +20,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="cat_z3950_win2" 
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns:html="http://www.w3.org/1999/xhtml"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
@@ -92,8 +92,8 @@
 
        <groupbox flex="1">
                <caption label="&staff.cat.z3950.marc_import.label;"/>
-            <hbox id="top_pane" persist="height" flex="1">
-                <groupbox id="x_splitter1" persist="width" flex="1">
+            <hbox id="top_pane" oils_persist="height" flex="1">
+                <groupbox id="x_splitter1" oils_persist="width" flex="1">
                     <caption label="&staff.cat.z3950.query.label;"/>
                     <vbox>
                         <spacer flex="1"/>
                         <button id="search" label="&staff.cat.z3950.search.label;" accesskey="&staff.cat.z3950.search.accesskey;" disabled="true"/>
                     </hbox>
                 </groupbox>
-                <splitter id="x_splitter" collapse="after" persist="state hidden"><grippy id="splitter_grippy1"/></splitter>
-                <groupbox id="x_splitter2" persist="width" flex="1">
+                <splitter id="x_splitter" collapse="after" oils_persist="state hidden"><grippy id="splitter_grippy1"/></splitter>
+                <groupbox id="x_splitter2" oils_persist="width" flex="1">
                     <caption label="&staff.cat.z3950.service_credentials.label;"/>
                     <grid flex="1">
                         <columns>
                     </hbox>
                 </groupbox>
             </hbox>
-            <splitter id="z_splitter" collapse="before" persist="state hidden"><grippy id="splitter_grippy2"/></splitter>
-            <groupbox id="z_splitter2" persist="height" flex="1">
+            <splitter id="z_splitter" collapse="before" oils_persist="state hidden"><grippy id="splitter_grippy2"/></splitter>
+            <groupbox id="z_splitter2" oils_persist="height" flex="1">
                 <caption label="&staff.cat.z3950.results_caption.label;"/>
                 <hbox>
                     <hbox id="result_message" />
index 2a374e9..a59d991 100644 (file)
@@ -21,7 +21,7 @@
 <?xul-overlay href="/xul/server/circ/checkin_overlay.xul"?>
 
 <window id="checkin_win" 
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
index a169105..743faae 100644 (file)
                label="&staff.checkin.print_receipt.label;" 
                command="cmd_checkin_print"
                accesskey="&staff.checkin.print_receipt.accesskey;"/>
-       <checkbox id="trim_list" label="&staff.circ.checkin_overlay.trim_list.label;" checked="true" persist="checked"/> 
-       <checkbox id="strict_barcode" label="&staff.circ.checkin_overlay.strict_barcode.label;" checked="false" persist="checked"/> 
-       <checkbox id="do_not_alert_on_precat" label="&staff.circ.checkin_overlay.do_not_alert_on_precat.label;" persist="checked"/> 
+       <checkbox id="trim_list" label="&staff.circ.checkin_overlay.trim_list.label;" checked="true" oils_persist="checked"/> 
+       <checkbox id="strict_barcode" label="&staff.circ.checkin_overlay.strict_barcode.label;" checked="false" oils_persist="checked"/> 
+       <checkbox id="do_not_alert_on_precat" label="&staff.circ.checkin_overlay.do_not_alert_on_precat.label;" oils_persist="checked"/> 
        <spacer id="pcii3s" flex="1"/>
-       <checkbox id="checkin_auto" label="&staff.circ.checkin_overlay.checkin_auto.label;" accesskey="&staff.circ.checkin_overlay.checkin_auto.accesskey;" persist="checked"/> 
+       <checkbox id="checkin_auto" label="&staff.circ.checkin_overlay.checkin_auto.label;" accesskey="&staff.circ.checkin_overlay.checkin_auto.accesskey;" oils_persist="checked"/> 
 </hbox>
 
 </overlay>
index c620adb..3f7ceaf 100644 (file)
@@ -21,7 +21,7 @@
 <?xul-overlay href="/xul/server/circ/checkout_overlay.xul"?>
 
 <window id="checkout_win" 
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
index 2d7052e..449e866 100644 (file)
@@ -63,9 +63,9 @@
                accesskey="&staff.circ.checkout_overlay.export.accesskey;"/>
        <button id="clip_button" disabled="true" command="sel_clip" label="&staff.circ.checkout_overlay.sel_clip.label;" />
        <button id="save_col_btn" command="save_columns" label="&staff.circ.checkout_overlay.save_columns.label;" />
-       <checkbox id="strict_barcode" label="&staff.circ.checkout_overlay.strict_barcode.label;" checked="false" persist="checked"/> 
+       <checkbox id="strict_barcode" label="&staff.circ.checkout_overlay.strict_barcode.label;" checked="false" oils_persist="checked"/> 
        <spacer id="pcii3s" flex="1"/>
-       <checkbox id="checkout_auto" persist="checked"
+       <checkbox id="checkout_auto" oils_persist="checked"
                label="&staff.patron_display.checkout.auto_print.label;" 
                accesskey_old="&staff.patron_display.checkout.auto_print.accesskey;"/> 
        <button id="checkout_done" 
index 39237f6..e91133f 100644 (file)
@@ -20,8 +20,8 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="circ_copy_details_win" 
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
-       width="800" height="600" persist="width height"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
+       width="800" height="600" oils_persist="width height"
        xmlns:html="http://www.w3.org/1999/xhtml"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
index 5c83e70..147da12 100644 (file)
@@ -21,7 +21,7 @@
 <?xul-overlay href="/xul/server/circ/copy_status_overlay.xul"?>
 
 <window id="copy_status_win" 
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
index 185674f..333f725 100644 (file)
     <hbox id="list_actions"/>
 
        <button id="copy_status_print" label="&staff.circ.copy_status_overlay.copy_status_print.label;" command="cmd_copy_status_print" accesskey="&staff.circ.copy_status_overlay.copy_status_print.accesskey;"/>
-    <checkbox id="trim_list" label="&staff.circ.copy_status_overlay.trim_list.label;" checked="true" persist="checked" oncommand="try{this.setAttribute('checked',this.checked);}catch(E){alert(E);}" />
-       <checkbox id="strict_barcode" label="&staff.circ.copy_status_overlay.strict_barcode.label;" checked="false" persist="checked" oncommand="try{this.setAttribute('checked',this.checked);}catch(E){alert(E);}" /> 
+    <checkbox id="trim_list" label="&staff.circ.copy_status_overlay.trim_list.label;" checked="true" oils_persist="checked" oncommand="try{this.setAttribute('checked',this.checked);}catch(E){alert(E);}" />
+       <checkbox id="strict_barcode" label="&staff.circ.copy_status_overlay.strict_barcode.label;" checked="false" oils_persist="checked" oncommand="try{this.setAttribute('checked',this.checked);}catch(E){alert(E);}" /> 
        <spacer flex="1"/>
 </hbox>
 
index 81fa3a5..63cdd63 100644 (file)
@@ -20,7 +20,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="in_house_use_win" 
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
                        label="&staff.circ.in_house_use.print.label;" 
                        command="cmd_in_house_use_print"
                        accesskey=""/>
-               <checkbox id="trim_list" label="&staff.circ.in_house_use.trim_list.label;" checked="true" persist="checked"/> 
-               <checkbox id="strict_barcode" label="&staff.circ.in_house_use.strict_barcode.label;" checked="false" persist="checked"/> 
+               <checkbox id="trim_list" label="&staff.circ.in_house_use.trim_list.label;" checked="true" oils_persist="checked"/> 
+               <checkbox id="strict_barcode" label="&staff.circ.in_house_use.strict_barcode.label;" checked="false" oils_persist="checked"/> 
                <spacer id="pcii3s" flex="1"/>
        </hbox>
 
index 3a28a76..69ba61d 100644 (file)
@@ -21,8 +21,8 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 <?xul-overlay href="/xul/server/patron/bill_summary_overlay.xul"?>
 
-<window id="bill_history_win" width="700" height="550" persist="sizemode width height"
-       onload="try{ my_init(); font_helper(); } catch(E) { alert(E); }"
+<window id="bill_history_win" width="700" height="550" oils_persist="sizemode width height"
+       onload="try{ my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
        <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties"/>
 
        <vbox flex="1" class="my_overflow">
-        <vbox id="v1" persist="height" flex="1">
+        <vbox id="v1" oils_persist="height" flex="1">
                <label id="patron_name" class="patronNameLarge"/>
                <groupbox orient="vertical" id="summary" hidden="true" flex="1"/>
         </vbox>
 
            <splitter><grippy/></splitter>
 
-        <vbox id="v2" persist="height" flex="1">
+        <vbox id="v2" oils_persist="height" flex="1">
                        <iframe id="copy_summary" hidden="true"/>
         </vbox>
 
                <splitter><grippy/></splitter>
 
-        <vbox id="v3" persist="height" flex="3">
+        <vbox id="v3" oils_persist="height" flex="3">
             <groupbox orient="vertical" flex="1">
                 <caption id="caption" label="&staff.patron.bill_history.caption.label;"/>
                 <tree id="bill_tree" flex="1" enableColumnDrag="true" seltype="single"/>
index e1f6ef9..a151a0c 100644 (file)
@@ -21,7 +21,7 @@
 <?xul-overlay href="/xul/server/patron/bills_overlay.xul"?>
 
 <window id="bills_win" 
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
index 8187ff9..a73a687 100644 (file)
                <button id="bill_wizard" label="&staff.patron.bills_overlay.bill_patron.label;" accesskey="&staff.patron.bills_overlay.bill_patron.accesskey;" command="cmd_bill_wizard"/>
                <button id="bill_history" label="&staff.patron.bills_overlay.history.label;" accesskey="&staff.patron.bills_overlay.history.accesskey;" command="cmd_bill_history"/>
                <spacer flex="2"/>
-               <checkbox id="annotate_payment" label="&staff.patron.bills_overlay.annotate_payment.label;" persist="checked" checked="false" />
-               <checkbox id="auto_print" label="&staff.patron.bills_overlay.auto_print.label;" persist="checked" checked="true" />
+               <checkbox id="annotate_payment" label="&staff.patron.bills_overlay.annotate_payment.label;" oils_persist="checked" checked="false" />
+               <checkbox id="auto_print" label="&staff.patron.bills_overlay.auto_print.label;" oils_persist="checked" checked="true" />
                <button class="hide_patron_credit" hidden="true" disabled="true" id="change_to_credit" label="&staff.patron.bills_overlay.convert_change_to_credit.label;" command="cmd_change_to_credit"/>
                <button id="bill_apply_payment" label="&staff.patron.bills_overlay.apply_payment.label;" accesskey="&staff.patron.bills_overlay.apply_payment.accesskey;" command="cmd_bill_apply_payment"/>
        </hbox>
index a2feb78..abc7c60 100644 (file)
@@ -21,7 +21,7 @@
 <?xul-overlay href="/xul/server/patron/display_overlay.xul"?>
 
 <window id="patron_display_win" 
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
index e1b97c0..bc017ad 100644 (file)
@@ -21,7 +21,7 @@
 <?xul-overlay href="/xul/server/patron/display_horiz_overlay.xul"?>
 
 <window id="patron_display_win" 
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
index e631d18..91b43f8 100644 (file)
                <label class="hideme invalid_address_indicator" value="&staff.patron.display_overlay.invalid_address.value;"/>
        </hbox>
        <vbox id="PatronNotNavBar" flex="1" class="my_bg">
-        <hbox id="left_deck_vbox" flex="1" persist="height"> 
-            <deck id="patron_left_deck" persist="height"/>
+        <hbox id="left_deck_vbox" flex="1" oils_persist="height"> 
+            <deck id="patron_left_deck" oils_persist="height"/>
         </hbox>
-        <splitter id="deck_splitter" collapse="before" persist="state hidden"><grippy id="splitter_grippy"/></splitter>
-        <hbox id="right_deck_vbox" flex="8" persist="height">
-            <deck id="patron_right_deck" persist="height"/>
+        <splitter id="deck_splitter" collapse="before" oils_persist="state hidden"><grippy id="splitter_grippy"/></splitter>
+        <hbox id="right_deck_vbox" flex="8" oils_persist="height">
+            <deck id="patron_right_deck" oils_persist="height"/>
         </hbox>
        </vbox>
 </vbox>
index bd71644..ebaa45a 100644 (file)
                <label class="hideme invalid_address_indicator" value="&staff.patron.display_overlay.invalid_address.value;"/>
        </hbox>
        <hbox id="PatronNotNavBar" flex="1" class="my_bg">
-        <vbox id="left_deck_vbox" flex="1" persist="width"> 
-            <deck id="patron_left_deck" persist="width"/>
+        <vbox id="left_deck_vbox" flex="1" oils_persist="width"> 
+            <deck id="patron_left_deck" oils_persist="width"/>
         </vbox>
-        <splitter id="deck_splitter" collapse="before" persist="state hidden"><grippy id="splitter_grippy"/></splitter>
-        <vbox id="right_deck_vbox" flex="3" persist="width">
-            <deck id="patron_right_deck" persist="width"/>
+        <splitter id="deck_splitter" collapse="before" oils_persist="state hidden"><grippy id="splitter_grippy"/></splitter>
+        <vbox id="right_deck_vbox" flex="3" oils_persist="width">
+            <deck id="patron_right_deck" oils_persist="width"/>
         </vbox>
        </hbox>
 </vbox>
index f5a26fa..3aaad15 100644 (file)
@@ -19,8 +19,8 @@
 <!-- OVERLAYS -->
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
-<window id="hold_notices_win" persist="sizemode width height"
-       onload="try{ my_init(); font_helper(); } catch(E) { alert(E); }" title="&staff.patron.hold_details.title;"
+<window id="hold_notices_win" oils_persist="sizemode width height"
+       onload="try{ my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }" title="&staff.patron.hold_details.title;"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
     <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale' -->/circ.properties"/>
     <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties"/>
 
-    <vbox id="v1" flex="1" persist="height">
+    <vbox id="v1" flex="1" oils_persist="height">
         <label id="patron_name" class="patronNameLarge"/>
         <vbox id="bib_brief_box" height="200"/>
     </vbox> 
     <spacer flex="1"/>
-    <vbox id="v2" flex="1" persist="height">
+    <vbox id="v2" flex="1" oils_persist="height">
         <vbox flex="1">
             <tree id="holds_list" enableColumnDrag="true" height="100"/>
         </vbox>
@@ -68,7 +68,7 @@
         </tabs>
         <tabpanels>
             <tabpanel id="notes" orient="vertical" overflow="scroll">
-                <vbox persist="height" class="my_overflow" id="notes_panel">
+                <vbox oils_persist="height" class="my_overflow" id="notes_panel">
                 </vbox>
                 
                 <textbox id="hold_note_title" multiline="false" value="circStrings-ADD NOTE TITLE HERE" onfocus="$('hold_note_title').value=''; $('hold_note_title').onfocus=''"/>
@@ -85,7 +85,7 @@
                 
             </tabpanel>
             <tabpanel id="notification" orient="vertical">
-                <vbox persist="height" class="my_overflow" id="notifications_panel">
+                <vbox oils_persist="height" class="my_overflow" id="notifications_panel">
                 </vbox>
                 <button label="&staff.patron.hold_notices.add_record_notification.label;" accesskey="&staff.patron.hold_notices.add_record_notification.accesskey;" oncommand="new_notification()"/>
                 <button label="&staff.patron.hold_notices.close_window.label;" accesskey="&staff.patron.hold_notices.close_window.accesskey;" oncommand="window.close()"/>
index 6f9ac72..b84309f 100644 (file)
@@ -19,8 +19,8 @@
 <!-- OVERLAYS -->
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
-<window id="hold_notices_win" width="700" height="550" persist="sizemode width height"
-       onload="try{ my_init(); font_helper(); } catch(E) { alert(E); }" title="&staff.patron.hold_notices.title;"
+<window id="hold_notices_win" width="700" height="550" oils_persist="sizemode width height"
+       onload="try{ my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }" title="&staff.patron.hold_notices.title;"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
                </groupbox>
        </stack>
 
-    <vbox id="v1" flex="1" persist="height">
+    <vbox id="v1" flex="1" oils_persist="height">
         <label id="patron_name" class="patronNameLarge"/>
         <vbox id="bib_brief_box" flex="1"/>
     </vbox>
 
     <splitter><grippy/></splitter>
 
-    <vbox id="v2" flex="1" persist="height">
+    <vbox id="v2" flex="1" oils_persist="height">
         <vbox flex="1">
             <tree id="holds_list" flex="1" enableColumnDrag="true" style=""/>
         </vbox>
 
     <splitter><grippy/></splitter>
 
-       <vbox persist="height" flex="9" class="my_overflow" id="notifications_panel">
+       <vbox oils_persist="height" flex="9" class="my_overflow" id="notifications_panel">
        </vbox>
 
 
index 441d228..d419dcd 100644 (file)
@@ -21,7 +21,7 @@
 <?xul-overlay href="/xul/server/patron/holds_overlay.xul"?>
 
 <window id="holds_win" 
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
index eae9d8b..43cf354 100644 (file)
@@ -85,8 +85,8 @@
 
     <hbox id="holds_top_ui" flex="1">
         <button id="place_hold_btn" hidden="true" label="&staff.patron.holds_overlay.place_hold.label;" accesskey="&staff.patron.holds_overlay.place_hold.accesskey;" command="cmd_search_opac" />
-        <checkbox id="lib_filter_checkbox" persist="checked" checked="true" hidden="true" label="&staff.patron.holds_overlay.lib_filter_checkbox.label;"/>
-        <menulist id="lib_type_menu" hidden="true" persist="value">
+        <checkbox id="lib_filter_checkbox" oils_persist="checked" checked="true" hidden="true" label="&staff.patron.holds_overlay.lib_filter_checkbox.label;"/>
+        <menulist id="lib_type_menu" hidden="true" oils_persist="value">
             <menupopup>
                 <menuitem id="pickup_lib" value="pickup_lib" label="&staff.patron.holds_overlay.pickup_lib.label;"/>
                 <menuitem id="request_lib" value="request_lib" label="&staff.patron.holds_overlay.request_lib.label;"/>
index 6cbe32a..06c7e38 100644 (file)
@@ -18,7 +18,7 @@
 <!-- OVERLAYS -->
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
-<window id="penalty_win" onload="try { penalty_init(); font_helper(); } catch(E) { alert(E); }"
+<window id="penalty_win" onload="try { penalty_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
@@ -85,7 +85,7 @@
         </vbox>
         <tree id="ausp_list" flex="1" enableColumnDrag="true" context="ausp_actions" />
        </groupbox>
-    <splitter id="list_splitter" collapse="after" persist="state hidden"><grippy id="splitter_grippy"/></splitter>
+    <splitter id="list_splitter" collapse="after" oils_persist="state hidden"><grippy id="splitter_grippy"/></splitter>
        <groupbox id="archived_penalty_groupbox" flex="1" class="my_overflow">
                <caption id="penalty_caption" label="&staff.patron_display.archived_penalty.caption;"/>
         <vbox flex="0">
index 48ba120..1aa1044 100644 (file)
@@ -21,7 +21,7 @@
 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
 
 <window id="patron_summary_win" 
-       onload="try { my_init(); font_helper(); } catch(E) { alert(E); }" onunload="try { observer.unregister(); } catch(E) { alert(E); }"
+       onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }" onunload="try { observer.unregister(); } catch(E) { alert(E); }"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
index ab8c851..6db5608 100644 (file)
@@ -27,7 +27,7 @@
                 <rows>
                     <row>
                         <label id="PatronSummaryContact_date_of_birth_label" click_to_hide_dob="true" class="text_left dob label click_link" value="&staff.patron_display.date_of_birth.label;"/>
-                        <label id="patron_date_of_birth" class="dob value" hide_value="true" persist="hide_value"/><!-- FIXME: persist doesn't work for this -->
+                        <label id="patron_date_of_birth" class="dob value" hide_value="true" oils_persist="hide_value"/><!-- FIXME: persist doesn't work for this -->
                     </row>
                     <row>
                         <label id="PatronSummaryContact_library_card_label" class="text_left card label"