1 <div dojoType="dijit.layout.ContentPane" layout="top"
2 class="oils-header-panel lesser">
3 <div>[% l('Issuances') %]</div>
4 <div style="margin-right: 16px;">
5 <span dojoType="dijit.form.Button"
6 onclick="iss_grid.refresh();">[% l('Refresh Grid') %]</span>
7 <span dojoType="dijit.form.Button"
8 onclick="iss_grid.showCreatePane();">[% l('New Issuance') %]</span>
9 <span dojoType="dijit.form.Button"
10 onclick="iss_grid.deleteSelected(); regenerate_summaries();">[% l('Delete Selected') %]</span>
13 [%- IF CGI.param('context') != 'scv' -%]
14 <div class="serial-additional-controls">
15 <span dojoType="dijit.form.Button"
16 onclick="prediction_dialog.show();">[% l('Generate Predictions') %]</span>
19 <div dojoType="dijit.layout.ContentPane" layout="top">
20 <table jsId="iss_grid"
21 dojoType="openils.widget.AutoGrid"
23 fieldOrder="['subscription','creator','editor','label','date_published','caption_and_pattern','holding_type']"
24 suppressFields="['subscription','holding_link_id','create_date','edit_date','creator','editor']"
25 suppressEditFields="['id','holding_link_id','create_date','edit_date']"
26 defaultCellWidth="'auto'"
27 onPostSubmit="attempt_reload_opac"
31 requiredFields="['date_published','holding_code']"
35 <th field="label" formatter="format_siss_label"
36 get="get_id_and_label"></th>
42 <div dojoType="dijit.Dialog"
43 title="[% l('Generate Issuance and Item Predictions') %]"
44 execute="generate_predictions(arguments[0]);"
45 jsId="prediction_dialog">
46 <script type="dojo/connect" event="onShow">
47 prepare_prediction_dialog();
49 <table class="serial-dialog-table">
52 <input dojoType="dijit.form.RadioButton"
53 id="end_date" name="end_how" value="date"
54 checked="false" disabled="true"
55 jsId="prediction_dialog_end_date" />
56 <label for="end_date">
57 [% l('Predict until end of subscription') %]
64 <input dojoType="dijit.form.RadioButton"
65 id="end_num" name="end_how" value="number"
66 checked="true" jsId="prediction_dialog_end_num"
67 onChange="if (this.attr('checked')) setTimeout(function(){prediction_dialog_num_to_predict.focus();},200);" />
69 [% l('Predict a certain number of issuances:') %]
73 <input dojoType="dijit.form.TextBox"
75 jsId="prediction_dialog_num_to_predict"
76 name="num_to_predict" />
81 <button dojoType="dijit.form.Button"
82 jsId="prediction_dialog_submit"
83 type="submit" disabled="true">[% l('Generate') %]</button>