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});
17 if ( $("#branches option:selected").length < 1 ) {
18 $("#branches option:first").attr("selected", "selected");
22 <script type="text/JavaScript" language="JavaScript">
24 $(document).ready(function() {
30 <script type="text/javascript">
32 $(document).ready(function() {
33 $('#category').find("input:submit").hide();
34 $('#searchfield').change(function() {
35 $('#category').submit();
42 <style type="text/css">
43 fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
44 fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-selected {background-color : #F4F8F9; }
45 fieldset.rows .ui-tabs-panel { margin-right : 10px; margin-left : 10px;margin-bottom:10px;}
46 fieldset.rows .ui-tabs-nav { margin-left : 10px; }
49 <body id="admin_authorised_values" class="admin">
50 [% INCLUDE 'header.inc' %]
51 [% INCLUDE 'cat-search.inc' %]
52 <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 %]
53 [% IF ( action_add_value ) %]New authorized value[% END %]
54 [% IF ( action_add_category ) %]New category[% END %][% END %]
55 [% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a> › Confirm deletion[% END %]
56 [% IF ( else ) %]Authorized values[% END %]</div>
58 <div id="doc3" class="yui-t2">
66 [% IF ( action_modify ) %]Modify authorized value[% END %]
67 [% IF ( action_add_value ) %]New authorized value[% END %]
68 [% IF ( action_add_category ) %]New category[% END %]
71 [% 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 %]
73 <form action="[% script_name %]" name="Aform" method="post">
74 <input type="hidden" name="op" value="add_validate" />
75 <input type="hidden" name="offset" value="[% offset %]" />
76 <fieldset class="rows"><ol>
78 [% IF ( action_add_category ) %]<label for="category">Category</label>
79 <input type="text" name="category" id="category" size="10" maxlength="10" class="focus" />
80 [% ELSE %]<span class="label">Category</span>
81 <input type="hidden" name="category" value="[% category %]" /> [% category %]
85 <label for="authorised_value">Authorized value</label>
86 [% IF ( action_modify ) %]<input type="hidden" id="id" name="id" value="[% id %]" />[% END %]
87 [% IF ( action_add_category ) %]
88 <input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value %]" maxlength="80" />
90 <input type="text" id="authorised_value" name="authorised_value" value="[% authorised_value %]" maxlength="80" class="focus" />
94 <label for="lib">Description</label>
95 <input type="text" name="lib" id="lib" value="[% lib %]" maxlength="200" />
98 <label for="lib_opac">Description (OPAC)</label>
99 <input type="text" name="lib_opac" id="lib_opac" value="[% lib_opac %]" maxlength="200" />
101 <li><label for="branches">Branches limitation: </label>
102 <select id="branches" name="branches" multiple size="10">
103 <option value="">All branches</option>
104 [% FOREACH branch IN branches_loop %]
105 [% IF ( branch.selected ) %]
106 <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname %]</option>
108 <option value="[% branch.branchcode %]">[% branch.branchname %]</option>
112 <span>Select All if this authorised value must to be displayed all the time. Otherwise select librairies you want to associate with this value.
117 <div id="icons" class="toptabs" style="clear:both">
118 <h5 style="margin-left:10px;">Choose an icon:</h5>
120 <li><a href="#none">None</a></li>
121 [% FOREACH imageset IN imagesets %]
122 [% IF ( imageset.imagesetactive ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="#[% imageset.imagesetname %]">[% imageset.imagesetname %]</a></li>
126 <li><label for="noimage">No image: </label><input type="radio" name="imageurl" id="noimage" value="removeImage" /></li>
128 <br class="clear" /></div>
129 [% FOREACH imageset IN imagesets %]
130 <div id="[% imageset.imagesetname %]"><ul>
131 [% FOREACH image IN imageset.images %]
132 <li style="float: none; display: inline; clear : none; width: auto;">
133 <label> [% IF ( image.StaffImageUrl ) %]
134 <img src="[% image.StaffImageUrl %]" alt="[% image.StaffImageUrl %]" title="[% image.StaffImageUrl %]" />
137 [% IF ( image.checked ) %]
138 <input type="radio" name="imageurl" value="[% image.KohaImage %]" checked="checked" />
140 [% IF ( image.KohaImage ) %] <!-- to delete the radio button if there is no image after -->
141 <input type="radio" name="imageurl" value="[% image.KohaImage %]" />
152 <fieldset class="action"> <input type="hidden" name="id" value="[% id %]" />
153 <input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=[% category %]">Cancel</a></fieldset>
158 [% IF ( delete_confirm ) %]
159 <div class="dialog alert">
160 <h3>Confirm deletion</h3>
166 <th>Description (OPAC)</th>
169 <td>[% searchfield %]</td>
170 <td>[% Tvalue %]</td>
172 <td>[% Tlib_opac %]</td>
175 <form action="[% script_name %]" method="post">
176 <input type="hidden" name="op" value="delete_confirmed" />
177 <input type="hidden" name="id" value="[% id %]" />
178 <input type="hidden" name="searchfield" value="[% searchfield %]" /><fieldset class="action"><input type="submit" value="Yes, delete" class="approve" /></form>
179 <form action="[% script_name %]" method="get"><input type="hidden" name="searchfield" value="[% searchfield %]" /><input type="submit" value="No, do not delete" class="deny" /></form>
185 <div id="toolbar" class="btn-toolbar">
186 <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>
187 <a id="addcat" class="btn btn-small" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form">New category</a>
190 <h1>Authorized values</h1>
191 <div class="note"><strong>NOTE:</strong> If you change an authorized value, existing records using it won't be updated.</div>
193 [% IF ( duplicate_category ) %]
194 <div class="dialog alert">Could not add value "[% duplicate_value %]" for category "[% duplicate_category %]" — value already present.
197 <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>
198 [% IF ( category == 'Bsort1' ) %]
199 <p>An authorized value attached to patrons, that can be used for stats purposes</p>
201 [% IF ( category == 'Bsort2' ) %]
202 <p>An authorized value attached to patrons, that can be used for stats purposes</p>
204 [% IF ( category == 'Asort1' ) %]
205 <p>An authorized value attached to acquisitions, that can be used for stats purposes</p>
207 [% IF ( category == 'Asort2' ) %]
208 <p>An authorized value attached to acquisitions, that can be used for stats purposes</p>
210 [% IF ( category == 'SUGGEST' ) %]
211 <p>Reasons to reject or accept patron suggestions</p>
213 [% IF ( category == 'DAMAGED' ) %]
214 <p>Statuses to describe a damaged item</p>
216 [% IF ( category == 'LOST' ) %]
217 <p>Statuses to describe a lost item</p>
219 [% IF ( category == 'MANUAL_INV' ) %]
220 <p>Additional values for manual invoice types</p>
222 [% IF ( category == 'BOR_NOTES' ) %]
223 <p>Values for custom patron notes</p>
225 [% IF ( category == 'LOC' ) %]
226 <p>Values for shelving locations</p>
228 [% IF ( category == 'CCODE' ) %]
229 <p>Values for collection codes</p>
231 [% IF ( category == 'NOT_LOAN' ) %]
232 <p>Statuses to describe why an item is not for loan</p>
234 <h3>Authorized values for category [% category %]:</h3>
236 [% IF ( loop ) %]<div id="pagertable_authorized_values">
237 [% INCLUDE 'table-pager.inc' perpage='50' %]
240 [% IF ( loop ) %]<table id="table_authorized_values" class="tablesorter">
242 <th>Authorized value</th>
244 <th>Description (OPAC)</th>
246 <th>Branches limitations</th>
251 [% FOREACH loo IN loop %]
252 [% UNLESS ( loop.odd ) %]
257 <td>[% loo.authorised_value %]</td>
258 <td>[% loo.lib %]</td>
259 <td>[% loo.lib_opac %]</td>
260 <td>[% IF ( loo.imageurl ) %]<img src="[% loo.imageurl %]" alt=""/>[% ELSE %] [% END %]</td>
262 [% IF loo.branches.size > 0 %]
263 [% branches_str = "" %]
264 [% FOREACH branch IN loo.branches %]
265 [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %]
267 <span href="#" title="[% branches_str %]">
268 [% IF loo.branches.size > 1 %]
269 [% loo.branches.size %] branches limitations
271 [% loo.branches.size %] branch limitation
277 <td><a href="[% loo.edit %]">Edit</a></td>
278 <td><a href="[% loo.delete %]">Delete</a></td>
281 </tbody></table>[% ELSE %]
282 <div class="dialog message">There are no authorized values defined for [% category %]</div>
285 [% IF ( isprevpage ) %]
286 <form class="inline" action="[% script_name %]" method="post">
287 <input type="hidden" name="offset" value="[% prevpage %]" /><input type="hidden" name="searchfield" value="[% searchfield %]" />
288 <input type="submit" value="<< Previous" /></form>
296 [% INCLUDE 'admin-menu.inc' %]
299 [% INCLUDE 'intranet-bottom.inc' %]