4 [% INCLUDE 'doc-head-open.inc' %]
6 [% IF op == 'add_form' %]
7 [% IF ( action_modify ) %]Modify authorized value › [% END %]
8 [% IF ( action_add_value ) %]New authorized value › [% END %]
9 [% IF ( action_add_category ) %]New category › [% END %]
10 [% IF ( action_modify || action_add_value ) %]
11 Authorized values for category [% category_name | html %] ›
14 Authorized values › Administration › Koha
16 [% INCLUDE 'doc-head-close.inc' %]
20 fieldset.rows div.toptabs li {
35 .authval-icons label {
43 <body id="admin_authorised_values" class="admin">
44 [% WRAPPER 'header.inc' %]
45 [% INCLUDE 'prefs-admin-search.inc' %]
48 [% WRAPPER 'sub-header.inc' %]
49 [% WRAPPER breadcrumbs %]
50 [% WRAPPER breadcrumb_item %]
51 <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
54 [% IF ( op == 'add_form' || loop || searchfield ) %]
55 [% WRAPPER breadcrumb_item %]
56 <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a>
59 [% WRAPPER breadcrumb_item bc_active= 1 %]
60 <span>Authorized values</span>
64 [% IF op == 'add_form' %]
65 [% IF ( action_modify || action_add_value ) %]
66 [% WRAPPER breadcrumb_item %]
67 <a href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=[% category_name | uri %]">Authorized values for category [% category_name | html %]</a>
69 [% IF ( action_modify ) %]
70 [% WRAPPER breadcrumb_item bc_active= 1 %]
71 <span>Modify authorized value</span>
74 [% IF ( action_add_value ) %]
75 [% WRAPPER breadcrumb_item bc_active= 1 %]
76 <span>New authorized value</span>
80 [% IF ( action_add_category ) %]
81 [% WRAPPER breadcrumb_item bc_active= 1 %]
82 <span>New category</span>
86 [% ELSIF ( loop || searchfield ) %]
87 [% WRAPPER breadcrumb_item bc_active= 1 %]
88 <span>Authorized values for category [% category.category_name | html %]</span>
90 [% END # /IF op == 'add_form' %]
91 [% END #/ WRAPPER breadcrumbs %]
92 [% END #/ WRAPPER sub-header.inc %]
94 <div class="main container-fluid">
96 <div class="col-sm-10 col-sm-push-2">
99 [% IF op == 'add_form' %]
101 [% IF ( action_modify ) %]<span>Modify authorized value</span>[% END %]
102 [% IF ( action_add_value ) %]<span>New authorized value</span>[% END %]
103 [% IF ( action_add_category ) %]<span>New category</span>[% END %]
106 [% IF ( action_modify ) %]
108 <i class="fa fa-exclamation"></i> <strong>NOTE:</strong> If you change an authorized value code, existing records using it won't be updated. Changes to value descriptions will show immediately.
112 <form action="/cgi-bin/koha/admin/authorised_values.pl" name="Aform" method="post" class="validated">
113 <fieldset class="rows">
114 [% IF action_add_category %]
117 <label for="category" class="required">Category: </label>
118 <input type="text" name="category" id="category" size="32" maxlength="32" class="focus required" />
119 <span class="required">Required</span>
120 <input type="hidden" name="op" value="add_category" />
126 <span class="label">Category</span>
127 <input type="hidden" name="op" value="add" />
128 <input type="hidden" name="category" value="[% category_name | html %]" /> [% category_name | html %]
131 <label for="authorised_value">Authorized value: </label>
132 [% IF ( action_modify ) %]
133 <input type="hidden" id="id" name="id" value="[% av.id | html %]" />
135 <input type="text" id="authorised_value" name="authorised_value" value="[% av.authorised_value | html %]" maxlength="80" class="focus" />
138 <label for="lib">Description: </label>
139 <input type="text" name="lib" id="lib" value="[% av.lib | html %]" maxlength="200" />
142 <label for="lib_opac">Description (OPAC): </label>
143 <input type="text" name="lib_opac" id="lib_opac" value="[% av.lib_opac | html %]" maxlength="200" />
145 <li><label for="branches">Library limitations: </label>
146 <select id="branches" name="branches" multiple size="10">
147 <option value="">All libraries</option>
148 [% FOREACH branch IN branches_loop %]
149 [% IF ( branch.selected ) %]
150 <option selected="selected" value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
152 <option value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
156 <div class="hint">Select 'All libraries' if this authorized value must be displayed all the time. Otherwise select libraries you want to associate with this value.</div>
160 [% INCLUDE 'admin-icon-selection.inc' context = "authval" %]
162 [% END # /IF action_add_category %]
165 <fieldset class="action">
166 <input type="hidden" name="id" value="[% av.id | html %]" />
167 <input type="submit" class="btn btn-primary" value="Save" />
168 <a class="cancel" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=[% category_name | url %]">Cancel</a>
171 [% END # /IF op == 'add_form' %]
173 [% IF op == 'list' %]
174 <div id="toolbar" class="btn-toolbar">
175 <a id="addcat" class="btn btn-default" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form"><i class="fa fa-plus"> </i> New category</a>
176 [% IF ( searchfield ) %]
177 <a id="addauth" class="btn btn-default" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&category=[% category.category_name | url %]"><i class="fa fa-plus"> </i> New authorized value for [% category.category_name | html %]</a>
181 [% IF ( searchfield ) %]
182 <h1>Authorized values for category [% category.category_name | html %]</h1>
183 [% PROCESS category_descriptions code_category = category.category_name %]
185 <h1>Authorized values</h1>
188 [% IF ( searchfield ) %]
190 <i class="fa fa-exclamation"></i> <strong>NOTE:</strong> If you change an authorized value code, existing records using it won't be updated. Changes to value descriptions will show immediately.
194 [% FOR m IN messages %]
195 <div class="dialog [% m.type | html %]">
197 [% CASE 'error_on_update' %]
198 <span>An error occurred when updating this authorized value. Perhaps the value already exists.</span>
199 [% CASE 'error_on_insert' %]
200 <span>An error occurred when inserting this authorized value. Perhaps the value or the category already exists.</span>
201 [% CASE 'error_on_insert_cat' %]
202 <span>An error occurred when inserting this authorized value category. Perhaps the category name already exists.</span>
203 [% CASE 'error_on_delete' %]
204 <span>An error occurred when deleting this authorized value. Check the logs.</span>
205 [% CASE 'error_on_delete_category' %]
206 <span>An error occurred when deleting this authorized value category. Check the logs.</span>
207 [% CASE 'success_on_update' %]
208 <span>Authorized value updated successfully.</span>
209 [% CASE 'success_on_insert' %]
210 <span>Authorized value added successfully.</span>
211 [% CASE 'success_on_insert_cat' %]
212 <span>Authorized value category added successfully.</span>
213 [% CASE 'success_on_delete' %]
214 <span>Authorized value deleted successfully.</span>
215 [% CASE 'success_on_delete_category' %]
216 <span>Authorized value category deleted successfully.</span>
217 [% CASE 'cat_already_exists' %]
218 <span>This authorized value category already exists.</span>
219 [% CASE 'invalid_category_name' %]
220 <span>The authorized value category 'branches', 'itemtypes' and 'cn_source' are used internally by Koha and are not valid.</span>
222 <span>[% m.code | html %]</span>
225 [% END # /FOR m IN messages %]
227 <div class="page-section">
228 [% IF ( searchfield ) %]
230 <form action="/cgi-bin/koha/admin/authorised_values.pl" method="get" id="category">
232 <label for="category_search">Show category: </label>
233 <select name="searchfield" id="category_search">
234 [% FOR c IN category_names %]
235 [% IF c == searchfield %]
236 <option value="[% c | html %]" selected="selected">[% c | html %]</option>
238 <option value="[% c | html %]">[% c | html %]</option>
243 </form> <!-- /#category -->
246 <table id="categoriest" class="authorized_values_table">
249 <th>Authorized value</th>
251 <th>Description (OPAC)</th>
253 <th>Library limitations</th>
254 <th class="noExport NoSort">Actions</th>
258 [% FOREACH loo IN loop %]
260 <td>[% loo.authorised_value | html %]</td>
261 <td>[% loo.lib | html %]</td>
262 <td>[% loo.lib_opac | html %]</td>
264 [% IF ( loo.image ) %]<img src="[% loo.image | url %]" alt=""/>[% ELSE %] [% END %]</td>
266 [% IF loo.branches.size > 0 %]
267 [% branches_str = "" %]
268 [% FOREACH branch IN loo.branches %]
269 [%- IF loop.first -%]
270 [% branches_str = branch.branchname _ " (" _ branch.branchcode _ ")" %]
272 [% branches_str = branches_str _ "\n" _ branch.branchname _ " (" _ branch.branchcode _ ")" %]
275 <span class="library_limitation" title="[% branches_str | html %]">
276 [% IF loo.branches.size > 1 %]
277 <span>[% loo.branches.size | html %] library limitations</span>
279 <span>[% loo.branches.size | html %] library limitation</span>
282 <span>No limitation</span>
283 [% END # /IF loo.branches.size > 0 %]
285 <td class="actions"><a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&id=[% loo.id | uri %]" class="btn btn-default btn-xs"><i class="fa fa-pencil-alt"></i> Edit</a>
286 <a class="delete btn btn-default btn-xs" href="/cgi-bin/koha/admin/authorised_values.pl?op=delete&searchfield=[% searchfield | uri %]&id=[% loo.id | uri %]"><i class="fa fa-trash-can"></i> Delete</a></td>
288 [% END # /FOREACH loop %]
290 </table> <!-- /#categoriest -->
292 <div class="dialog message">
293 <p>There are no authorized values defined for [% category.category_name | html %]</p>
294 <form action="/cgi-bin/koha/admin/authorised_values.pl" method="get">
295 <input type="hidden" name="op" value="add_form" />
296 <input type="hidden" name="category" value="[% category.category_name | html %]" />
297 <button type="submit"><i class="fa fa-plus"></i> Add a new authorized value</button>
299 [% UNLESS category.is_system %]
300 <form id="delete_category" action="/cgi-bin/koha/admin/authorised_values.pl" method="post">
301 <input type="hidden" name="op" value="delete_category" />
302 <input type="hidden" name="category_name" value="[% category.category_name | html %]" />
303 <button type="submit"><i class="fa fa-plus"></i> Delete category '[% category.category_name | html %]' </button>
309 [% ELSE # category was selected %]
310 <table id="categoriest" class="authorized_values_table">
315 <th class="noExport"> </th>
319 [% FOR c IN category_names %]
321 <td><a href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=[% c | uri %]">[% c | html %]</a></td>
323 [% PROCESS category_descriptions code_category = c %]
326 <a id="addauth" class="btn btn-default btn-xs" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&category=[% c | uri %]"><i class="fa fa-plus"> </i> Add</a>
331 </table> <!-- /#categoriest -->
332 [% END # /IF ( searchfield )%]
335 [% END # /IF op == 'list' %]
338 </div> <!-- /.col-sm-10.col-sm-push-2 -->
340 <div class="col-sm-2 col-sm-pull-10">
342 [% INCLUDE 'admin-menu.inc' %]
344 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
345 </div> <!-- /.row -->
347 [% MACRO jsinclude BLOCK %]
348 [% Asset.js("js/admin-menu.js") | $raw %]
349 [% INCLUDE 'datatables.inc' %]
350 [% INCLUDE 'columns_settings.inc' %]
352 $(document).ready(function() {
354 KohaTable("categoriest", {
355 "aaSorting": [[ 0, "asc" ]],
356 "sPaginationType": "full"
359 if ( $("#branches option:selected").length < 1 ) {
360 $("#branches option:first").attr("selected", "selected");
363 $("a.delete").click(function(){
364 return confirm(_("Are you sure you want to delete this authorized value?"));
366 $('#category_search').change(function() {
367 $('#category').submit();
369 $(".library_limitation").tooltip();
371 $("#delete_category").on('submit', function(){
372 return confirm(_("Are you sure you want to delete this authorized value category?"));
375 if( $("#icons .tab-pane.active").length < 1 ){
376 $("#icons a:first").tab("show");
382 [% BLOCK category_descriptions %]
383 [% SWITCH code_category %]
385 <p>Used for acquisitions statistical purposes</p>
387 <p>Used for acquisitions statistical purposes</p>
388 [% CASE 'BOR_NOTES' %]
389 <p>Values for custom patron messages that appear on the circulation screen and the OPAC. The value in the description field should be the message text and is limited to 200 characters</p>
390 [% CASE 'branches' %]
393 <p>Values that can be entered to fill in the patron’s sort 1 field, that can be used for statistical purposes</p>
395 <p>Values that can be entered to fill in the patron’s sort 2 field, that can be used for statistical purposes</p>
399 <p>Collections (appear when cataloging and working with items)</p>
400 [% CASE 'cn_source' %]
402 [% CASE 'CONTROL_NUM_SEQUENCE' %]
405 <p>Used in UNIMARC 102 $a</p>
407 <p>Descriptions for items marked as damaged (appears when cataloging and working with items)</p>
408 [% CASE 'DEPARTMENT' %]
409 <p>Departments are required by and will be used in the Course Reserves module</p>
411 <p>Used in French UNIMARC installations in field 995 $o to identify item status. Similar to NOT_LOAN</p>
412 [% CASE 'ERM_AGREEMENT_CLOSURE_REASON' %]
413 <p>Close reasons for agreements (e-resource management module)</p>
414 [% CASE 'ERM_AGREEMENT_LICENSE_LOCATION' %]
415 <p>Locations of the licenses' agreements (e-resource management module)</p>
416 [% CASE 'ERM_AGREEMENT_LICENSE_STATUS' %]
417 <p>Statuses of the licenses' agreements (e-resource management module)</p>
418 [% CASE 'ERM_AGREEMENT_RENEWAL_PRIORITY' %]
419 <p>Renewal priorities of agreements (e-resource management module)</p>
420 [% CASE 'ERM_AGREEMENT_STATUS' %]
421 <p>Statuses of agreements (e-resource management module)</p>
422 [% CASE 'ERM_USER_ROLES' %]
423 <p>Roles for users (e-resource management module)</p>
424 [% CASE 'ERM_LICENSE_STATUS' %]
425 <p>Statuses of the licenses (e-resource management module)</p>
426 [% CASE 'ERM_LICENSE_TYPE' %]
427 <p>Types of the licenses (e-resource management module)</p>
428 [% CASE 'ERM_PACKAGE_CONTENT_TYPE' %]
429 <p>Content type of the packages (e-resource management module)</p>
430 [% CASE 'ERM_PACKAGE_TYPE' %]
431 <p>Types of the packages (e-resource management module)</p>
432 [% CASE 'ERM_TITLE_PUBLICATION_TYPE' %]
433 <p>Publication types of the titles (e-resource management module)</p>
434 [% CASE 'HINGS_AS' %]
435 <p>General holdings: acquisition status designator :: This data element specifies acquisition status for the unit at the time of the holdings report.</p>
437 <p>General holdings: completeness designator</p>
438 [% CASE 'HINGS_PF' %]
439 <p>Physical form designators</p>
440 [% CASE 'HINGS_RD' %]
441 <p>General holdings: retention designator :: This data element specifies the retention policy for the unit at the time of the holdings report.</p>
442 [% CASE 'HINGS_UT' %]
443 <p>General holdings: type of unit designator</p>
444 [% CASE 'HOLD_CANCELLATION' %]
445 <p>Reasons why a hold might have been cancelled</p>
446 [% CASE 'ILL_STATUS_ALIAS' %]
447 <p>ILL request status aliases used by the interlibrary loans module</p>
448 [% CASE 'AR_CANCELLATION' %]
449 <p>Reasons why an article request might have been cancelled</p>
450 [% CASE 'HSBND_FREQ' %]
451 <p>Frequencies used by the housebound module. They are displayed on the housebound tab in the patron account in staff.</p>
452 [% CASE 'ITEMTYPECAT' %]
453 <p>Allows multiple Item types to be searched in a category. Categories can be entered into the Authorized value ITEMTYPECAT. To combine Item types to this category, enter this Search category to any Item types</p>
454 [% CASE 'itemtypes' %]
457 <p>ISO 639-2 standard language codes</p>
459 <p>Shelving location (usually appears when adding or editing an item). LOC maps to items.location in the Koha database.</p>
461 <p>Descriptions for the items marked as lost (appears when adding or editing an item)</p>
462 [% CASE 'NOT_LOAN' %]
463 <p>Reasons why a title is not for loan</p>
464 [% CASE 'OPAC_SUG' %]
465 <p>A list of reasons displayed in the suggestion form on the OPAC.</p>
466 [% CASE 'ORDER_CANCELLATION_REASON' %]
467 <p>Reasons why an order might have been cancelled</p>
468 [% CASE 'PAYMENT_TYPE' %]
469 <p>Populates a dropdown list of custom payment types when paying fines</p>
471 <p>Function codes (author, editor, collaborator, etc.) used in UNIMARC 7XX $4 (French)</p>
472 [% CASE 'RELTERMS' %]
473 <p>French terms of relations</p>
474 [% CASE 'REPORT_GROUP' %]
475 <p>A way to sort and filter your reports, the default values in this category include the Koha modules (Accounts, Acquitisions, Catalog, Circulation, Patrons)</p>
476 [% CASE 'REPORT_SUBGROUP' %]
477 <p>Can be used to further sort and filter your reports. This category is empty by default. Values here need to include the authorized value code from REPORT_GROUP in the Description (OPAC) field to link the subgroup to the appropriate group.</p>
478 [% CASE 'RESTRICTED' %]
479 <p>Restricted status of an item</p>
480 [% CASE 'ROADTYPE' %]
481 <p>Road types to be used in patron addresses</p>
482 [% CASE 'SIP_MEDIA_TYPE' %]
483 <p>Used when creating or editing an item type to assign a SIP specific media type for devices like lockers and sorters.</p>
485 <p>Shelving control number</p>
487 <p>List of patron suggestion reject or accept reasons (appears when managing suggestions)</p>
488 [% CASE 'SUGGEST_FORMAT' %]
489 <p>List of Item types to display in a drop down menu on the Purchase suggestion form on the OPAC. When creating the authorized values for SUGGEST_FORMAT, enter a description into this form so it is visible on the OPAC to patrons.</p>
490 [% CASE 'SUGGEST_STATUS' %]
491 <p>A list of additional custom status values for suggestions that can be used in addition to the default values.</p>
493 <p>Terms to be used in Course Reserves module. Enter terms that will show in the drop down menu when setting up a Course reserve. (For example: Spring, Summer, Winter, Fall).</p>
495 <p>Categories to be assigned to file uploads. Without a category an upload is considered temporary and may be removed during automated cleanup.</p>
496 [% CASE 'VENDOR_TYPE' %]
497 <p>Values that can be entered to fill in the 'Vendor type' field in the acquisitions module, that can be used for statistical purposes</p>
498 [% CASE 'VENDOR_INTERFACE_TYPE' %]
499 <p>Values that can be entered to fill in the 'Vendor interface type' field in the acquisitions module</p>
500 [% CASE 'WITHDRAWN' %]
501 <p>Description of a withdrawn item (appears when adding or editing an item)</p>
503 <p>A generic authorized value field that can be used anywhere you need a simple yes/no pull down menu.</p>
507 [% INCLUDE 'intranet-bottom.inc' %]