1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration › <!-- TMPL_IF NAME="add_form" --><!-- TMPL_IF NAME="authtypecode" --> Authority Types › Modify authority type<!-- TMPL_ELSE --> Authority Types › New authority type<!-- /TMPL_IF --><!-- TMPL_ELSE --><!-- TMPL_IF NAME="delete_confirm" -->Authority Types › Confirm Deletion of Authority Type<!-- TMPL_ELSE -->Authority Types<!-- /TMPL_IF --><!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript">
6 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7 function isNotNull(f,noalert) {
8 if (f.value.length ==0) {
13 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
15 var x=f.value.toUpperCase();
19 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
20 function isNum(v,maybenull) {
21 var n = new Number(v.value);
25 if (maybenull==0 && v.value=='') {
30 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
32 var t = Date.parse(f.value);
37 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
42 if (f.authtypecode.value.length==0) {
43 _alertString += "\n- " + _("Authority type : code missing");
45 if (!(isNotNull(window.document.Aform.authtypetext,1))) {
46 _alertString += "\n- " + _("Description missing");
48 if (_alertString.length==0) {
49 document.Aform.submit();
51 alertString2 = _("Form not submitted because of the following problem(s)");
52 alertString2 += "\n------------------------------------------------------------------------------------\n";
53 alertString2 += _alertString;
61 <!-- TMPL_INCLUDE NAME="header.inc" -->
62 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
64 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › <!-- TMPL_IF NAME="add_form" --><!-- TMPL_IF NAME="authtypecode" --> <a href="/cgi-bin/koha/admin/authtypes.pl">Authority Types</a> › Modify authority type<!-- TMPL_ELSE --> <a href="/cgi-bin/koha/admin/authtypes.pl">Authority Types</a> › New authority type<!-- /TMPL_IF --><!-- TMPL_ELSE --><!-- TMPL_IF NAME="delete_confirm" --><a href="/cgi-bin/koha/admin/authtypes.pl">Authority Types</a> › Confirm Deletion of Authority Type<!-- TMPL_ELSE -->Authority Types<!-- /TMPL_IF --><!-- /TMPL_IF --></div>
66 <div id="doc3" class="yui-t2">
72 <!-- TMPL_IF NAME="add_form" -->
74 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
75 <fieldset class="rows"><!-- TMPL_IF NAME="authtypecode" -->
76 <legend>Modify authority type</legend>
78 <legend>New authority type</legend>
81 <!-- TMPL_IF NAME="authtypecode" -->
82 <li><label for="authtypecode">Authority type<label><input type="hidden" name="op" value="add_validate" />
83 <input type="hidden" name="checked" value="0" /><input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" /><!-- TMPL_VAR NAME="authtypecode" --></li>
85 <li><label for="authtypecode">Authority type: </label><input id="authtypecode" type="text" name="authtypecode" size="10" maxlength="10" onblur="toUC(this)" /></li>
87 <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>
88 <li><label for="summary">Summary: </label><textarea id="summary" name="summary" cols="55" rows="7"><!-- TMPL_VAR NAME="summary" --></textarea></li>
90 <p>Enter here the number of the tag that will be reported in the biblio (subfield by subfield). For example, in UNIMARC, enter 200 to report every 200 subfield in the 70x biblio</p>
91 <label for="auth_tag_to_report">Report tag: </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">" /></li></ol>
92 <input type="hidden" name="op" value="add_validate" /></fieldset>
93 <fieldset class="action"><input type="submit" value="Submit" onclick="Check(this.form); return false;" /><a class="cancel" href="/cgi-bin/koha/admin/authtypes.pl">Cancel</a></fieldset>
97 <!-- TMPL_IF NAME="delete_confirm" -->
98 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
100 <legend>Confirm Deletion of authority structure definition for <!-- TMPL_VAR NAME="authtypetext" --> (<!-- TMPL_VAR NAME="authtypecode" -->)</legend>
101 <!-- TMPL_IF NAME="total" -->
102 <p>This record is used <strong><!-- TMPL_VAR NAME="total" --></strong> times</p>
104 <input type="hidden" name="op" value="delete_confirmed" />
105 <input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
106 <fieldset class="action"><input type="submit" value="Yes, Delete" /> <a class="cancel" href="/cgi-bin/koha/admin/authtypes.pl">Cancel</a></fieldset></fieldset>
110 <!-- TMPL_IF NAME="else" -->
113 <script type="text/javascript">
115 // prepare DOM for YUI Toolbar
116 $(document).ready(function() {
119 // YUI Toolbar Functions
120 function yuiToolbar() {
121 new YAHOO.widget.Button("authtype");
125 <li><a id="authtype" href="/cgi-bin/koha/admin/authtypes.pl?op=add_form">New Authority Type</a></li>
128 <h1>Authority Types</h1>
129 <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>
135 <th>Tag reported</th>
141 <!-- TMPL_LOOP NAME="loop" -->
143 <td><!-- TMPL_VAR NAME="authtypecode" --></td>
144 <td><!-- TMPL_VAR NAME="authtypetext" --></td>
145 <td><!-- TMPL_VAR NAME="summary" --></td>
146 <td><!-- TMPL_VAR NAME="auth_tag_to_report" --></td>
147 <td><a href="auth_tag_structure.pl?authtypecode=<!-- TMPL_VAR NAME="authtypecode" -->" class="button parameters" >MARC structure</a></td>
148 <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&authtypecode=<!-- TMPL_VAR NAME="authtypecode" escape="HTML" -->">Edit</a></td>
149 <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&authtypecode=<!-- TMPL_VAR NAME="authtypecode" escape="HTML" -->">Delete</a></td>
154 <!-- TMPL_IF NAME="previous" --><p><a href="<!-- TMPL_VAR NAME="previous" -->"><< Previous</a></p><!-- /TMPL_IF -->
155 <!-- TMPL_IF NAME="next" --><p><a href="<!-- TMPL_VAR NAME="next" -->">Next >></a></p><!-- /TMPL_IF -->
161 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
164 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->