2 <style type="text/css">
3 h1 { margin-bottom: 0.5ex; }
4 #cbho-loading { text-align: center; }
5 #cbho-edit-space { padding: 0.25ex 0.5em; }
6 #cbho-name { width: 30em; }
7 #cbho-field-order { width: 30em; }
8 #cbho-field-order-space > div { float: left; padding-right: 1em; }
9 #cbho-needs-saved { color: #c00; font-weight: bold; }
10 option.post-rtime, option.post-rtime:focus {
11 font-style: italic; color: #999;
13 .body-part { margin: 1ex 0; }
14 .clear-both { clear: both; }
15 .show-access-key { font-weight: bold; border-bottom: 1px dashed black; }
17 <h1>[% l('Best-Hold Selection Sort Order') %]</h1>
19 <!-- Hidden after JS load. Prevents early clicks from breaking anything. -->
20 <div id="cbho-loading">
21 <img src="[% ctx.media_prefix %]/opac/images/progressbar_green-old.gif"
22 alt="[% l('Interface loading') %]" />
25 <div id="cbho-main-body" class="hidden"><!-- main body -->
26 <div class="body-part">
27 <span dojoType="dijit.form.Button" onClick="module.new_cbho()">[% l('Create New') %]</span>
29 <span dojoType="dijit.form.Button" onClick="module.edit_cbho()">[% l('Edit Existing') %]</span>
32 <div class="body-part hidden" id="cbho-edit-space"><!-- editing space -->
34 <span id="cbho-editing"></span>
35 <span id="cbho-needs-saved">[% l('You have unsaved changes.') %]</span>
37 <div id="cbho-name-edit-space">
38 <label for="cbho-name">[% l('Name:') %]</label>
39 <input id="cbho-name" type="text" onchange="module.editor_changed(true);" />
41 <div id="cbho-field-order-space" class="body-part">
43 <label for="cbho-field-order">[% l('Order:') %]</label>
46 <select id="cbho-field-order" size="10"> </select>
50 onclick="module.editor_move(-1); return false;"
51 accesskey="[% l('k') %]"
52 value="↑ [% l('Move Up') %]" />
53 <span class="show-access-key">[% l('k') %]</span>
56 onclick="module.editor_move(1); return false;"
57 accesskey="[% l('j') %]"
58 value="↓ [% l('Move Down') %]" />
59 <span class="show-access-key">[% l('j') %]</span>
63 <div class="clear-both"></div>
65 <div class="body-part"><!-- save changes -->
66 <p><em>[% l('Because rtime, a high-precision timestamp, is ' _
67 'essentially unique among holds, ' _
68 'no fields arranged after rtime really have any effect in ' _
69 'determining best-hold selection.') %]</em></p>
71 <p>[% l('To choose which Best-Hold Selection Sort Order will be ' _
72 'used by Evergreen at copy capture time, see the Library ' _
73 'Settings interface.') %]</p>
75 <button id="cbho-save-changes"
76 onclick="module.editor_save(); return false" disabled="disabled">
77 [% l('Save Changes') %]
79 </div><!-- save changes -->
80 </div><!-- editing space -->
82 </div><!-- main body -->
85 <div dojoType="openils.widget.ProgressDialog" id="progress-dialog"></div>
86 <div dojoType="dijit.Dialog" id="cbho-existing" title="[% l('Choose a best-hold order') %]">
87 <div class="body-part">
88 <label for="cbho-existing-selector">
89 [% l('Choose a best-hold order') %]
91 <span id="cbho-existing-selector"></span>
93 <div class="body-part">
94 <span dojoType="dijit.form.Button" type="submit"
95 id="cbho-existing-edit-go">
102 <script type="text/javascript">
103 dojo.require("dijit.form.Button");
104 dojo.require("dijit.form.TextBox");
105 dojo.require("dijit.Dialog");
106 dojo.require("openils.widget.ProgressDialog");
107 dojo.require("openils.conify.BestHoldOrder");
111 openils.Util.addOnLoad(
113 module = openils.conify.BestHoldOrder;