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 | uri %]">[% 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 | uri %]">[% 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 | uri %]">[% 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 | uri %]">[% 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 | uri %]">[% 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 class="main container-fluid">
59 <div class="col-sm-10 col-sm-push-2">
62 <h1>Authority MARC framework for [% IF ( authtypecode ) %][% authtypecode | html %][% ELSE %]default framework[% END %]</h1>
68 [% IF ( heading_modify_tag_p ) %]Modify tag[% END %]
69 [% IF ( heading_add_tag_p ) %]New tag[% END %]
71 <form action="[% script_name | html %]" name="Aform" method="post" class="validated">
72 <input type="hidden" name="op" value="add_validate" />
73 [% IF ( heading_modify_tag_p ) %]<input type="hidden" name="modif" value="1" />[% END %]
74 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
75 <fieldset class="rows">
77 [% IF ( heading_modify_tag_p ) %]
79 <span class="label">Tag: </span>
80 <input type="hidden" name="tagfield" value="[% searchfield | html %]" />
81 [% searchfield | html %]
85 <label for="tagfield" class="required">Tag: </label><input type="text" id="tagfield" name="tagfield" size="5" maxlength="3" required="required" class="required" />
86 <span class="required">Required</span>
90 <li><label for="liblibrarian">Text for librarians: </label><input type="text" name="liblibrarian" id="liblibrarian" value="[% liblibrarian | html %]" size="40" maxlength="100" /></li>
91 <li><label for="libopac">Text for opac: </label><input type="text" name="libopac" id="libopac" value="[% libopac | html %]" size="40" maxlength="100" /></li>
92 <li><label for="repeatable">Repeatable: </label>
93 [% IF ( repeatable ) %]
94 <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
96 <input type="checkbox" name="repeatable" id="repeatable" value="1" />
99 <li><label for="mandatory">Mandatory: </label>
100 [% IF ( mandatory ) %]
101 <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
103 <input type="checkbox" name="mandatory" id="mandatory" value="1" />
106 <li><label for="authorised_value">Authorized value: </label>
107 <select name="authorised_value" id="authorised_value" size="1">
108 <option value=""></option>
109 [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value ) %]
111 (if you select a value here, the indicators will be limited to the authorized value list)
115 <fieldset class="action">
116 <input type="submit" value="Submit" />
117 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]" class="cancel">Cancel</a>
123 [% IF ( delete_confirm ) %]
124 <div class="dialog alert">
125 <h3>Confirm deletion</h3>
126 <form action="[% script_name | html %]" method="post">
128 <tr><th scope="row">Tag: </th><td>[% searchfield | html %] [% liblibrarian | html %]</td></tr>
130 <input type="hidden" name="op" value="delete_confirmed" />
131 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
132 <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
133 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
135 <form action="[% script_name | html %]" method="get">
136 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
141 [% IF ( delete_confirmed ) %]
143 <div class="dialog message"> <h3>Data deleted</h3>
144 <form action="[% script_name | html %]" method="post">
145 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
146 <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
147 <input type="submit" value="OK" class="submit" />
150 [% IF ( authtype_create ) %]
152 <form action="[% script_name | html %]" method="post">
153 <input type="hidden" name="op" value="authtype_create_confirm" />
154 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
155 Create authority framework for [% authtypecode | html %] using
156 <select name="existingauthtypecode">
157 [% FOREACH existingauthtypeloo IN existingauthtypeloop %]
158 [% IF existingauthtypeloo.value == "" %]
159 <option value="" selected="selected">[% existingauthtypeloo.authtypetext | html %]</option>
161 <option value="[% existingauthtypeloo.value | html %]">[% existingauthtypeloo.authtypetext | html %]</option>
165 <input type="submit" value="OK" class="submit" />
172 <div id="toolbar" class="btn-toolbar">
173 <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>
176 <h2>Select an authority framework</h2>
177 <form action="[% script_name | html %]" method="post">
178 <select name="authtypecode">
179 [% FOREACH authority_type IN authority_types%]
180 [% IF authority_type.authtypecode == authtypecode%]
181 <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
183 <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
187 <input type="text" name="searchfield" value="[% searchfield | html %]" />
188 <input type="submit" value="OK" class="submit" />
190 <div id="pagertable_authtagstructure">
192 <table id="table_authtagstructure">
199 <th>Authorized<br />value</th>
204 [% FOREACH loo IN loop %]
206 <td><b>[% loo.tagfield | html %]</b></td>
207 <td>[% loo.liblibrarian | html %]</td>
208 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
209 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
210 <td>[% loo.authorised_value | html %]</td>
212 <div class="dropdown">
213 <a class="btn btn-default btn-xs dropdown-toggle" id="authtagactions[% loo.tagfield | html %]" role="button" data-toggle="dropdown" href="#">
214 Actions <b class="caret"></b></a>
215 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtagactions[% loo.tagfield | html %]">
216 <li><a href="[% loo.subfield_link | uri %]"><i class="fa fa-eye"></i> Subfields</a></li>
217 <li><a href="[% loo.edit | uri %]"><i class="fa fa-pencil"></i> Edit</a></li>
218 <li><a href="[% loo.delete | uri %]"><i class="fa fa-trash"></i> Delete</a></li>
230 </div> <!-- /.col-sm-10.col-sm-push-2 -->
232 <div class="col-sm-2 col-sm-pull-10">
234 [% INCLUDE 'admin-menu.inc' %]
236 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
237 </div> <!-- /.row -->
239 [% MACRO jsinclude BLOCK %]
240 [% INCLUDE 'datatables.inc' %]
241 [% Asset.js("js/admin-menu.js") | $raw %]
243 $(document).ready(function() {
244 $("#table_authtagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
246 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
248 "sPaginationType": "four_button"
253 [% INCLUDE 'intranet-bottom.inc' %]