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="[% themelang %]/css/datatables.css" />
9 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
10 [% INCLUDE 'datatables-strings.inc' %]
11 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
12 <script type="text/javascript">
14 $(document).ready(function() {
15 $("#table_authtagstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
17 { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
20 "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
21 "sPaginationType": "four_button"
25 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
26 function isNotNull(f,noalert) {
27 if (f.value.length ==0) {
32 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
34 var x=f.value.toUpperCase();
38 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
39 function isNum(v,maybenull) {
40 var n = new Number(v.value);
44 if (maybenull==0 && v.value=='') {
49 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
51 var t = Date.parse(f.value);
56 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
61 if (f.tagfield.value.length==0) {
62 _alertString += "\n- " + _("tag number missing");
64 if (_alertString.length==0) {
65 document.Aform.submit();
67 alertString2 = _("Form not submitted because of the following problem(s)");
68 alertString2 += "\n------------------------------------------------------------------------------------\n";
69 alertString2 += _alertString;
76 <body id="admin_auth_tag_structure" class="admin">
77 [% INCLUDE 'header.inc' %]
78 [% INCLUDE 'cat-search.inc' %]
80 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
81 <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a> ›
83 [% IF ( use_heading_flags_p ) %]
84 [% IF ( heading_modify_tag_p ) %]
85 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] Framework</a>
86 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
87 [% END %] › Modify tag
89 [% IF ( heading_add_tag_p ) %]
90 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] framework</a>
91 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
92 [% END %] › New tag
95 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] Framework</a>
96 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
97 [% END %] › [% action %]
100 [% IF ( delete_confirm ) %]
101 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] framework</a>
102 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
103 [% END %] › Confirm deletion
105 [% IF ( delete_confirmed ) %]
106 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] framework</a>
107 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
108 [% END %] › Data deleted
110 [% IF ( authtypecode ) %][% authtypecode %] Framework</a>
111 [% ELSE %]Default framework
118 <div id="doc3" class="yui-t2">
124 <h1>Authority MARC framework for [% IF ( authtypecode ) %][% authtypecode %][% ELSE %]default framework[% END %]</h1>
127 [% IF ( add_form ) %]
130 [% IF ( use_heading_flags_p ) %]
131 [% IF ( heading_modify_tag_p ) %]Modify tag[% END %]
132 [% IF ( heading_add_tag_p ) %]New tag[% END %]
133 [% ELSE %][% action %][% END %]
135 <form action="[% script_name %]" name="Aform" method="post">
136 <input type="hidden" name="op" value="add_validate" />
137 [% IF ( heading_modify_tag_p ) %]<input type="hidden" name="modif" value="1" />[% END %]
138 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
139 <fieldset class="rows"><ol>
140 <li><span class="label">Tag</span>[% searchfield %]</li>
141 <li><label for="liblibrarian">Text for librarians</label><input type="text" name="liblibrarian" id="liblibrarian" value="[% liblibrarian |html %]" size="40" maxlength="100" /></li>
142 <li><label for="libopac">Text for opac</label><input type="text" name="libopac" id="libopac" value="[% libopac |html %]" size="40" maxlength="100" /></li>
143 <li><label for="repeatable">Repeatable</label>
144 [% IF ( repeatable ) %]
145 <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
147 <input type="checkbox" name="repeatable" id="repeatable" value="1" />
150 <li><label for="mandatory">Mandatory</label>
151 [% IF ( mandatory ) %]
152 <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
154 <input type="checkbox" name="mandatory" id="mandatory" value="1" />
157 <li><label for="authorised_value">Authorized value</label>[% authorised_value %] (if you select a value here, the indicators will be limited to the authorized value list)</li>
159 <p><input type="button" value="Submit" class="button" onclick="Check(this.form)" /></p>
164 [% IF ( delete_confirm ) %]
165 <div class="dialog alert">
166 <h3>Confirm deletion</h3>
167 <form action="[% script_name %]" method="post">
169 <tr><th scope="row">Tag: </th><td>[% searchfield %] [% liblibrarian %]</td></tr>
171 <input type="hidden" name="op" value="delete_confirmed" />
172 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
173 <input type="hidden" name="searchfield" value="[% searchfield %]" />
174 <input type="submit" value="Yes, delete" class="approve"></form>
175 <form action="[% script_name %]" method="get"><input type="submit" class="deny" value="No, do not delete" /></form>
179 [% IF ( delete_confirmed ) %]
181 <div class="dialog message"> <h3>Data deleted</h3>
182 <form action="[% script_name %]" method="post">
183 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
184 <input type="hidden" name="searchfield" value="[% searchfield %]" />
185 <input type="submit" value="OK" class="submit" />
188 [% IF ( authtype_create ) %]
190 <form action="[% script_name %]" method="post">
191 <input type="hidden" name="op" value="authtype_create_confirm" />
192 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
193 Create authority framework for [% authtypecode %] using
194 <select name="existingauthtypecode">
195 <option value="">Default</option>
196 [% FOREACH existingauthtypeloo IN existingauthtypeloop %]
197 <option value="[% existingauthtypeloo.value %]">[% existingauthtypeloo.authtypetext %]</option>
200 <input type="submit" value="OK" class="submit" />
207 <div id="toolbar" class="btn-toolbar">
208 <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="icon-plus"></i> New tag</a></div>
211 <h2>Select an authority framework</h2>
212 <form action="[% script_name %]" method="post">
213 <select name="authtypecode">
214 <option value="">Default</option>
215 [% FOREACH authtypeloo IN authtypeloop %]
216 [% IF ( authtypeloo.selected ) %]
217 <option value="[% authtypeloo.value %]" selected="selected">[% authtypeloo.authtypetext %]</option>
219 <option value="[% authtypeloo.value %]">[% authtypeloo.authtypetext %]</option>
224 <input type="text" name="searchfield" value="[% searchfield %]" />
225 <input type="submit" value="OK" class="submit" />
227 <div id="pagertable_authtagstructure">
229 <table id="table_authtagstructure">
235 <th>Authorized<br />value</th>
240 [% FOREACH loo IN loop %]
241 [% UNLESS ( loop.odd ) %]
242 <tr class="highlight">
246 <td><b>[% loo.tagfield %]</b></td>
247 <td>[% loo.liblibrarian %]</td>
248 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
249 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
250 <td>[% loo.authorised_value %]</td>
251 <td><a href="[% loo.subfield_link %]" class="button">subfields</a></td>
252 <td><a href="[% loo.edit %]">Edit</a></td>
253 <td><a href="[% loo.delete %]">Delete</a></td>
263 [% INCLUDE 'admin-menu.inc' %]
266 [% INCLUDE 'intranet-bottom.inc' %]