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 [% WRAPPER 'header.inc' %]
42 [% INCLUDE 'prefs-admin-search.inc' %]
45 [% WRAPPER 'sub-header.inc' %]
46 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
49 <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
52 <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
55 <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a>
59 [% IF ( use_heading_flags_p ) %]
61 [% IF ( heading_modify_tag_p ) %]
62 [% IF ( authtypecode ) %]
64 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] Framework</a>
68 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
72 <a href="#" aria-current="page">
78 [% IF ( heading_add_tag_p ) %]
79 [% IF ( authtypecode ) %]
81 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] framework</a>
85 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
89 <a href="#" aria-current="page">
96 [% IF ( authtypecode ) %]
98 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] Framework</a>
102 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
106 <a href="#" aria-current="page">
113 [% IF ( delete_confirm ) %]
114 [% IF ( authtypecode ) %]
116 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] framework</a>
120 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
124 <a href="#" aria-current="page">
129 [% IF ( delete_confirmed ) %]
130 [% IF ( authtypecode ) %]
132 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] framework</a>
136 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
140 <a href="#" aria-current="page">
145 [% IF ( authtypecode ) %]
147 <a href="#" aria-current="page">
148 [% authtypecode | html %] Framework
153 <a href="#" aria-current="page">
166 <div class="main container-fluid">
168 <div class="col-sm-10 col-sm-push-2">
171 <h1>Authority MARC framework for [% IF ( authtypecode ) %][% authtypecode | html %][% ELSE %]default framework[% END %]</h1>
174 [% IF ( add_form ) %]
177 [% IF ( heading_modify_tag_p ) %]Modify tag[% END %]
178 [% IF ( heading_add_tag_p ) %]New tag[% END %]
180 <form action="[% script_name | html %]" name="Aform" method="post" class="validated">
181 <input type="hidden" name="op" value="add_validate" />
182 [% IF ( heading_modify_tag_p ) %]<input type="hidden" name="modif" value="1" />[% END %]
183 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
184 <fieldset class="rows">
186 [% IF ( heading_modify_tag_p ) %]
188 <span class="label">Tag: </span>
189 <input type="hidden" name="tagfield" value="[% searchfield | html %]" />
190 [% searchfield | html %]
194 <label for="tagfield" class="required">Tag: </label><input type="text" id="tagfield" name="tagfield" size="5" maxlength="3" required="required" class="required" />
195 <span class="required">Required</span>
199 <li><label for="liblibrarian">Text for librarians: </label><input type="text" name="liblibrarian" id="liblibrarian" value="[% liblibrarian | html %]" size="40" maxlength="100" /></li>
200 <li><label for="libopac">Text for opac: </label><input type="text" name="libopac" id="libopac" value="[% libopac | html %]" size="40" maxlength="100" /></li>
201 <li><label for="repeatable">Repeatable: </label>
202 [% IF ( repeatable ) %]
203 <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
205 <input type="checkbox" name="repeatable" id="repeatable" value="1" />
208 <li><label for="mandatory">Mandatory: </label>
209 [% IF ( mandatory ) %]
210 <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
212 <input type="checkbox" name="mandatory" id="mandatory" value="1" />
215 <li><label for="authorised_value">Authorized value: </label>
216 <select name="authorised_value" id="authorised_value">
217 <option value=""></option>
218 [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value ) %]
220 <div class="hint">If you select a value here, the indicators will be limited to the authorized value list</div>
224 <fieldset class="action">
225 <input type="submit" value="Submit" />
226 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]" class="cancel">Cancel</a>
232 [% IF ( delete_confirm ) %]
233 <div class="dialog alert">
234 <h3>Confirm deletion</h3>
235 <form action="[% script_name | html %]" method="post">
237 <tr><th scope="row">Tag: </th><td>[% searchfield | html %] [% liblibrarian | html %]</td></tr>
239 <input type="hidden" name="op" value="delete_confirmed" />
240 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
241 <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
242 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
244 <form action="[% script_name | html %]" method="get">
245 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
250 [% IF ( delete_confirmed ) %]
252 <div class="dialog message"> <h3>Data deleted</h3>
253 <form action="[% script_name | html %]" method="post">
254 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
255 <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
256 <input type="submit" value="OK" class="submit" />
259 [% IF ( authtype_create ) %]
261 <form action="[% script_name | html %]" method="post">
262 <input type="hidden" name="op" value="authtype_create_confirm" />
263 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
264 Create authority framework for [% authtypecode | html %] using
265 <select name="existingauthtypecode">
266 [% FOREACH existingauthtypeloo IN existingauthtypeloop %]
267 [% IF existingauthtypeloo.value == "" %]
268 <option value="" selected="selected">[% existingauthtypeloo.authtypetext | html %]</option>
270 <option value="[% existingauthtypeloo.value | html %]">[% existingauthtypeloo.authtypetext | html %]</option>
274 <input type="submit" value="OK" class="submit" />
281 <div id="toolbar" class="btn-toolbar">
282 <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>
285 <h2>Select an authority framework</h2>
286 <form action="[% script_name | html %]" method="post">
287 <select name="authtypecode">
288 [% FOREACH authority_type IN authority_types%]
289 [% IF authority_type.authtypecode == authtypecode%]
290 <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
292 <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
296 <input type="text" name="searchfield" value="[% searchfield | html %]" />
297 <input type="submit" value="OK" class="submit" />
299 <div id="pagertable_authtagstructure">
301 <table id="table_authtagstructure">
308 <th>Authorized<br />value</th>
313 [% FOREACH loo IN loop %]
315 <td><strong>[% loo.tagfield | html %]</strong></td>
316 <td>[% loo.liblibrarian | html %]</td>
317 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
318 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
319 <td>[% loo.authorised_value | html %]</td>
321 <div class="btn-group dropup">
322 <a class="btn btn-default btn-xs dropdown-toggle" id="authtagactions[% loo.tagfield | html %]" role="button" data-toggle="dropdown" href="#">
323 Actions <b class="caret"></b></a>
324 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtagactions[% loo.tagfield | html %]">
325 <li><a href="auth_subfields_structure.pl?tagfield=[% loo.tagfield | uri %]&authtypecode=[% authtypecode | uri %]"><i class="fa fa-eye"></i> Subfields</a></li>
326 <li><a href="?op=add_form&searchfield=[% loo.tagfield | uri %]&authtypecode=[% authtypecode | uri %]"><i class="fa fa-pencil"></i> Edit</a></li>
327 <li><a href="?op=delete_confirm&searchfield=[% loo.tagfield | uri %]&authtypecode=[% authtypecode | uri %]"><i class="fa fa-trash"></i> Delete</a></li>
339 </div> <!-- /.col-sm-10.col-sm-push-2 -->
341 <div class="col-sm-2 col-sm-pull-10">
343 [% INCLUDE 'admin-menu.inc' %]
345 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
346 </div> <!-- /.row -->
348 [% MACRO jsinclude BLOCK %]
349 [% INCLUDE 'datatables.inc' %]
350 [% Asset.js("js/admin-menu.js") | $raw %]
352 $(document).ready(function() {
353 $("#table_authtagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
355 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
357 "sPaginationType": "full"
362 [% INCLUDE 'intranet-bottom.inc' %]