1 [% ctx.page_title = 'Circulation Policy Configuration' %]
2 [% WRAPPER default/base.tt2 %]
3 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/conify/global/config/circ_matrix_matchpoint.js'> </script>
4 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
5 <div>Circulation Policy Configuration</div>
6 <div><button dojoType='dijit.form.Button' onClick='cmGrid.showCreatePane()'>New</button></div>
8 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
10 style="height: 600px;"
11 dojoType="openils.widget.AutoGrid"
12 fieldOrder="['id', 'active', 'grp', 'org_unit', 'copy_circ_lib', 'copy_owning_lib', 'user_home_ou', 'is_renewal', 'juvenile_flag', 'circ_modifier', 'marc_type', 'marc_form', 'marc_bib_level', 'marc_vr_format', 'ref_flag', 'usr_age_lower_bound', 'usr_age_upper_bound', 'item_age', 'circulate', 'duration_rule', 'renewals', 'hard_due_date', 'recurring_fine_rule', 'grace_period', 'max_fine_rule', 'available_copy_hold_ratio', 'total_copy_hold_ratio', 'script_test']"
13 defaultCellWidth='"auto"'
18 showColumnPicker='true'
19 columnPickerPrefix='"conify.config.circ_matrix_matchpoint"'>
22 <th field="hard_due_date" formatter="format_hard_due_date">
30 <div id='circ-mod-editor' style='border:1px solid #aaa'>
31 <h3>Circ Modifier Count Groups</h3>
32 <table class='oils-generic-table' name='circ-mod-group-table'>
34 <td>Total items out</td>
35 <td><input type='text' size='3' name='circ-mod-count'></div></td>
37 <tbody name='circ-mod-entry-tbody'>
38 <tr name='circ-mod-entry-row'>
40 <td><a name='remove-circ-mod' href='javascript:void(0);'>Remove</a></td>
45 <td><div name='circ-mod-selector'></div></td>
46 <td><a href='javascript:void(0);' name='add-circ-mod'>Add</a></td>
50 <span name='add-circ-mod-group-span'>
51 <a href='javascript:void(0);' name='add-circ-mod-group'>Create New Group</a>
52 </span> <span>
53 <a href='javascript:void(0);' onclick='applyCircModChanges()'>Apply Circ Modifier Changes</a>
58 <div class='hidden'><div dojoType='openils.widget.ProgressDialog' jsId='progressDialog'/></div>
60 <script type="text/javascript">
61 function format_hard_due_date(name, id) {
62 var item=this.grid.getItem(id);
63 if(!item) return name;
64 switch (this.grid.store.getValue(this.grid.getItem(id), 'hard_due_date')) {
70 return "<a href='" + oilsBasePath +
71 "/conify/global/config/hard_due_date?name=" +
72 encodeURIComponent(name) + "'>" + name + "</a>";