1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › Authority types
4 › [% IF ( authtypecode ) %]Modify authority type[% ELSE %]New authority type[% END %]
5 [% ELSIF ( delete_confirm ) %]
6 › Confirm deletion of authority type
9 [% INCLUDE 'doc-head-close.inc' %]
10 <script type="text/javascript">
12 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
13 function isNotNull(f,noalert) {
14 if (f.value.length ==0) {
19 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
21 var x=f.value.toUpperCase();
25 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
29 if (f.authtypecode.value.length==0) {
30 _alertString += "\n- " + _("Authority type : code missing");
32 if (!(isNotNull(window.document.Aform.authtypetext,1))) {
33 _alertString += "\n- " + _("Description missing");
35 if (_alertString.length==0) {
36 document.Aform.submit();
38 alertString2 = _("Form not submitted because of the following problem(s)");
39 alertString2 += "\n------------------------------------------------------------------------------------\n";
40 alertString2 += _alertString;
45 $(document).ready(function() {
46 new YAHOO.widget.Button("authtype");
51 <body id="admin_authtypes" class="admin">
52 [% INCLUDE 'header.inc' %]
53 [% INCLUDE 'cat-search.inc' %]
55 <div id="breadcrumbs">
56 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
57 › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
58 › <a href="[% script_name %]">Authority types</a>
60 › [% IF ( authtypecode ) %]Modify[% ELSE %]New[% END %] Authority type
61 [% ELSIF ( delete_confirm ) %]
62 › Confirm deletion of authority type
66 <div id="doc3" class="yui-t2">
73 <form action="[% script_name %]" name="Aform" method="post">
74 <fieldset class="rows">
76 [% IF ( authtypecode ) %]
84 [% IF ( authtypecode ) %]
85 <span class="label">Authority type</span>
86 <input type="hidden" name="op" value="add_validate" />
87 <input type="hidden" name="checked" value="0" />
88 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />[% authtypecode %]
90 <label for="authtypecode">Authority type: </label>
91 <input id="authtypecode" type="text" name="authtypecode" size="10" maxlength="10" onblur="toUC(this)" />
94 <li><label for="authtypetext">Description: </label><input type="text" id="authtypetext" name="authtypetext" size="40" maxlength="80" value="[% authtypetext |html %]" /></li>
95 <li><label for="summary">Summary: </label><textarea id="summary" name="summary" cols="55" rows="7">[% summary %]</textarea></li>
97 <p class="tip">Note: for 'Authority field to copy', enter the authority field that should be copied from the authority record to the bibliographic record. E.g., in MARC21, field 100 in the authority record should be copied to field 100 in the bibliographic record</p>
98 <label for="auth_tag_to_report">Authority field to copy: </label><input type="text" id="auth_tag_to_report" name="auth_tag_to_report" size="5" maxlength="3" value="[% auth_tag_to_report %]" />
99 <input type="hidden" name="op" value="add_validate" />
100 [% IF ( authtypecode ) %]
101 <input type="hidden" name="modif" value="1" />
106 <fieldset class="action"><input type="submit" value="Submit" onclick="Check(this.form); return false;" />
107 <a class="cancel" href="[% script_name %]">Cancel</a>
112 [% IF ( delete_confirm ) %]
113 <div class="dialog alert"><h3>Confirm deletion of authority structure definition for <span class="ex">'[% authtypetext %]' ([% authtypecode %])</span></h3>
115 <p>This record is used <strong>[% total %]</strong> times</p>
117 <form action="[% script_name %]" method="post"><input type="hidden" name="op" value="delete_confirmed" />
118 <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
119 <fieldset class="action"><input type="submit" class="approve" value="Yes, Delete" />
121 <form action="[% script_name %]" method="get"><input type="submit" class="deny" value="No, Do Not Delete" /></form>
129 <li><a id="authtype" href="[% script_name %]?op=add_form">New authority type</a></li>
132 <h1>Authority types</h1>
133 <p>Define authority types, then authority MARC structure in the same way you define itemtypes and biblio MARC tag structure. Authority values are managed through plugins</p>
139 <th>Auth field copied</th>
145 [% FOREACH loo IN loop %]
146 [% IF ( loop.odd ) %]
149 <tr class="highlight">
151 <td>[% loo.authtypecode %]</td>
152 <td>[% loo.authtypetext %]</td>
153 <td>[% loo.summary %]</td>
154 <td>[% loo.auth_tag_to_report %]</td>
155 <td><a href="auth_tag_structure.pl?authtypecode=[% loo.authtypecode %]" class="button parameters" >MARC structure</a></td>
156 <td><a href="[% loo.script_name %]?op=add_form&authtypecode=[% loo.authtypecode |html %]">Edit</a></td>
157 <td><a href="[% loo.script_name %]?op=delete_confirm&authtypecode=[% loo.authtypecode |html %]">Delete</a></td>
162 [% IF ( previous ) %]<p><a href="[% previous %]"><< Previous</a></p>[% END %]
163 [% IF ( next ) %]<p><a href="[% next %]">Next >></a></p>[% END %]
169 [% INCLUDE 'admin-menu.inc' %]
172 [% INCLUDE 'intranet-bottom.inc' %]