1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › Authority MARC framework [% IF ( add_form ) %][% IF ( use_heading_flags_p ) %]
3 [% IF ( heading_modify_tag_p ) %]› [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] › Modify tag[% END %]
4 [% IF ( heading_add_tag_p ) %]› [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] › New tag[% END %]
5 [% ELSE %]› [% action %][% END %][% END %][% IF ( delete_confirm ) %]› [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] › Confirm deletion[% END %][% IF ( delete_confirmed ) %]› [% IF ( authtypecode ) %][% authtypecode %] Framework[% ELSE %]Default framework[% END %] › Data deleted[% END %]</title>
6 [% INCLUDE 'doc-head-close.inc' %]
8 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
9 [% INCLUDE 'datatables.inc' %]
10 <script type="text/javascript">
12 $(document).ready(function() {
13 $("#table_authtagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
15 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
17 "sPaginationType": "four_button"
23 <body id="admin_auth_tag_structure" class="admin">
24 [% INCLUDE 'header.inc' %]
25 [% INCLUDE 'cat-search.inc' %]
27 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
28 <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a> ›
30 [% IF ( use_heading_flags_p ) %]
31 [% IF ( heading_modify_tag_p ) %]
32 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] Framework</a>
33 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
34 [% END %] › Modify tag
36 [% IF ( heading_add_tag_p ) %]
37 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] framework</a>
38 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
39 [% END %] › New tag
42 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] Framework</a>
43 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
44 [% END %] › [% action %]
47 [% IF ( delete_confirm ) %]
48 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] framework</a>
49 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
50 [% END %] › Confirm deletion
52 [% IF ( delete_confirmed ) %]
53 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] framework</a>
54 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
55 [% END %] › Data deleted
57 [% IF ( authtypecode ) %][% authtypecode %] Framework
58 [% ELSE %]Default framework
65 <div id="doc3" class="yui-t2">
71 <h1>Authority MARC framework for [% IF ( authtypecode ) %][% authtypecode %][% ELSE %]default framework[% END %]</h1>
77 [% IF ( heading_modify_tag_p ) %]Modify tag[% END %]
78 [% IF ( heading_add_tag_p ) %]New tag[% END %]
80 <form action="[% script_name %]" name="Aform" method="post" class="validated">
81 <input type="hidden" name="op" value="add_validate" />
82 [% IF ( heading_modify_tag_p ) %]<input type="hidden" name="modif" value="1" />[% END %]
83 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
84 <fieldset class="rows">
86 [% IF ( heading_modify_tag_p ) %]
88 <span class="label">Tag: </span>
89 <input type="hidden" name="tagfield" value="[% searchfield %]" />
94 <label for="tagfield" class="required">Tag: </label><input type="text" id="tagfield" name="tagfield" size="5" maxlength="3" required="required" class="required" />
95 <span class="required">Required</span>
99 <li><label for="liblibrarian">Text for librarians: </label><input type="text" name="liblibrarian" id="liblibrarian" value="[% liblibrarian |html %]" size="40" maxlength="100" /></li>
100 <li><label for="libopac">Text for opac: </label><input type="text" name="libopac" id="libopac" value="[% libopac |html %]" size="40" maxlength="100" /></li>
101 <li><label for="repeatable">Repeatable: </label>
102 [% IF ( repeatable ) %]
103 <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
105 <input type="checkbox" name="repeatable" id="repeatable" value="1" />
108 <li><label for="mandatory">Mandatory: </label>
109 [% IF ( mandatory ) %]
110 <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
112 <input type="checkbox" name="mandatory" id="mandatory" value="1" />
115 <li><label for="authorised_value">Authorized value: </label>
116 <select name="authorised_value" id="authorised_value" size="1">
117 [% FOREACH value IN authorised_value.values %]
118 [% IF ( value == authorised_value.default ) %]
119 <option value="[% value %]" selected="selected">[% value %]</option>
121 <option value="[% value %]">[% value %]</option>
125 (if you select a value here, the indicators will be limited to the authorized value list)
129 <fieldset class="action">
130 <input type="submit" value="Submit" />
131 <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]" class="cancel">Cancel</a>
137 [% IF ( delete_confirm ) %]
138 <div class="dialog alert">
139 <h3>Confirm deletion</h3>
140 <form action="[% script_name %]" method="post">
142 <tr><th scope="row">Tag: </th><td>[% searchfield %] [% liblibrarian %]</td></tr>
144 <input type="hidden" name="op" value="delete_confirmed" />
145 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
146 <input type="hidden" name="searchfield" value="[% searchfield %]" />
147 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
149 <form action="[% script_name %]" method="get">
150 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
155 [% IF ( delete_confirmed ) %]
157 <div class="dialog message"> <h3>Data deleted</h3>
158 <form action="[% script_name %]" method="post">
159 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
160 <input type="hidden" name="searchfield" value="[% searchfield %]" />
161 <input type="submit" value="OK" class="submit" />
164 [% IF ( authtype_create ) %]
166 <form action="[% script_name %]" method="post">
167 <input type="hidden" name="op" value="authtype_create_confirm" />
168 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
169 Create authority framework for [% authtypecode %] using
170 <select name="existingauthtypecode">
171 [% FOREACH existingauthtypeloo IN existingauthtypeloop %]
172 [% IF existingauthtypeloo.value == "" %]
173 <option value="" selected="selected">[% existingauthtypeloo.authtypetext %]</option>
175 <option value="[% existingauthtypeloo.value %]">[% existingauthtypeloo.authtypetext %]</option>
179 <input type="submit" value="OK" class="submit" />
186 <div id="toolbar" class="btn-toolbar">
187 <div class="btn-group"><a class="btn btn-small" id="newtag" href="/cgi-bin/koha/admin/auth_tag_structure.pl?op=add_form&authtypecode=[% authtypecode %]"><i class="fa fa-plus"></i> New tag</a></div>
190 <h2>Select an authority framework</h2>
191 <form action="[% script_name %]" method="post">
192 <select name="authtypecode">
193 [% FOREACH authority_type IN authority_types%]
194 [% IF authority_type.authtypecode == authtypecode%]
195 <option value="[% authority_type.value %]" selected="selected">[% authority_type.authtypetext %]</option>
197 <option value="[% authority_type.value %]">[% authority_type.authtypetext %]</option>
201 <input type="text" name="searchfield" value="[% searchfield %]" />
202 <input type="submit" value="OK" class="submit" />
204 <div id="pagertable_authtagstructure">
206 <table id="table_authtagstructure">
213 <th>Authorized<br />value</th>
218 [% FOREACH loo IN loop %]
220 <td><b>[% loo.tagfield %]</b></td>
221 <td>[% loo.liblibrarian %]</td>
222 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
223 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
224 <td>[% loo.authorised_value %]</td>
226 <div class="dropdown">
227 <a class="btn btn-mini dropdown-toggle" id="authtagactions[% loo.tagfield %]" role="button" data-toggle="dropdown" href="#">
228 Actions <b class="caret"></b></a>
229 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="authtagactions[% loo.tagfield %]">
230 <li><a href="[% loo.subfield_link %]"><i class="fa fa-eye"></i> Subfields</a></li>
231 <li><a href="[% loo.edit %]"><i class="fa fa-pencil"></i> Edit</a></li>
232 <li><a href="[% loo.delete %]"><i class="fa fa-trash"></i> Delete</a></li>
246 [% INCLUDE 'admin-menu.inc' %]
249 [% INCLUDE 'intranet-bottom.inc' %]