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' %]
14 <body id="admin_auth_tag_structure" class="admin">
15 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'prefs-admin-search.inc' %]
18 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
21 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24 <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
27 <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a>
31 [% IF ( use_heading_flags_p ) %]
33 [% IF ( heading_modify_tag_p ) %]
34 [% IF ( authtypecode ) %]
36 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] Framework</a>
40 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
44 <a href="#" aria-current="page">
50 [% IF ( heading_add_tag_p ) %]
51 [% IF ( authtypecode ) %]
53 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] framework</a>
57 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
61 <a href="#" aria-current="page">
68 [% IF ( authtypecode ) %]
70 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] Framework</a>
74 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
78 <a href="#" aria-current="page">
85 [% IF ( delete_confirm ) %]
86 [% IF ( authtypecode ) %]
88 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] framework</a>
92 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
96 <a href="#" aria-current="page">
101 [% IF ( delete_confirmed ) %]
102 [% IF ( authtypecode ) %]
104 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] framework</a>
108 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
112 <a href="#" aria-current="page">
117 [% IF ( authtypecode ) %]
119 <a href="#" aria-current="page">
120 [% authtypecode | html %] Framework
125 <a href="#" aria-current="page">
137 <div class="main container-fluid">
139 <div class="col-sm-10 col-sm-push-2">
142 <h1>Authority MARC framework for [% IF ( authtypecode ) %][% authtypecode | html %][% ELSE %]default framework[% END %]</h1>
145 [% IF ( add_form ) %]
148 [% IF ( heading_modify_tag_p ) %]Modify tag[% END %]
149 [% IF ( heading_add_tag_p ) %]New tag[% END %]
151 <form action="[% script_name | html %]" name="Aform" method="post" class="validated">
152 <input type="hidden" name="op" value="add_validate" />
153 [% IF ( heading_modify_tag_p ) %]<input type="hidden" name="modif" value="1" />[% END %]
154 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
155 <fieldset class="rows">
157 [% IF ( heading_modify_tag_p ) %]
159 <span class="label">Tag: </span>
160 <input type="hidden" name="tagfield" value="[% searchfield | html %]" />
161 [% searchfield | html %]
165 <label for="tagfield" class="required">Tag: </label><input type="text" id="tagfield" name="tagfield" size="5" maxlength="3" required="required" class="required" />
166 <span class="required">Required</span>
170 <li><label for="liblibrarian">Text for librarians: </label><input type="text" name="liblibrarian" id="liblibrarian" value="[% liblibrarian | html %]" size="40" maxlength="100" /></li>
171 <li><label for="libopac">Text for opac: </label><input type="text" name="libopac" id="libopac" value="[% libopac | html %]" size="40" maxlength="100" /></li>
172 <li><label for="repeatable">Repeatable: </label>
173 [% IF ( repeatable ) %]
174 <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
176 <input type="checkbox" name="repeatable" id="repeatable" value="1" />
179 <li><label for="mandatory">Mandatory: </label>
180 [% IF ( mandatory ) %]
181 <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
183 <input type="checkbox" name="mandatory" id="mandatory" value="1" />
186 <li><label for="authorised_value">Authorized value: </label>
187 <select name="authorised_value" id="authorised_value">
188 <option value=""></option>
189 [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value ) %]
191 (if you select a value here, the indicators will be limited to the authorized value list)
195 <fieldset class="action">
196 <input type="submit" value="Submit" />
197 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]" class="cancel">Cancel</a>
203 [% IF ( delete_confirm ) %]
204 <div class="dialog alert">
205 <h3>Confirm deletion</h3>
206 <form action="[% script_name | html %]" method="post">
208 <tr><th scope="row">Tag: </th><td>[% searchfield | html %] [% liblibrarian | html %]</td></tr>
210 <input type="hidden" name="op" value="delete_confirmed" />
211 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
212 <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
213 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
215 <form action="[% script_name | html %]" method="get">
216 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
221 [% IF ( delete_confirmed ) %]
223 <div class="dialog message"> <h3>Data deleted</h3>
224 <form action="[% script_name | html %]" method="post">
225 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
226 <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
227 <input type="submit" value="OK" class="submit" />
230 [% IF ( authtype_create ) %]
232 <form action="[% script_name | html %]" method="post">
233 <input type="hidden" name="op" value="authtype_create_confirm" />
234 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
235 Create authority framework for [% authtypecode | html %] using
236 <select name="existingauthtypecode">
237 [% FOREACH existingauthtypeloo IN existingauthtypeloop %]
238 [% IF existingauthtypeloo.value == "" %]
239 <option value="" selected="selected">[% existingauthtypeloo.authtypetext | html %]</option>
241 <option value="[% existingauthtypeloo.value | html %]">[% existingauthtypeloo.authtypetext | html %]</option>
245 <input type="submit" value="OK" class="submit" />
252 <div id="toolbar" class="btn-toolbar">
253 <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>
256 <h2>Select an authority framework</h2>
257 <form action="[% script_name | html %]" method="post">
258 <select name="authtypecode">
259 [% FOREACH authority_type IN authority_types%]
260 [% IF authority_type.authtypecode == authtypecode%]
261 <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
263 <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
267 <input type="text" name="searchfield" value="[% searchfield | html %]" />
268 <input type="submit" value="OK" class="submit" />
270 <div id="pagertable_authtagstructure">
272 <table id="table_authtagstructure">
279 <th>Authorized<br />value</th>
284 [% FOREACH loo IN loop %]
286 <td><strong>[% loo.tagfield | html %]</strong></td>
287 <td>[% loo.liblibrarian | html %]</td>
288 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
289 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
290 <td>[% loo.authorised_value | html %]</td>
292 <div class="btn-group dropup">
293 <a class="btn btn-default btn-xs dropdown-toggle" id="authtagactions[% loo.tagfield | html %]" role="button" data-toggle="dropdown" href="#">
294 Actions <b class="caret"></b></a>
295 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtagactions[% loo.tagfield | html %]">
296 <li><a href="auth_subfields_structure.pl?tagfield=[% loo.tagfield | uri %]&authtypecode=[% authtypecode | uri %]"><i class="fa fa-eye"></i> Subfields</a></li>
297 <li><a href="?op=add_form&searchfield=[% loo.tagfield | uri %]&authtypecode=[% authtypecode | uri %]"><i class="fa fa-pencil"></i> Edit</a></li>
298 <li><a href="?op=delete_confirm&searchfield=[% loo.tagfield | uri %]&authtypecode=[% authtypecode | uri %]"><i class="fa fa-trash"></i> Delete</a></li>
310 </div> <!-- /.col-sm-10.col-sm-push-2 -->
312 <div class="col-sm-2 col-sm-pull-10">
314 [% INCLUDE 'admin-menu.inc' %]
316 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
317 </div> <!-- /.row -->
319 [% MACRO jsinclude BLOCK %]
320 [% INCLUDE 'datatables.inc' %]
321 [% Asset.js("js/admin-menu.js") | $raw %]
323 $(document).ready(function() {
324 $("#table_authtagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
326 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
328 "sPaginationType": "full"
333 [% INCLUDE 'intranet-bottom.inc' %]