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 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
19 <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a> ›
21 [% IF ( use_heading_flags_p ) %]
22 [% IF ( heading_modify_tag_p ) %]
23 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] Framework</a>
24 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
25 [% END %] › Modify tag
27 [% IF ( heading_add_tag_p ) %]
28 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] framework</a>
29 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
30 [% END %] › New tag
33 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] Framework</a>
34 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
35 [% END %] › [% action | html %]
38 [% IF ( delete_confirm ) %]
39 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] framework</a>
40 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
41 [% END %] › Confirm deletion
43 [% IF ( delete_confirmed ) %]
44 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]">[% authtypecode | html %] framework</a>
45 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
46 [% END %] › Data deleted
48 [% IF ( authtypecode ) %][% authtypecode | html %] Framework
49 [% ELSE %]Default framework
56 <div class="main container-fluid">
58 <div class="col-sm-10 col-sm-push-2">
61 <h1>Authority MARC framework for [% IF ( authtypecode ) %][% authtypecode | html %][% ELSE %]default framework[% END %]</h1>
67 [% IF ( heading_modify_tag_p ) %]Modify tag[% END %]
68 [% IF ( heading_add_tag_p ) %]New tag[% END %]
70 <form action="[% script_name | html %]" name="Aform" method="post" class="validated">
71 <input type="hidden" name="op" value="add_validate" />
72 [% IF ( heading_modify_tag_p ) %]<input type="hidden" name="modif" value="1" />[% END %]
73 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
74 <fieldset class="rows">
76 [% IF ( heading_modify_tag_p ) %]
78 <span class="label">Tag: </span>
79 <input type="hidden" name="tagfield" value="[% searchfield | html %]" />
80 [% searchfield | html %]
84 <label for="tagfield" class="required">Tag: </label><input type="text" id="tagfield" name="tagfield" size="5" maxlength="3" required="required" class="required" />
85 <span class="required">Required</span>
89 <li><label for="liblibrarian">Text for librarians: </label><input type="text" name="liblibrarian" id="liblibrarian" value="[% liblibrarian | html %]" size="40" maxlength="100" /></li>
90 <li><label for="libopac">Text for opac: </label><input type="text" name="libopac" id="libopac" value="[% libopac | html %]" size="40" maxlength="100" /></li>
91 <li><label for="repeatable">Repeatable: </label>
92 [% IF ( repeatable ) %]
93 <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
95 <input type="checkbox" name="repeatable" id="repeatable" value="1" />
98 <li><label for="mandatory">Mandatory: </label>
99 [% IF ( mandatory ) %]
100 <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
102 <input type="checkbox" name="mandatory" id="mandatory" value="1" />
105 <li><label for="authorised_value">Authorized value: </label>
106 <select name="authorised_value" id="authorised_value" size="1">
107 <option value=""></option>
108 [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => authorised_value ) %]
110 (if you select a value here, the indicators will be limited to the authorized value list)
114 <fieldset class="action">
115 <input type="submit" value="Submit" />
116 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode | uri %]" class="cancel">Cancel</a>
122 [% IF ( delete_confirm ) %]
123 <div class="dialog alert">
124 <h3>Confirm deletion</h3>
125 <form action="[% script_name | html %]" method="post">
127 <tr><th scope="row">Tag: </th><td>[% searchfield | html %] [% liblibrarian | html %]</td></tr>
129 <input type="hidden" name="op" value="delete_confirmed" />
130 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
131 <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
132 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
134 <form action="[% script_name | html %]" method="get">
135 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
140 [% IF ( delete_confirmed ) %]
142 <div class="dialog message"> <h3>Data deleted</h3>
143 <form action="[% script_name | html %]" method="post">
144 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
145 <input type="hidden" name="searchfield" value="[% searchfield | html %]" />
146 <input type="submit" value="OK" class="submit" />
149 [% IF ( authtype_create ) %]
151 <form action="[% script_name | html %]" method="post">
152 <input type="hidden" name="op" value="authtype_create_confirm" />
153 <input type="hidden" name="authtypecode" value="[% authtypecode | html %]" />
154 Create authority framework for [% authtypecode | html %] using
155 <select name="existingauthtypecode">
156 [% FOREACH existingauthtypeloo IN existingauthtypeloop %]
157 [% IF existingauthtypeloo.value == "" %]
158 <option value="" selected="selected">[% existingauthtypeloo.authtypetext | html %]</option>
160 <option value="[% existingauthtypeloo.value | html %]">[% existingauthtypeloo.authtypetext | html %]</option>
164 <input type="submit" value="OK" class="submit" />
171 <div id="toolbar" class="btn-toolbar">
172 <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>
175 <h2>Select an authority framework</h2>
176 <form action="[% script_name | html %]" method="post">
177 <select name="authtypecode">
178 [% FOREACH authority_type IN authority_types%]
179 [% IF authority_type.authtypecode == authtypecode%]
180 <option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
182 <option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
186 <input type="text" name="searchfield" value="[% searchfield | html %]" />
187 <input type="submit" value="OK" class="submit" />
189 <div id="pagertable_authtagstructure">
191 <table id="table_authtagstructure">
198 <th>Authorized<br />value</th>
203 [% FOREACH loo IN loop %]
205 <td><strong>[% loo.tagfield | html %]</strong></td>
206 <td>[% loo.liblibrarian | html %]</td>
207 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
208 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
209 <td>[% loo.authorised_value | html %]</td>
211 <div class="btn-group dropup">
212 <a class="btn btn-default btn-xs dropdown-toggle" id="authtagactions[% loo.tagfield | html %]" role="button" data-toggle="dropdown" href="#">
213 Actions <b class="caret"></b></a>
214 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtagactions[% loo.tagfield | html %]">
215 <li><a href="auth_subfields_structure.pl?tagfield=[% loo.tagfield | uri %]&authtypecode=[% authtypecode | uri %]"><i class="fa fa-eye"></i> Subfields</a></li>
216 <li><a href="?op=add_form&searchfield=[% loo.tagfield | uri %]&authtypecode=[% authtypecode | uri %]"><i class="fa fa-pencil"></i> Edit</a></li>
217 <li><a href="?op=delete_confirm&searchfield=[% loo.tagfield | uri %]&authtypecode=[% authtypecode | uri %]"><i class="fa fa-trash"></i> Delete</a></li>
229 </div> <!-- /.col-sm-10.col-sm-push-2 -->
231 <div class="col-sm-2 col-sm-pull-10">
233 [% INCLUDE 'admin-menu.inc' %]
235 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
236 </div> <!-- /.row -->
238 [% MACRO jsinclude BLOCK %]
239 [% INCLUDE 'datatables.inc' %]
240 [% Asset.js("js/admin-menu.js") | $raw %]
242 $(document).ready(function() {
243 $("#table_authtagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
245 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
247 "sPaginationType": "full"
252 [% INCLUDE 'intranet-bottom.inc' %]