1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration › Authority Types
3 <!-- TMPL_IF NAME="add_form" -->
4 › <!-- TMPL_IF NAME="authtypecode" -->Modify authority type<!-- TMPL_ELSE -->New authority type<!-- /TMPL_IF -->
5 <!-- TMPL_ELSIF NAME="delete_confirm" -->
6 › Confirm Deletion of Authority Type
9 <!-- TMPL_INCLUDE NAME="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");
52 <!-- TMPL_INCLUDE NAME="header.inc" -->
53 <!-- TMPL_INCLUDE NAME="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="<!-- TMPL_VAR NAME="script_name" -->">Authority Types</a>
59 <!-- TMPL_IF NAME="add_form" -->
60 › <!-- TMPL_IF NAME="authtypecode" -->Modify<!-- TMPL_ELSE -->New<!-- /TMPL_IF --> Authority Type
61 <!-- TMPL_ELSIF NAME="delete_confirm" -->
62 › Confirm Deletion of Authority Type
66 <div id="doc3" class="yui-t2">
71 <!-- TMPL_IF NAME="add_form" -->
73 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
74 <fieldset class="rows">
76 <!-- TMPL_IF NAME="authtypecode" -->
84 <!-- TMPL_IF NAME="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="<!-- TMPL_VAR NAME="authtypecode" -->" /><!-- TMPL_VAR NAME="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="<!-- TMPL_VAR NAME="authtypetext" ESCAPE="HTML" -->" /></li>
95 <li><label for="summary">Summary: </label><textarea id="summary" name="summary" cols="55" rows="7"><!-- TMPL_VAR NAME="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="<!-- TMPL_VAR NAME="auth_tag_to_report">" />
99 <input type="hidden" name="op" value="add_validate" />
100 <!-- TMPL_IF NAME="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="<!-- TMPL_VAR NAME="script_name" -->">Cancel</a>
112 <!-- TMPL_IF NAME="delete_confirm" -->
113 <div class="dialog alert"><h3>Confirm Deletion of authority structure definition for <span class="ex">'<!-- TMPL_VAR NAME="authtypetext" -->' (<!-- TMPL_VAR NAME="authtypecode" -->)</span></h3>
114 <!-- TMPL_IF NAME="total" -->
115 <p>This record is used <strong><!-- TMPL_VAR NAME="total" --></strong> times</p>
117 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="op" value="delete_confirmed" />
118 <input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
119 <fieldset class="action"><input type="submit" class="approve" value="Yes, Delete" />
121 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="get"><input type="submit" class="deny" value="No, Do Not Delete" /></form>
125 <!-- TMPL_IF NAME="else" -->
129 <li><a id="authtype" href="<!-- TMPL_VAR NAME="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 <!-- TMPL_LOOP NAME="loop" -->
146 <!-- TMPL_IF NAME="__odd__" -->
149 <tr class="highlight">
151 <td><!-- TMPL_VAR NAME="authtypecode" --></td>
152 <td><!-- TMPL_VAR NAME="authtypetext" --></td>
153 <td><!-- TMPL_VAR NAME="summary" --></td>
154 <td><!-- TMPL_VAR NAME="auth_tag_to_report" --></td>
155 <td><a href="auth_tag_structure.pl?authtypecode=<!-- TMPL_VAR NAME="authtypecode" -->" class="button parameters" >MARC structure</a></td>
156 <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&authtypecode=<!-- TMPL_VAR NAME="authtypecode" escape="HTML" -->">Edit</a></td>
157 <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&authtypecode=<!-- TMPL_VAR NAME="authtypecode" escape="HTML" -->">Delete</a></td>
162 <!-- TMPL_IF NAME="previous" --><p><a href="<!-- TMPL_VAR NAME="previous" -->"><< Previous</a></p><!-- /TMPL_IF -->
163 <!-- TMPL_IF NAME="next" --><p><a href="<!-- TMPL_VAR NAME="next" -->">Next >></a></p><!-- /TMPL_IF -->
169 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
172 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->