2 [% ctx.page_title = l('Flattener Test') %]
5 <script type="text/javascript">
6 dojo.require("dijit.form.Button");
7 dojo.require("openils.widget.FlattenerGrid");
9 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
10 <div dojoType="dijit.layout.ContentPane"
11 layoutAlign="top" class="oils-header-panel">
12 <div>[% l('Flattener Test') %]</div>
14 <button dojoType="dijit.form.Button"
15 onClick="grid.showCreateDialog()">[% l('New Thing') %]</button>
16 <button dojoType="dijit.form.Button"
17 onClick="grid.deleteSelected()">[% l('Delete Selected Thing') %]</button>
20 <!-- <div class="oils-acq-basic-roomy">
21 blah, a dropdown or something here (optional; typical interfaces might
22 have a filtering org select here. Then again, why not use
23 showLoadFilter on the Grid instead?)
28 dojoType="openils.widget.FlattenerGrid"
29 columnPersistKey='"conify.flattener_test"'
35 defaultSort="['call_number']"
36 mapExtras="{copy_status: {path: 'status.name', filter: true}}"
37 query="{'copy_status': ['[% l('Available') %]','[% l('Reshelving') %]','[% l('In process') %]'],'circ_lib': 'BR1'}">
40 <th field="barcode" fpath="barcode" ffilter="true">[% l('Barcode') %]</th>
41 <th field="circ_lib_name" fpath="circ_lib.name" ffilter="true">[% l('Circulation Library Name') %]</th>
42 <th field="circ_lib" fpath="circ_lib.shortname" ffilter="true">[% l('Circulation Library') %]</th>
43 <th field="call_number" fpath="call_number.label" ffilter="true"></th>
44 <th field="shelving_loc" fpath="location.name" ffilter="true">[% l('Shelving Location') %]</th>