3 [% USE AuthorisedValues %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Administration › Authority MARC framework [% IF ( add_form ) %][% IF ( use_heading_flags_p ) %]
7 [% IF ( heading_modify_tag_p ) %]› [% IF ( authtypecode ) %][% authtypecode | html %] Framework[% ELSE %]Default framework[% END %] › Modify tag[% END %]
8 [% IF ( heading_add_tag_p ) %]› [% IF ( authtypecode ) %][% authtypecode | html %] Framework[% ELSE %]Default framework[% END %] › New tag[% END %]
9 [% ELSE %]› [% action | html %][% END %][% END %][% IF ( delete_confirm ) %]› [% IF ( authtypecode ) %][% authtypecode | html %] Framework[% ELSE %]Default framework[% END %] › Confirm deletion[% END %][% IF ( delete_confirmed ) %]› [% IF ( authtypecode ) %][% authtypecode | html %] Framework[% ELSE %]Default framework[% END %] › Data deleted[% END %]</title>
10 [% INCLUDE 'doc-head-close.inc' %]
12 [% Asset.css("css/datatables.css") | $raw %]
15 <body id="admin_auth_tag_structure" class="admin">
16 [% INCLUDE 'header.inc' %]
17 [% INCLUDE 'prefs-admin-search.inc' %]
19 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
20 <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a> ›
22 [% IF ( use_heading_flags_p ) %]
23 [% IF ( heading_modify_tag_p ) %]
24 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | html %]">[% authtypecode | html %] Framework</a>
25 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
26 [% END %] › Modify tag
28 [% IF ( heading_add_tag_p ) %]
29 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | html %]">[% authtypecode | html %] framework</a>
30 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
31 [% END %] › New tag
34 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | html %]">[% authtypecode | html %] Framework</a>
35 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
36 [% END %] › [% action | html %]
39 [% IF ( delete_confirm ) %]
40 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | html %]">[% authtypecode | html %] framework</a>
41 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
42 [% END %] › Confirm deletion
44 [% IF ( delete_confirmed ) %]
45 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | html %]">[% authtypecode | html %] framework</a>
46 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
47 [% END %] › Data deleted
49 [% IF ( authtypecode ) %][% authtypecode | html %] Framework
50 [% ELSE %]Default framework
57 <div id="doc3" class="yui-t2">
63 <h1>Authority MARC framework for [% IF ( authtypecode ) %][% authtypecode | html %][% ELSE %]default framework[% END %]</h1>
69 [% IF ( heading_modify_tag_p ) %]Modify tag[% END %]
70 [% IF ( heading_add_tag_p ) %]New tag[% END %]
72 <form action="[% script_name | html %]" name="Aform" method="post" class="validated">
73 <input type="hidden" name="op" value="add_validate" />
74 [% IF ( heading_modify_tag_p ) %]<input type="hidden" name="modif" value="1" />[% END %]
75 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
76 <fieldset class="rows">
78 [% IF ( heading_modify_tag_p ) %]
80 <span class="label">Tag: </span>
81 <input type="hidden" name="tagfield" value="[% searchfield | html %]" />
82 [% searchfield | html %]
86 <label for="tagfield" class="required">Tag: </label><input type="text" id="tagfield" name="tagfield" size="5" maxlength="3" required="required" class="required" />
87 <span class="required">Required</span>
91 <li><label for="liblibrarian">Text for librarians: </label><input type="text" name="liblibrarian" id="liblibrarian" value="[% liblibrarian | html %]" size="40" maxlength="100" /></li>
92 <li><label for="libopac">Text for opac: </label><input type="text" name="libopac" id="libopac" value="[% libopac | html %]" size="40" maxlength="100" /></li>
93 <li><label for="repeatable">Repeatable: </label>
94 [% IF ( repeatable ) %]
95 <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
97 <input type="checkbox" name="repeatable" id="repeatable" value="1" />
100 <li><label for="mandatory">Mandatory: </label>
101 [% IF ( mandatory ) %]
102 <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
104 <input type="checkbox" name="mandatory" id="mandatory" value="1" />
107 <li><label for="authorised_value">Authorized value: </label>
108 <select name="authorised_value" id="authorised_value" size="1">
109 <option value=""></option>
110 [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value ) %]
112 (if you select a value here, the indicators will be limited to the authorized value list)
116 <fieldset class="action">
117 <input type="submit" value="Submit" />
118 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | html %]" class="cancel">Cancel</a>
124 [% IF ( delete_confirm ) %]
125 <div class="dialog alert">
126 <h3>Confirm deletion</h3>
127 <form action="[% script_name | html %]" method="post">
129 <tr><th scope="row">Tag: </th><td>[% searchfield | html %] [% liblibrarian | html %]</td></tr>
131 <input type="hidden" name="op" value="delete_confirmed" />
132 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
133 <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
134 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
136 <form action="[% script_name | html %]" method="get">
137 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
142 [% IF ( delete_confirmed ) %]
144 <div class="dialog message"> <h3>Data deleted</h3>
145 <form action="[% script_name | html %]" method="post">
146 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
147 <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
148 <input type="submit" value="OK" class="submit" />
151 [% IF ( authtype_create ) %]
153 <form action="[% script_name | html %]" method="post">
154 <input type="hidden" name="op" value="authtype_create_confirm" />
155 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
156 Create authority framework for [% authtypecode | html %] using
157 <select name="existingauthtypecode">
158 [% FOREACH existingauthtypeloo IN existingauthtypeloop %]
159 [% IF existingauthtypeloo.value == "" %]
160 <option value="" selected="selected">[% existingauthtypeloo.authtypetext | html %]</option>
162 <option value="[% existingauthtypeloo.value | html %]">[% existingauthtypeloo.authtypetext | html %]</option>
166 <input type="submit" value="OK" class="submit" />
173 <div id="toolbar" class="btn-toolbar">
174 <div class="btn-group"><a class="btn btn-default btn-sm" id="newtag" href="/cgi-bin/koha/admin/auth_tag_structure.pl?op=add_form&authtypecode=[% authtypecode | html %]"><i class="fa fa-plus"></i> New tag</a></div>
177 <h2>Select an authority framework</h2>
178 <form action="[% script_name | html %]" method="post">
179 <select name="authtypecode">
180 [% FOREACH authority_type IN authority_types%]
181 [% IF authority_type.authtypecode == authtypecode%]
182 <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
184 <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
188 <input type="text" name="searchfield" value="[% searchfield | html %]" />
189 <input type="submit" value="OK" class="submit" />
191 <div id="pagertable_authtagstructure">
193 <table id="table_authtagstructure">
200 <th>Authorized<br />value</th>
205 [% FOREACH loo IN loop %]
207 <td><b>[% loo.tagfield | html %]</b></td>
208 <td>[% loo.liblibrarian | html %]</td>
209 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
210 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
211 <td>[% loo.authorised_value | html %]</td>
213 <div class="dropdown">
214 <a class="btn btn-default btn-xs dropdown-toggle" id="authtagactions[% loo.tagfield | html %]" role="button" data-toggle="dropdown" href="#">
215 Actions <b class="caret"></b></a>
216 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtagactions[% loo.tagfield | html %]">
217 <li><a href="[% loo.subfield_link | html %]"><i class="fa fa-eye"></i> Subfields</a></li>
218 <li><a href="[% loo.edit | html %]"><i class="fa fa-pencil"></i> Edit</a></li>
219 <li><a href="[% loo.delete | html %]"><i class="fa fa-trash"></i> Delete</a></li>
233 [% INCLUDE 'admin-menu.inc' %]
237 [% MACRO jsinclude BLOCK %]
238 [% INCLUDE 'datatables.inc' %]
239 [% Asset.js("js/admin-menu.js") | $raw %]
240 <script type="text/javascript">
241 $(document).ready(function() {
242 $("#table_authtagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
244 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
246 "sPaginationType": "four_button"
251 [% INCLUDE 'intranet-bottom.inc' %]