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' %]
9 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
10 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
11 [% INCLUDE 'datatables-strings.inc' %]
12 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
13 <script type="text/javascript">
15 $(document).ready(function() {
16 $("#table_authorized_values").dataTable($.extend(true, {}, dataTablesDefaults, {
18 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
20 "aaSorting": [[ 1, "asc" ]],
22 "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
23 "sPaginationType": "four_button"
26 if ( $("#branches option:selected").length < 1 ) {
27 $("#branches option:first").attr("selected", "selected");
35 <script type="text/javascript">
37 $(document).ready(function() {
38 $('#category').find("input:submit").hide();
39 $('#searchfield').change(function() {
40 $('#category').submit();
47 <style type="text/css">
48 fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
49 fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-selected {background-color : #F4F8F9; }
50 fieldset.rows .ui-tabs-panel { margin-right : 10px; margin-left : 10px;margin-bottom:10px;}
51 fieldset.rows .ui-tabs-nav { margin-left : 10px; }
54 <body id="admin_authorised_values" class="admin">
55 [% INCLUDE 'header.inc' %]
56 [% INCLUDE 'cat-search.inc' %]
57 <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 %]
58 [% IF ( action_add_value ) %]New authorized value[% END %]
59 [% IF ( action_add_category ) %]New category[% END %][% END %]
60 [% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a> › Confirm deletion[% END %]
61 [% IF ( else ) %]Authorized values[% END %]</div>
63 <div id="doc3" class="yui-t2">
71 [% IF ( action_modify ) %]Modify authorized value[% END %]
72 [% IF ( action_add_value ) %]New authorized value[% END %]
73 [% IF ( action_add_category ) %]New category[% END %]
76 [% 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 %]
78 <form action="[% script_name %]" name="Aform" method="post">
79 <input type="hidden" name="op" value="add_validate" />
80 <input type="hidden" name="offset" value="[% offset %]" />
81 <fieldset class="rows"><ol>
83 [% IF ( action_add_category ) %]<label for="category">Category: </label>
84 <input type="text" name="category" id="category" size="10" maxlength="10" class="focus" />
85 [% ELSE %]<span class="label">Category</span>
86 <input type="hidden" name="category" value="[% category %]" /> [% category %]
90 <label for="authorised_value">Authorized value: </label>
91 [% IF ( action_modify ) %]<input type="hidden" id="id" name="id" value="[% id %]" />[% END %]
92 [% IF ( action_add_category ) %]
93 <input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value %]" maxlength="80" />
95 <input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value %]" maxlength="80" class="focus" />
99 <label for="lib">Description: </label>
100 <input type="text" name="lib" id="lib" value="[% lib %]" maxlength="200" />
103 <label for="lib_opac">Description (OPAC): </label>
104 <input type="text" name="lib_opac" id="lib_opac" value="[% lib_opac %]" maxlength="200" />
106 <li><label for="branches">Libraries limitation: </label>
107 <select id="branches" name="branches" multiple size="10">
108 <option value="">All libraries</option>
109 [% FOREACH branch IN branches_loop %]
110 [% IF ( branch.selected ) %]
111 <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname %]</option>
113 <option value="[% branch.branchcode %]">[% branch.branchname %]</option>
117 <span>Select All if this authorized value must to be displayed all the time. Otherwise select libraries you want to associate with this value.
122 <div id="icons" class="toptabs" style="clear:both">
123 <h5 style="margin-left:10px;">Choose an icon:</h5>
125 <li><a href="#none">None</a></li>
126 [% FOREACH imageset IN imagesets %]
127 [% IF ( imageset.imagesetactive ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a></li>
131 <li><label for="noimage">No image: </label><input type="radio" name="imageurl" id="noimage" value="removeImage" /></li>
133 <br class="clear" /></div>
134 [% FOREACH imageset IN imagesets %]
135 <div id="[% imageset.imagesetname %]"><ul>
136 [% FOREACH image IN imageset.images %]
137 <li style="float: none; display: inline-block; clear : none; width: auto;">
138 <label> [% IF ( image.StaffImageUrl ) %]
139 <img src="[% image.StaffImageUrl %]" alt="[% image.StaffImageUrl %]" title="[% image.StaffImageUrl %]" />
142 [% IF ( image.checked ) %]
143 <input type="radio" name="imageurl" value="[% image.KohaImage %]" checked="checked" />
145 [% IF ( image.KohaImage ) %] <!-- to delete the radio button if there is no image after -->
146 <input type="radio" name="imageurl" value="[% image.KohaImage %]" />
157 <fieldset class="action"> <input type="hidden" name="id" value="[% id %]" />
158 <input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=[% category %]">Cancel</a></fieldset>
163 [% IF ( delete_confirm ) %]
164 <div class="dialog alert">
165 <h3>Confirm deletion</h3>
171 <th>Description (OPAC)</th>
174 <td>[% searchfield %]</td>
175 <td>[% Tvalue %]</td>
177 <td>[% Tlib_opac %]</td>
180 <form action="[% script_name %]" method="post">
181 <input type="hidden" name="op" value="delete_confirmed" />
182 <input type="hidden" name="id" value="[% id %]" />
183 <input type="hidden" name="searchfield" value="[% searchfield %]" /><fieldset class="action"><input type="submit" value="Yes, delete" class="approve" /></form>
184 <form action="[% script_name %]" method="get"><input type="hidden" name="searchfield" value="[% searchfield %]" /><input type="submit" value="No, do not delete" class="deny" /></form>
190 <div id="toolbar" class="btn-toolbar">
191 <a id="addauth" class="btn btn-small" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&category=[% category %]">New authorized value for [% category %]</a>
192 <a id="addcat" class="btn btn-small" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form">New category</a>
195 <h1>Authorized values</h1>
196 <div class="note"><strong>NOTE:</strong> If you change an authorized value, existing records using it won't be updated.</div>
198 [% IF ( duplicate_category ) %]
199 <div class="dialog alert">Could not add value "[% duplicate_value %]" for category "[% duplicate_category %]" — value already present.
202 <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>
203 [% IF ( category == 'Bsort1' ) %]
204 <p>An authorized value attached to patrons, that can be used for stats purposes</p>
206 [% IF ( category == 'Bsort2' ) %]
207 <p>An authorized value attached to patrons, that can be used for stats purposes</p>
209 [% IF ( category == 'Asort1' ) %]
210 <p>An authorized value attached to acquisitions, that can be used for stats purposes</p>
212 [% IF ( category == 'Asort2' ) %]
213 <p>An authorized value attached to acquisitions, that can be used for stats purposes</p>
215 [% IF ( category == 'SUGGEST' ) %]
216 <p>Reasons to reject or accept patron suggestions</p>
218 [% IF ( category == 'DAMAGED' ) %]
219 <p>Statuses to describe a damaged item</p>
221 [% IF ( category == 'LOST' ) %]
222 <p>Statuses to describe a lost item</p>
224 [% IF ( category == 'MANUAL_INV' ) %]
225 <p>Additional values for manual invoice types</p>
227 [% IF ( category == 'BOR_NOTES' ) %]
228 <p>Values for custom patron notes</p>
230 [% IF ( category == 'LOC' ) %]
231 <p>Values for shelving locations</p>
233 [% IF ( category == 'CCODE' ) %]
234 <p>Values for collection codes</p>
236 [% IF ( category == 'NOT_LOAN' ) %]
237 <p>Statuses to describe why an item is not for loan</p>
239 <h3>Authorized values for category [% category %]:</h3>
241 [% IF ( loop ) %]<div id="pagertable_authorized_values">
244 [% IF ( loop ) %]<table id="table_authorized_values" class="tablesorter">
246 <th>Authorized value</th>
248 <th>Description (OPAC)</th>
250 <th>Branches limitations</th>
255 [% FOREACH loo IN loop %]
256 [% UNLESS ( loop.odd ) %]
261 <td>[% loo.authorised_value %]</td>
262 <td>[% loo.lib %]</td>
263 <td>[% loo.lib_opac %]</td>
264 <td>[% IF ( loo.imageurl ) %]<img src="[% loo.imageurl %]" alt=""/>[% ELSE %] [% END %]</td>
266 [% IF loo.branches.size > 0 %]
267 [% branches_str = "" %]
268 [% FOREACH branch IN loo.branches %]
269 [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %]
271 <span href="#" title="[% branches_str %]">
272 [% IF loo.branches.size > 1 %]
273 [% loo.branches.size %] branches limitations
275 [% loo.branches.size %] branch limitation
281 <td><a href="[% loo.edit %]">Edit</a></td>
282 <td><a href="[% loo.delete %]">Delete</a></td>
285 </tbody></table>[% ELSE %]
286 <div class="dialog message">There are no authorized values defined for [% category %]</div>
289 [% IF ( isprevpage ) %]
290 <form class="inline" action="[% script_name %]" method="post">
291 <input type="hidden" name="offset" value="[% prevpage %]" /><input type="hidden" name="searchfield" value="[% searchfield %]" />
292 <input type="submit" value="<< Previous" /></form>
300 [% INCLUDE 'admin-menu.inc' %]
303 [% INCLUDE 'intranet-bottom.inc' %]