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' %]
7 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
8 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
9 <script type="text/javascript" id="js">$(document).ready(function() {
10 $("#table_authtagstructure").tablesorter({
12 headers: { 5: { sorter: false},6: { sorter: false},7: { sorter: false}}
13 }).tablesorterPager({container: $("#pagertable_authtagstructure"),positionFixed: false,size: 20});
15 <script type="text/javascript">
17 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
18 function isNotNull(f,noalert) {
19 if (f.value.length ==0) {
24 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
26 var x=f.value.toUpperCase();
30 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
31 function isNum(v,maybenull) {
32 var n = new Number(v.value);
36 if (maybenull==0 && v.value=='') {
41 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
43 var t = Date.parse(f.value);
48 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
53 if (f.tagfield.value.length==0) {
54 _alertString += "\n- " + _("tag number missing");
56 if (_alertString.length==0) {
57 document.Aform.submit();
59 alertString2 = _("Form not submitted because of the following problem(s)");
60 alertString2 += "\n------------------------------------------------------------------------------------\n";
61 alertString2 += _alertString;
68 <body id="admin_auth_tag_structure" class="admin">
69 [% INCLUDE 'header.inc' %]
70 [% INCLUDE 'cat-search.inc' %]
72 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
73 <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a> ›
75 [% IF ( use_heading_flags_p ) %]
76 [% IF ( heading_modify_tag_p ) %]
77 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] Framework</a>
78 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
79 [% END %] › Modify tag
81 [% IF ( heading_add_tag_p ) %]
82 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] framework</a>
83 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
84 [% END %] › New tag
87 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] Framework</a>
88 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
89 [% END %] › [% action %]
92 [% IF ( delete_confirm ) %]
93 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] framework</a>
94 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
95 [% END %] › Confirm deletion
97 [% IF ( delete_confirmed ) %]
98 [% IF ( authtypecode ) %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% authtypecode %]">[% authtypecode %] framework</a>
99 [% ELSE %]<a href="/cgi-bin/koha/admin/auth_tag_structure.pl">Default framework</a>
100 [% END %] › Data deleted
102 [% IF ( authtypecode ) %][% authtypecode %] Framework</a>
103 [% ELSE %]Default framework
110 <div id="doc3" class="yui-t2">
116 <h1>Authority MARC framework for [% IF ( authtypecode ) %][% authtypecode %][% ELSE %]default framework[% END %]</h1>
119 [% IF ( add_form ) %]
122 [% IF ( use_heading_flags_p ) %]
123 [% IF ( heading_modify_tag_p ) %]Modify tag[% END %]
124 [% IF ( heading_add_tag_p ) %]New tag[% END %]
125 [% ELSE %][% action %][% END %]
127 <form action="[% script_name %]" name="Aform" method="post">
128 <input type="hidden" name="op" value="add_validate" />
129 [% IF ( heading_modify_tag_p ) %]<input type="hidden" name="modif" value="1" />[% END %]
130 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
131 <fieldset class="rows"><ol>
132 <li><span class="label">Tag</span>[% searchfield %]</li>
133 <li><label for="liblibrarian">Text for librarians</label><input type="text" name="liblibrarian" id="liblibrarian" value="[% liblibrarian |html %]" size="40" maxlength="100" /></li>
134 <li><label for="libopac">Text for opac</label><input type="text" name="libopac" id="libopac" value="[% libopac |html %]" size="40" maxlength="100" /></li>
135 <li><label for="repeatable">Repeatable</label>
136 [% IF ( repeatable ) %]
137 <input type="checkbox" name="repeatable" id="repeatable" value="1" checked="checked" />
139 <input type="checkbox" name="repeatable" id="repeatable" value="1" />
142 <li><label for="mandatory">Mandatory</label>
143 [% IF ( mandatory ) %]
144 <input type="checkbox" name="mandatory" id="mandatory" value="1" checked="checked" />
146 <input type="checkbox" name="mandatory" id="mandatory" value="1" />
149 <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>
151 <p><input type="button" value="Submit" class="button" onclick="Check(this.form)" /></p>
156 [% IF ( delete_confirm ) %]
157 <div class="dialog alert">
158 <h3>Confirm deletion</h3>
159 <form action="[% script_name %]" method="post">
161 <tr><th scope="row">Tag: </th><td>[% searchfield %] [% liblibrarian %]</td></tr>
163 <input type="hidden" name="op" value="delete_confirmed" />
164 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
165 <input type="hidden" name="searchfield" value="[% searchfield %]" />
166 <input type="submit" value="Yes, delete" class="approve"></form>
167 <form action="[% script_name %]" method="get"><input type="submit" class="deny" value="No, do not delete" /></form>
171 [% IF ( delete_confirmed ) %]
173 <div class="dialog message"> <h3>Data deleted</h3>
174 <form action="[% script_name %]" method="post">
175 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
176 <input type="hidden" name="searchfield" value="[% searchfield %]" />
177 <input type="submit" value="OK" class="submit" />
180 [% IF ( authtype_create ) %]
182 <form action="[% script_name %]" method="post">
183 <input type="hidden" name="op" value="authtype_create_confirm" />
184 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
185 Create authority framework for [% authtypecode %] using
186 <select name="existingauthtypecode">
187 <option value="">Default</option>
188 [% FOREACH existingauthtypeloo IN existingauthtypeloop %]
189 <option value="[% existingauthtypeloo.value %]">[% existingauthtypeloo.authtypetext %]</option>
192 <input type="submit" value="OK" class="submit" />
200 <script type="text/javascript">
202 // prepare DOM for YUI Toolbar
203 $(document).ready(function() {
206 // YUI Toolbar Functions
207 function yuiToolbar() {
208 new YAHOO.widget.Button("newtag");
212 <li><a id="newtag" href="/cgi-bin/koha/admin/auth_tag_structure.pl?op=add_form&authtypecode=[% authtypecode %]">New tag</a></li>
215 <h2>Select an authority framework</h2>
216 <form action="[% script_name %]" method="post">
217 <select name="authtypecode">
218 <option value="">Default</option>
219 [% FOREACH authtypeloo IN authtypeloop %]
220 [% IF ( authtypeloo.selected ) %]
221 <option value="[% authtypeloo.value %]" selected="selected">[% authtypeloo.authtypetext %]</option>
223 <option value="[% authtypeloo.value %]">[% authtypeloo.authtypetext %]</option>
228 <input type="text" name="searchfield" value="[% searchfield %]" />
229 <input type="submit" value="OK" class="submit" />
231 <div id="pagertable_authtagstructure">
232 [% INCLUDE 'table-pager.inc' perpage='20' %]
234 <table id="table_authtagstructure">
240 <th>Authorized<br />value</th>
245 [% FOREACH loo IN loop %]
246 [% UNLESS ( loop.odd ) %]
247 <tr class="highlight">
251 <td><b>[% loo.tagfield %]</b></td>
252 <td>[% loo.liblibrarian %]</td>
253 <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td>
254 <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
255 <td>[% loo.authorised_value %]</td>
256 <td><a href="[% loo.subfield_link %]" class="button">subfields</a></td>
257 <td><a href="[% loo.edit %]">Edit</a></td>
258 <td><a href="[% loo.delete %]">Delete</a></td>
268 [% INCLUDE 'admin-menu.inc' %]
271 [% INCLUDE 'intranet-bottom.inc' %]