c58040b4a75ceac4c7769ac4d767428c157e00c2
[working/Evergreen.git] / Open-ILS / src / templates / cat / authority / list.tt2
1 [% ctx.page_title = 'Authority record list' %]
2 [% WRAPPER base.tt2 %]
3
4 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/cat/authority/list.js'> </script>
5
6 <div dojoType="dijit.form.Form" id="myForm" jsId="myForm" encType="multipart/form-data" action="" method="">
7     <span style="white-space: nowrap;">
8         <label for="authTerm">Search term: </label>
9         <input type="text" name="authTerm" value="" dojoType="dijit.form.TextBox" trim="true" id="authTerm" propercase="false"/>
10     </span>
11     <span style="white-space: nowrap;">
12         <label for="authAxis">Authority type: </label>
13         <input
14             id="authAxis"
15             name="authAxis"
16             jsId="authAxis"
17             dojoType="openils.widget.PCrudAutocompleteBox"
18             fmclass="aba"
19             searchAttr="name"
20             fetchProperties="{ sort: [{attribute:'name'}] }"
21             propercase="false"
22             hasDownArrow="true"
23             store_options="{ honor_retrieve_all:true }"
24             trim="true"
25         />
26     </span>
27 <!-- Not currently useful - see authOUListInit() above -->
28 <!--    <label for="authOU">Library: </label><select dojoType="openils.widget.OrgUnitFilteringSelect" id="authOU" name="authOU" searchAttr="shortname" labelAttr="shortname"></select> -->
29
30     <span style="white-space: nowrap;">
31         <span dojoType="dijit.form.Button" type="button" value="Previous">Previous
32             <script type="dojo/method" event="onClick" args="evt">
33                 displayRecords({"page":"prev"});
34             </script>
35         </span>
36
37         <label for="authPage">Page: </label>
38         <input dojoType="dijit.form.NumberSpinner" value="0" constraints="{min:-100,max:100,places:0}" smallDelta="1" id="authPage" name="authPage" style="width:5em;" />
39
40         <span dojoType="dijit.form.Button" type="button" value="Next">Next
41             <script type="dojo/method" event="onClick" args="evt">
42                 displayRecords({"page":"next"});
43             </script>
44         </span>
45     </span>
46
47     <span style="white-space: nowrap;">
48         <span dojoType="dijit.form.Button" type="button" value="Submit">Submit
49             <script type="dojo/method" event="onClick" args="evt">
50                 displayRecords();
51             </script>
52         </span>
53     </span>
54 </div>
55
56 <hr />
57
58 <div id='mergebox-div' class='hidden' style='float:right; border: 4px solid; width: 25%;'>
59     <div style="border-bottom: 4px solid; text-align: center;">
60         <div dojoType="dijit.form.Form" encType="multipart/form-data" action="" method="">
61             <div dojoType="dijit.form.Button" type="button" value="Merge">Merge
62                 <script type="dojo/method" event="onClick" args="evt">
63                     mergeRecords();
64                 </script>
65             </div>
66             <div dojoType="dijit.form.Button" type="button" value="Clear">Clear
67                 <script type="dojo/method" event="onClick" args="evt">
68                     clearMergeRecords();
69                 </script>
70             </div>
71         </div>
72     </div>
73     <table>
74         <tbody id='mergebox-tbody'>
75         </tbody>
76     </table>
77 </div>
78
79
80 <div id='authlist-div'></div>
81
82 [% END %]