2 [% USE AuthorisedValues %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Administration › Item search fields</title>
5 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="admin_itemssearchfields" class="admin">
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'prefs-admin-search.inc' %]
11 <div id="breadcrumbs">
12 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
13 <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
17 <div id="doc3" class="yui-t2">
22 <div id="toolbar" class="btn-toolbar">
23 <a class="btn btn-default btn-sm" id="new_search_field" href="/cgi-bin/koha/admin/items_search_fields.pl"><i class="fa fa-plus"></i> New search field</a>
27 <div class="dialog message">
28 Field successfully added: [% field_added.label |html %]
30 [% ELSIF field_not_added %]
31 <div class="dialog alert">
32 <p>Failed to add field. Please make sure the field name doesn't already exist.</p>
33 <p>Check logs for more details.</p>
35 [% ELSIF field_deleted %]
36 <div class="dialog message">
37 Field successfully deleted.
39 [% ELSIF field_not_deleted %]
40 <div class="dialog alert">
41 <p>Failed to delete field.</p>
42 <p>Check logs for more details.</p>
44 [% ELSIF field_updated %]
45 <div class="dialog message">
46 Field successfully updated: [% field_updated.label %]
48 [% ELSIF field_not_updated %]
49 <div class="dialog alert">
50 <p>Failed to update field.</p>
51 <p>Check logs for more details.</p>
55 <div id="search_fields_list">
56 <h2>Item search fields</h2>
58 <table id="search_fields_table">
64 <th>MARC subfield</th>
65 <th>Authorised values category</th>
70 [% FOREACH field IN fields %]
72 <td>[% field.name |html %]</td>
73 <td>[% field.label |html %]</td>
74 <td>[% field.tagfield %]</td>
75 <td>[% field.tagsubfield %]</td>
76 <td>[% field.authorised_values_category %]</td>
78 <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/items_search_field.pl?name=[% field.name |html %]" title="Edit [% field.name |html %] field"><i class="fa fa-pencil"></i> Edit</a>
79 <a class="field-delete btn btn-default btn-xs" href="/cgi-bin/koha/admin/items_search_fields.pl?op=del&name=[% field.name |html %]"><i class="fa fa-trash"></i> Delete</a>
87 <div class="dialog message">
88 There are no item search fields defined.
92 <form id="add_field_form" action="/cgi-bin/koha/admin/items_search_fields.pl" method="POST" class="validated">
93 <fieldset class="rows">
94 <legend>Add a new field</legend>
95 [% INCLUDE 'admin-items-search-field-form.inc' field=undef %]
96 <input type="hidden" name="op" value="add" />
98 <fieldset class="action">
99 <input type="submit" value="Submit" />
100 <a href="#" class="cancel">Cancel</a>
107 [% INCLUDE 'admin-menu.inc' %]
111 [% MACRO jsinclude BLOCK %]
112 <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
113 <script type="text/javascript">
114 var MSG_ITEM_SEARCH_DELETE_CONFIRM = _("Are you sure you want to delete this field?");
116 <script type="text/javascript" src="[% interface %]/[% theme %]/js/item_search_fields.js"></script>
119 [% INCLUDE 'intranet-bottom.inc' %]