1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › Authorized values [% IF ( add_form ) %] › [% IF ( action_modify ) %]Modify authorized value[% END %]
3 [% IF ( action_add_value ) %] › New authorized value[% END %]
4 [% IF ( action_add_category ) %] › New category[% END %][% END %]
5 [% IF ( delete_confirm ) %] › Confirm deletion[% END %]
6 [% IF ( else ) %]Authorized values[% END %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
9 <script type="text/javascript" src="[% 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({
14 headers: { 4: { sorter: false}, 5: { sorter: false}}
15 }).tablesorterPager({container: $("#pagertable_authorized_values"),positionFixed: false,size: 50});
19 <script type="text/JavaScript" language="JavaScript">
21 $(document).ready(function() {
22 $('#icons > ul').tabs();
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;}
32 <body id="admin_authorised_values" class="admin">
33 [% INCLUDE 'header.inc' %]
34 [% INCLUDE 'cat-search.inc' %]
35 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › [% IF ( add_form ) %] <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a> › [% IF ( action_modify ) %]Modify authorized value[% END %]
36 [% IF ( action_add_value ) %]New authorized value[% END %]
37 [% IF ( action_add_category ) %]New category[% END %][% END %]
38 [% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a> › Confirm deletion[% END %]
39 [% IF ( else ) %]Authorized values[% END %]</div>
41 <div id="doc3" class="yui-t2">
49 [% IF ( action_modify ) %]Modify authorized value[% END %]
50 [% IF ( action_add_value ) %]New authorized value[% END %]
51 [% IF ( action_add_category ) %]New category[% END %]
54 [% IF ( action_modify ) %]<div class="note"><strong>NOTE:</strong> If you change an authorized value, existing records using it won't be updated.</div>[% END %]
56 <form action="[% script_name %]" name="Aform" method="post">
57 <input type="hidden" name="op" value="add_validate" />
58 <input type="hidden" name="offset" value="[% offset %]" />
59 <fieldset class="rows"><ol>
61 [% IF ( action_add_category ) %]<label for="category">Category</label>
62 <input type="text" name="category" id="category" size="10" maxlength="10" />
63 [% ELSE %]<span class="label">Category</span>
64 <input type="hidden" name="category" value="[% category %]" /> [% category %]
68 <label for="authorised_value">Authorized value</label>
69 [% IF ( action_modify ) %]<input type="hidden" id="id" name="id" value="[% id %]" />[% END %]
70 <input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value %]" maxlength="80" />
73 <label for="lib">Description</label>
74 <input type="text" name="lib" id="lib" value="[% lib %]" maxlength="80" />
77 <label for="lib_opac">Description (OPAC)</label>
78 <input type="text" name="lib_opac" id="lib_opac" value="[% lib_opac %]" maxlength="80" />
81 <div id="icons" class="toptabs">
82 <h5 style="margin-left:10px;">Choose an icon:</h5>
84 <li><a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&category=[% category %]#none">None</a></li>
85 [% FOREACH imageset IN imagesets %]
86 [% IF ( imageset.imagesetactive ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&category=[% imageset.category %]#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a></li>
91 <li><label for="noimage">No image: </label><input type="radio" name="imageurl" id="noimage" value="removeImage" /></li>
93 <br class="clear" /></div>
94 [% FOREACH imageset IN imagesets %]
95 <div id="[% imageset.imagesetname %]"><ul>
96 [% FOREACH image IN imageset.images %]
97 <li style="float: none; display: inline; clear : none; width: auto;">
98 <label> [% IF ( image.StaffImageUrl ) %]
99 <img src="[% image.StaffImageUrl %]" alt="[% image.StaffImageUrl %]" title="[% image.StaffImageUrl %]" />
102 [% IF ( image.checked ) %]
103 <input type="radio" name="imageurl" value="[% image.KohaImage %]" checked="checked" />
105 [% IF ( image.KohaImage ) %] <!-- to delete the radio button if there is no image after -->
106 <input type="radio" name="imageurl" value="[% image.KohaImage %]" />
117 <fieldset class="action"> <input type="hidden" name="id" value="[% id %]" />
118 <input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=[% category %]">Cancel</a></fieldset>
123 [% IF ( delete_confirm ) %]
124 <div class="dialog alert">
125 <h3>Confirm deletion</h3>
131 <th>Description (OPAC)</th>
134 <td>[% searchfield %]</td>
135 <td>[% Tvalue %]</td>
137 <td>[% Tlib_opac %]</td>
140 <form action="[% script_name %]" method="post">
141 <input type="hidden" name="op" value="delete_confirmed" />
142 <input type="hidden" name="id" value="[% id %]" />
143 <input type="hidden" name="searchfield" value="[% searchfield %]" /><fieldset class="action"><input type="submit" value="Yes, delete" class="approve" /></form>
144 <form action="[% script_name %]" method="get"><input type="hidden" name="searchfield" value="[% searchfield %]" /><input type="submit" value="No, do not delete" class="deny" /></form>
151 <script type="text/javascript">
154 // prepare DOM for YUI Toolbar
156 $(document).ready(function() {
158 $('#category').find("input:submit").hide();
159 $('#searchfield').change(function() {
160 $('#category').submit();
164 // YUI Toolbar Functions
166 function yuiToolbar() {
167 new YAHOO.widget.Button("addauth");
168 new YAHOO.widget.Button("addcat");
174 <li><a id="addauth" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&category=[% category %]">New authorized value for [% category %]</a></li>
175 <li><a id="addcat" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form">New category</a></li>
178 <h1>Authorized values</h1>
179 <div class="note"><strong>NOTE:</strong> If you change an authorized value, existing records using it won't be updated.</div>
181 [% IF ( duplicate_category ) %]
182 <div class="dialog alert">Could not add value "[% duplicate_value %]" for category "[% duplicate_category %]" — value already present.
185 <form action="/cgi-bin/koha/admin/authorised_values.pl" method="post" id="category"><label for="searchfield">Show category: </label>[% tab_list %] <input type="submit" value="Submit" /></form>
186 [% IF ( category == 'Bsort1' ) %]
187 <p>An authorized value attached to patrons, that can be used for stats purposes</p>
189 [% IF ( category == 'Bsort2' ) %]
190 <p>An authorized value attached to patrons, that can be used for stats purposes</p>
192 [% IF ( category == 'Asort1' ) %]
193 <p>An authorized value attached to acquisitions, that can be used for stats purposes</p>
195 [% IF ( category == 'Asort2' ) %]
196 <p>An authorized value attached to acquisitions, that can be used for stats purposes</p>
198 [% IF ( category == 'SUGGEST' ) %]
199 <p>Reasons to reject or accept patron suggestions</p>
201 [% IF ( category == 'DAMAGED' ) %]
202 <p>Statuses to describe a damaged item</p>
204 [% IF ( category == 'LOST' ) %]
205 <p>Statuses to describe a lost item</p>
207 [% IF ( category == 'MANUAL_INV' ) %]
208 <p>Additional values for manual invoice types</p>
210 [% IF ( category == 'BOR_NOTES' ) %]
211 <p>Values for custom patron notes</p>
213 [% IF ( category == 'LOC' ) %]
214 <p>Values for shelving locations</p>
216 [% IF ( category == 'CCODE' ) %]
217 <p>Values for collection codes</p>
219 [% IF ( category == 'NOT_LOAN' ) %]
220 <p>Statuses to describe why an item is not for loan</p>
222 <h3>Authorized values for category [% category %]:</h3>
224 [% IF ( loop ) %]<div id="pagertable_authorized_values">
225 [% INCLUDE 'table-pager.inc' perpage='50' %]
228 [% IF ( loop ) %]<table id="table_authorized_values" class="tablesorter">
230 <th>Authorized value</th>
232 <th>Description (OPAC)</th>
238 [% FOREACH loo IN loop %]
239 [% UNLESS ( loop.odd ) %]
244 <td>[% loo.authorised_value %]</td>
245 <td>[% loo.lib %]</td>
246 <td>[% loo.lib_opac %]</td>
247 <td>[% IF ( loo.imageurl ) %]<img src="[% loo.imageurl %]" alt=""/>[% ELSE %] [% END %]</td>
248 <td><a href="[% loo.edit %]">Edit</a></td>
249 <td><a href="[% loo.delete %]">Delete</a></td>
252 </tbody></table>[% ELSE %]
253 <div class="dialog message">There are no authorized values defined for [% category %]</div>
256 [% IF ( isprevpage ) %]
257 <form class="inline" action="[% script_name %]" method="post">
258 <input type="hidden" name="offset" value="[% prevpage %]" /><input type="hidden" name="searchfield" value="[% searchfield %]" />
259 <input type="submit" value="<< Previous" /></form>
267 [% INCLUDE 'admin-menu.inc' %]
270 [% INCLUDE 'intranet-bottom.inc' %]