(MT #1654) followup : corrects tablesorting for authorised_values and itemtypes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / authorised_values.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Administration &rsaquo; Authorized Values <!-- TMPL_IF name="add_form" --> &rsaquo; <!-- TMPL_IF name="action_modify" -->Modify authorized value<!-- /TMPL_IF -->
3            <!-- TMPL_IF name="action_add_value" --> &rsaquo;  New authorized value<!-- /TMPL_IF -->
4            <!-- TMPL_IF name="action_add_category" --> &rsaquo; New category<!-- /TMPL_IF --><!-- /TMPL_IF -->
5 <!-- TMPL_IF name="delete_confirm" --> &rsaquo; Confirm Deletion<!-- /TMPL_IF -->
6 <!-- TMPL_IF name="else" -->Authorized values<!-- /TMPL_IF --></title>
7 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
8 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
9 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
10 <script type="text/javascript" id="js">$(document).ready(function() {
11         // call the tablesorter plugin
12         $("#table_authorized_values").tablesorter({
13                 sortList: [[1,0]],
14                 headers: { 4: { sorter: false}, 5: { sorter: false}}
15                                 }).tablesorterPager({container: $("#pagertable_authorized_values"),positionFixed: false,size: 20});
16         
17 }); </script>
18
19 <script type="text/JavaScript" language="JavaScript">
20 //<![CDATA[
21      $(document).ready(function() {
22         $('#icons > ul').tabs();
23      });
24 //]]>
25 </script>
26 <style type="text/css">
27         fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
28         fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-selected {background-color : transparent; }
29         fieldset.rows .ui-tabs-panel { margin-right : 10px; margin-left : 10px;margin-bottom:10px;}
30 </style>
31 </head>
32 <body>
33 <!-- TMPL_INCLUDE NAME="header.inc" -->
34 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
35 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; <!-- TMPL_IF name="add_form" --> <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized Values</a> &rsaquo; <!-- TMPL_IF name="action_modify" -->Modify authorized value<!-- /TMPL_IF -->
36            <!-- TMPL_IF name="action_add_value" -->New authorized value<!-- /TMPL_IF -->
37            <!-- TMPL_IF name="action_add_category" -->New category<!-- /TMPL_IF --><!-- /TMPL_IF -->
38 <!-- TMPL_IF name="delete_confirm" --> <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized Values</a> &rsaquo; Confirm Deletion<!-- /TMPL_IF -->
39 <!-- TMPL_IF name="else" -->Authorized values<!-- /TMPL_IF --></div>
40
41 <div id="doc3" class="yui-t2">
42    
43    <div id="bd">
44         <div id="yui-main">
45         <div class="yui-b">
46
47 <!-- TMPL_IF name="add_form" -->
48         <h1>
49            <!-- TMPL_IF name="action_modify" -->Modify authorized value<!-- /TMPL_IF -->
50            <!-- TMPL_IF name="action_add_value" -->New authorized value<!-- /TMPL_IF -->
51            <!-- TMPL_IF name="action_add_category" -->New category<!-- /TMPL_IF -->
52         </h1>
53         <form action="<!-- TMPL_VAR name="script_name" -->" name="Aform" method="post">
54         <input type="hidden" name="op" value="add_validate" />
55     <input type="hidden" name="offset" value="<!-- TMPL_VAR name="offset" -->" />
56         <fieldset class="rows"><ol>
57         <li>
58                          <!-- TMPL_IF name="action_add_category" --><label for="category">Category</label>
59                 <input type="text" name="category"  id="category" size="10" maxlength="10" />
60                          <!-- TMPL_ELSE --><span class="label">Category</span>
61                 <input type="hidden" name="category" value="<!-- TMPL_VAR NAME='category' -->" />        <!-- TMPL_VAR NAME='category' -->
62                          <!-- /TMPL_IF -->
63         </li>
64         <li>
65             <label for="authorised_value">Authorized value</label>
66      <!-- TMPL_IF name="action_modify" --><input type="hidden" id="id" name="id" value="<!-- TMPL_VAR name="id" -->" /><!-- /TMPL_IF -->
67             <input type="text" id="authorised_value" name="authorised_value" value="<!-- TMPL_VAR name="authorised_value" -->" maxlength="80" />
68         </li>
69         <li>
70             <label for="lib">Description</label>
71             <input type="text" name="lib" id="lib" value="<!-- TMPL_VAR name="lib" -->" maxlength="80" />
72         </li>
73         <li>
74             <label for="lib_opac">Description (OPAC)</label>
75             <input type="text" name="lib_opac" id="lib_opac" value="<!-- TMPL_VAR name="lib_opac" -->" maxlength="80" />
76         </li>
77                 </ol>
78                 <div id="icons" class="toptabs">
79                 <h5 style="margin-left:10px;">Choose an Icon:</h5>
80                         <ul>
81                                         <li><a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&amp;category=<!-- TMPL_VAR NAME="category" -->#none">None</a></li>
82                                   <!-- TMPL_LOOP NAME="imagesets" -->
83                                         <!-- TMPL_IF NAME="imagesetactive" --><li class="ui-tabs-selected"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&amp;category=<!-- TMPL_VAR NAME="category" -->#<!-- TMPL_VAR NAME="imagesetname" -->"><!-- TMPL_VAR name="imagesetname" --></a></li>
84                                   <!-- /TMPL_LOOP -->
85                         </ul>
86                 </div>
87   <div id="none"><ul>
88   <li><label for="noimage">No image: </label><input type="radio" name="imageurl" id="noimage" value="removeImage" /></li>
89   </ul>
90   <br class="clear" /></div>
91   <!-- TMPL_LOOP NAME="imagesets" -->
92   <div id="<!-- TMPL_VAR NAME="imagesetname" -->"><ul>
93   <!-- TMPL_LOOP NAME="images" -->
94                         <li style="float: none; display: inline; clear : none; width: auto;">
95             <label> <!-- TMPL_IF NAME="StaffImageUrl" -->
96               <img src="<!-- TMPL_VAR name="StaffImageUrl" -->" alt="<!-- TMPL_VAR name="StaffImageUrl" -->" title="<!-- TMPL_VAR name="StaffImageUrl" -->" />
97         <!-- TMPL_ELSE -->
98         <!-- /TMPL_IF -->
99     <!-- TMPL_IF name="checked" -->
100               <input type="radio" name="imageurl" value="<!-- TMPL_VAR name="KohaImage" -->" checked="checked" />
101     <!-- TMPL_ELSE -->
102               <!-- TMPL_IF NAME="KohaImage" --> <!-- to delete the radio button if there is no image after -->
103               <input type="radio" name="imageurl" value="<!-- TMPL_VAR name="KohaImage" -->" />
104               <!-- /TMPL_IF -->
105     <!-- /TMPL_IF -->
106             </label>
107                         </li>
108   <!-- /TMPL_LOOP --></ul>
109   <br class="clear" />
110   </div>
111   <!-- /TMPL_LOOP -->
112   
113         </fieldset>
114        <fieldset class="action"> <input type="hidden" name="id" value="<!-- TMPL_VAR name="id" -->" />
115         <input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=<!-- TMPL_VAR NAME="category" -->">Cancel</a></fieldset>
116     </form>
117 <!-- /TMPL_IF -->
118
119
120 <!-- TMPL_IF name="delete_confirm" -->
121         <div class="dialog alert">
122 <h3>Confirm Deletion</h3>
123 <table>
124         <tr>
125                 <th>Category</th>
126                 <th>Value</th>
127                 <th>Description</th>
128                 <th>Description (OPAC)</th>
129         </tr>
130         <tr>
131             <td><!-- TMPL_VAR name="searchfield" --></td>
132             <td><!-- TMPL_VAR name="Tvalue" --></td>
133             <td><!-- TMPL_VAR name="Tlib" --></td>
134             <td><!-- TMPL_VAR name="Tlib_opac" --></td>
135         </tr>
136         </table>
137         <form action="<!-- TMPL_VAR name=" script_name " -->" method="post">
138                 <input type="hidden" name="op" value="delete_confirmed" />
139                 <input type="hidden" name="id" value="<!-- TMPL_VAR name="id" -->" />
140                 <input type="hidden" name="searchfield" value="<!-- TMPL_VAR name="searchfield" -->" /><fieldset class="action"><input type="submit" value="Yes, Delete" class="approve" /></form>
141 <form action="<!-- TMPL_VAR name=" script_name " -->" method="get"><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /><input type="submit" value="No, Do Not Delete" class="deny" /></form>
142 </div>
143 <!-- /TMPL_IF -->
144
145 <!-- TMPL_IF name="else" -->
146
147 <div id="toolbar">
148         <script type="text/javascript">
149         //<![CDATA[
150
151         // prepare DOM for YUI Toolbar
152
153          $(document).ready(function() {
154             yuiToolbar();
155                 $('#category').find("input:submit").hide();
156                 $('#searchfield').change(function() {
157                 $('#category').submit();
158                 });
159          });
160
161         // YUI Toolbar Functions
162
163         function yuiToolbar() {
164             new YAHOO.widget.Button("addauth");
165             new YAHOO.widget.Button("addcat");
166         }
167
168         //]]>
169         </script>
170         <ul class="toolbar">
171          <li><a id="addauth" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&amp;category=<!-- TMPL_VAR NAME="category" -->">New Authorized value for <!-- TMPL_VAR name="category" --></a></li>
172     <li><a id="addcat" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form">New Category</a></li>
173 </ul></div>
174
175 <h1>Authorized values</h1>
176 <p>These values can be used in many pull down menus throughout the Koha system. You can define as many categories as you want, and as many authorized values as you want in each category.</p>
177
178 <p>When you define the MARC subfield structure, you can link a subfield to a authorized-value category. When the user ask for adding of modifying a biblio, the subfield is not entered through a free field, but though a list of authorized values</p>
179
180 <!-- TMPL_IF name="duplicate_category" -->
181 <div>
182 <span class="problem">Could not add value &quot;<!-- TMPL_VAR name="duplicate_value" -->&quot; for category 
183     &quot;<!-- TMPL_VAR name="duplicate_category" -->&quot; &mdash; value already present.
184 </span>
185 </div>
186 <!-- /TMPL_IF -->
187 <form action="/cgi-bin/koha/admin/authorised_values.pl" method="post" id="category"><label for="searchfield">Show Category: </label><!-- TMPL_VAR name="tab_list" --> <input type="submit" value="Submit" /></form>
188 <!-- TMPL_IF EXPR="category eq 'Bsort1'" -->
189     <p>An authorized value attached to patrons, that can be used for stats purposes</p>
190 <!-- /TMPL_IF -->
191 <!-- TMPL_IF EXPR="category eq 'Bsort2'" -->
192     <p>An authorized value attached to patrons, that can be used for stats purposes</p>
193 <!-- /TMPL_IF -->
194 <!-- TMPL_IF EXPR="category eq 'Asort1'" -->
195     <p>An authorized value attached to acquisitions, that can be used for stats purposes</p>
196 <!-- /TMPL_IF -->
197 <!-- TMPL_IF EXPR="category eq 'Asort2'" -->
198     <p>An authorized value attached to acquisitions, that can be used for stats purposes</p>
199 <!-- /TMPL_IF -->
200 <!-- TMPL_IF EXPR="category eq 'SUGGEST'" -->
201     <p>Reasons to reject or accept patron suggestions</p>
202 <!-- /TMPL_IF -->
203 <!-- TMPL_IF EXPR="category eq 'DAMAGED'" -->
204     <p>Statuses to describe a damaged item</p>
205 <!-- /TMPL_IF -->
206 <!-- TMPL_IF EXPR="category eq 'LOST'" -->
207    <p>Statuses to describe a lost item</p>
208 <!-- /TMPL_IF -->
209 <!-- TMPL_IF EXPR="category eq 'MANUAL_INV'" -->
210     <p>Additional values for manual invoice types</p>
211 <!-- /TMPL_IF -->
212 <!-- TMPL_IF EXPR="category eq 'BOR_NOTES'" -->
213     <p>Values for custom patron notes</p>
214 <!-- /TMPL_IF -->
215 <!-- TMPL_IF EXPR="category eq 'LOC'" -->
216     <p>Values for shelving locations</p>
217 <!-- /TMPL_IF -->
218 <!-- TMPL_IF EXPR="category eq 'CCODE'" -->
219     <p>Values for collection codes</p>
220  <!-- /TMPL_IF -->
221  <!-- TMPL_IF EXPR="category eq 'NOT_LOAN'" -->
222     <p>Statuses to describe why an item is not for loan</p>
223  <!-- /TMPL_IF -->
224 <h3>Authorized values for category <!-- TMPL_VAR name="category" --> :</h3>
225
226 <span id="pagertable_authorized_values" class="pager">
227         <form class="formpager">&nbsp;<strong>page(s)</strong>&nbsp;:
228                 <img src="<!-- TMPL_VAR name="interface" -->/prog/img/first.png" class="first"/>
229                 <img src="<!-- TMPL_VAR name="interface" -->/prog/img/prev.png" class="prev"/>
230                 <input type="text" size="5" class="pagedisplay"/>
231                 <img src="<!-- TMPL_VAR name="interface" -->/prog/img/next.png" class="next"/>
232                 <img src="<!-- TMPL_VAR name="interface" -->/prog/img/last.png" class="last"/>
233                 , entries/page : 
234                 <select class="pagesize">
235                 <option value="10">10</option>
236                         <option selected="selected" value="20">20</option>
237                         <option value="30">30</option>
238                         <option value="40">40</option>
239                         <option value="50">50</option>
240                         <option value="100">100</option>
241                 </select>
242         </form>
243 </span>
244
245 <table id="table_authorized_values" cellspacing="1" class="tablesorter">
246 <thead><tr>
247         <th>Authorized value</th>
248         <th>Description</th>
249         <th>Description (OPAC)</th>
250         <th>Icon</th>
251         <th>Edit</th>
252         <th>Delete</th>
253         </tr>
254 </thead><tbody>
255 <!-- TMPL_LOOP name="loop" -->
256 <!-- TMPL_UNLESS name="__odd__" -->
257 <tr>
258 <!-- TMPL_ELSE -->
259 <tr>
260 <!-- /TMPL_UNLESS -->
261         <td><!-- TMPL_VAR name="authorised_value" --></td>
262         <td><!-- TMPL_VAR name="lib" --></td>
263         <td><!-- TMPL_VAR name="lib_opac" --></td>
264         <td><!-- TMPL_IF NAME="imageurl" --><img src="<!-- TMPL_VAR name="imageurl" -->" alt=""/><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td>
265         <td><a href="<!-- TMPL_VAR name="edit" -->">Edit</a></td>
266         <td><a href="<!-- TMPL_VAR name="delete" -->">Delete</a></td>
267 </tr>
268 <!-- /TMPL_LOOP -->
269 </tbody></table>
270
271 <!-- TMPL_IF NAME="isprevpage" -->
272 <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
273 <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="prevpage" -->" /><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
274         <input type="submit" value="&lt;&lt; Previous" /></form>
275 <!-- /TMPL_IF --> 
276
277 <!-- /TMPL_IF -->
278
279 </div>
280 </div>
281 <div class="yui-b">
282 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
283 </div>
284 </div>
285 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->