3 [% USE AuthorisedValues %]
5 [% INCLUDE 'doc-head-open.inc' %]
8 [% IF ( use_heading_flags_p ) %]
9 [% IF ( heading_modify_tag_p ) %]
10 Modify tag › [% IF ( authtypecode ) %]
11 [% authtypecode | html %] Framework
14 [% END %] › [% END %]
15 [% IF ( heading_add_tag_p ) %]
16 New tag › [% IF ( authtypecode ) %]
17 [% authtypecode | html %] Framework
20 [% END %] › [% END %]
22 [% action | html %] › [% END %]
24 [% IF ( delete_confirm ) %]
25 Confirm deletion › [% IF ( authtypecode ) %]
26 [% authtypecode | html %] Framework
27 [% ELSE %]Default framework
28 [% END %] › [% END %]
29 [% IF ( delete_confirmed ) %]
30 Data deleted › [% IF ( authtypecode ) %]
31 [% authtypecode | html %] Framework
32 [% ELSE %]Default framework
33 [% END %] › [% END %]
34 Authority MARC framework › Administration › Koha
36 [% INCLUDE 'doc-head-close.inc' %]
40 <body id="admin_auth_tag_structure" class="admin">
41 [% INCLUDE 'header.inc' %]
42 [% INCLUDE 'prefs-admin-search.inc' %]
44 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
47 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
50 <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
53 <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a>
57 [% IF ( use_heading_flags_p ) %]
59 [% IF ( heading_modify_tag_p ) %]
60 [% IF ( authtypecode ) %]
62 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] Framework</a>
66 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
70 <a href="#" aria-current="page">
76 [% IF ( heading_add_tag_p ) %]
77 [% IF ( authtypecode ) %]
79 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] framework</a>
83 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
87 <a href="#" aria-current="page">
94 [% IF ( authtypecode ) %]
96 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] Framework</a>
100 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
104 <a href="#" aria-current="page">
111 [% IF ( delete_confirm ) %]
112 [% IF ( authtypecode ) %]
114 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] framework</a>
118 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
122 <a href="#" aria-current="page">
127 [% IF ( delete_confirmed ) %]
128 [% IF ( authtypecode ) %]
130 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] framework</a>
134 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
138 <a href="#" aria-current="page">
143 [% IF ( authtypecode ) %]
145 <a href="#" aria-current="page">
146 [% authtypecode | html %] Framework
151 <a href="#" aria-current="page">
163 <div class="main container-fluid">
165 <div class="col-sm-10 col-sm-push-2">
168 <h1>Authority MARC framework for [% IF ( authtypecode ) %][% authtypecode | html %][% ELSE %]default framework[% END %]</h1>
171 [% IF ( add_form ) %]
174 [% IF ( heading_modify_tag_p ) %]Modify tag[% END %]
175 [% IF ( heading_add_tag_p ) %]New tag[% END %]
177 <form action="[% script_name | html %]" name="Aform" method="post" class="validated">
178 <input type="hidden" name="op" value="add_validate" />
179 [% IF ( heading_modify_tag_p ) %]<input type="hidden" name="modif" value="1" />[% END %]
180 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
181 <fieldset class="rows">
183 [% IF ( heading_modify_tag_p ) %]
185 <span class="label">Tag: </span>
186 <input type="hidden" name="tagfield" value="[% searchfield | html %]" />
187 [% searchfield | html %]
191 <label for="tagfield" class="required">Tag: </label><input type="text" id="tagfield" name="tagfield" size="5" maxlength="3" required="required" class="required" />
192 <span class="required">Required</span>
196 <li><label for="liblibrarian">Text for librarians: </label><input type="text" name="liblibrarian" id="liblibrarian" value="[% liblibrarian | html %]" size="40" maxlength="100" /></li>
197 <li><label for="libopac">Text for opac: </label><input type="text" name="libopac" id="libopac" value="[% libopac | html %]" size="40" maxlength="100" /></li>
198 <li><label for="repeatable">Repeatable: </label>
199 [% IF ( repeatable ) %]
200 <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
202 <input type="checkbox" name="repeatable" id="repeatable" value="1" />
205 <li><label for="mandatory">Mandatory: </label>
206 [% IF ( mandatory ) %]
207 <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
209 <input type="checkbox" name="mandatory" id="mandatory" value="1" />
212 <li><label for="authorised_value">Authorized value: </label>
213 <select name="authorised_value" id="authorised_value">
214 <option value=""></option>
215 [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value ) %]
217 (if you select a value here, the indicators will be limited to the authorized value list)
221 <fieldset class="action">
222 <input type="submit" value="Submit" />
223 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]" class="cancel">Cancel</a>
229 [% IF ( delete_confirm ) %]
230 <div class="dialog alert">
231 <h3>Confirm deletion</h3>
232 <form action="[% script_name | html %]" method="post">
234 <tr><th scope="row">Tag: </th><td>[% searchfield | html %] [% liblibrarian | html %]</td></tr>
236 <input type="hidden" name="op" value="delete_confirmed" />
237 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
238 <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
239 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
241 <form action="[% script_name | html %]" method="get">
242 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
247 [% IF ( delete_confirmed ) %]
249 <div class="dialog message"> <h3>Data deleted</h3>
250 <form action="[% script_name | html %]" method="post">
251 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
252 <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
253 <input type="submit" value="OK" class="submit" />
256 [% IF ( authtype_create ) %]
258 <form action="[% script_name | html %]" method="post">
259 <input type="hidden" name="op" value="authtype_create_confirm" />
260 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
261 Create authority framework for [% authtypecode | html %] using
262 <select name="existingauthtypecode">
263 [% FOREACH existingauthtypeloo IN existingauthtypeloop %]
264 [% IF existingauthtypeloo.value == "" %]
265 <option value="" selected="selected">[% existingauthtypeloo.authtypetext | html %]</option>
267 <option value="[% existingauthtypeloo.value | html %]">[% existingauthtypeloo.authtypetext | html %]</option>
271 <input type="submit" value="OK" class="submit" />
278 <div id="toolbar" class="btn-toolbar">
279 <div class="btn-group"><a class="btn btn-default" id="newtag" href="/cgi-bin/koha/admin/auth_tag_structure.pl?op=add_form&authtypecode=[% authtypecode | uri %]"><i class="fa fa-plus"></i> New tag</a></div>
282 <h2>Select an authority framework</h2>
283 <form action="[% script_name | html %]" method="post">
284 <select name="authtypecode">
285 [% FOREACH authority_type IN authority_types%]
286 [% IF authority_type.authtypecode == authtypecode%]
287 <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
289 <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
293 <input type="text" name="searchfield" value="[% searchfield | html %]" />
294 <input type="submit" value="OK" class="submit" />
296 <div id="pagertable_authtagstructure">
298 <table id="table_authtagstructure">
305 <th>Authorized<br />value</th>
310 [% FOREACH loo IN loop %]
312 <td><strong>[% loo.tagfield | html %]</strong></td>
313 <td>[% loo.liblibrarian | html %]</td>
314 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
315 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
316 <td>[% loo.authorised_value | html %]</td>
318 <div class="btn-group dropup">
319 <a class="btn btn-default btn-xs dropdown-toggle" id="authtagactions[% loo.tagfield | html %]" role="button" data-toggle="dropdown" href="#">
320 Actions <b class="caret"></b></a>
321 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtagactions[% loo.tagfield | html %]">
322 <li><a href="auth_subfields_structure.pl?tagfield=[% loo.tagfield | uri %]&authtypecode=[% authtypecode | uri %]"><i class="fa fa-eye"></i> Subfields</a></li>
323 <li><a href="?op=add_form&searchfield=[% loo.tagfield | uri %]&authtypecode=[% authtypecode | uri %]"><i class="fa fa-pencil"></i> Edit</a></li>
324 <li><a href="?op=delete_confirm&searchfield=[% loo.tagfield | uri %]&authtypecode=[% authtypecode | uri %]"><i class="fa fa-trash"></i> Delete</a></li>
336 </div> <!-- /.col-sm-10.col-sm-push-2 -->
338 <div class="col-sm-2 col-sm-pull-10">
340 [% INCLUDE 'admin-menu.inc' %]
342 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
343 </div> <!-- /.row -->
345 [% MACRO jsinclude BLOCK %]
346 [% INCLUDE 'datatables.inc' %]
347 [% Asset.js("js/admin-menu.js") | $raw %]
349 $(document).ready(function() {
350 $("#table_authtagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
352 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
354 "sPaginationType": "full"
359 [% INCLUDE 'intranet-bottom.inc' %]