1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › Authority types
3 [% IF op == 'add_form' %]
4 › [% IF authority_type.authtypecode %]Modify authority type[% ELSE %]New authority type[% END %]
5 [% ELSIF op == 'delete_confirm' %]
6 › Confirm deletion of authority type
9 [% INCLUDE 'doc-head-close.inc' %]
10 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
11 [% INCLUDE 'datatables.inc' %]
12 <script type="text/javascript">
14 $(document).ready(function() {
15 $("#authtypes").dataTable($.extend(true, {}, dataTablesDefaults, {
17 { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
19 "sPaginationType": "four_button"
26 <body id="admin_authtypes" class="admin">
27 [% INCLUDE 'header.inc' %]
28 [% INCLUDE 'cat-search.inc' %]
30 <div id="breadcrumbs">
31 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
32 › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
33 › <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a>
34 [% IF op == 'add_form' %]
35 › [% IF authority_type.authtypecode %]Modify[% ELSE %]New[% END %] Authority type
36 [% ELSIF op == 'delete_confirm' %]
37 › Confirm deletion of authority type
41 <div id="doc3" class="yui-t2">
46 [% FOR m IN messages %]
47 <div class="dialog [% m.type %]">
49 [% CASE 'error_on_update' %]
50 An error occurred when updating this authority type. Perhaps it already exists.
51 [% CASE 'error_on_insert' %]
52 An error occurred when adding this authority type. The authority type code might already exist.
53 [% CASE 'error_on_delete' %]
54 An error occurred when deleting this authority type. Check the logs.
55 [% CASE 'success_on_update' %]
56 Authority type updated successfully.
57 [% CASE 'success_on_insert' %]
58 Authority type added successfully.
59 [% CASE 'success_on_delete' %]
60 Authority type deleted successfully.
69 [% IF op == 'add_form' %]
70 <form action="/cgi-bin/koha/admin/authtypes.pl" name="Aform" method="post" class="validated">
71 <fieldset class="rows">
73 [% IF authority_type.authtypecode %]
81 [% IF authority_type.authtypecode %]
82 <span class="label">Authority type</span>
83 <input type="hidden" name="op" value="add_validate" />
84 <input type="hidden" name="checked" value="0" />
85 <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode %]" />[% authority_type.authtypecode %]
87 <label for="authtypecode" class="required">Authority type: </label>
88 <input id="authtypecode" type="text" class="required" required="required" name="authtypecode" size="10" maxlength="10" onblur="toUC(this)" />
89 <span class="required">Required</span>
93 <label for="authtypetext" class="required">Description: </label>
94 <input type="text" id="authtypetext" name="authtypetext" size="40" maxlength="80" value="[% authority_type.authtypetext %]" class="required" required="required" />
95 <span class="required">Required</span>
98 <label for="summary">Summary: </label>
99 <textarea id="summary" name="summary" cols="55" rows="7">[% authority_type.summary %]</textarea>
102 <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>
103 <label for="auth_tag_to_report">Authority field to copy: </label>
104 <input type="text" id="auth_tag_to_report" name="auth_tag_to_report" size="5" maxlength="3" value="[% authority_type.auth_tag_to_report %]" />
105 <input type="hidden" name="op" value="add_validate" />
106 [% IF authority_type.authtypecode %]
107 <input type="hidden" name="is_a_modif" value="1" />
112 <fieldset class="action">
113 <input type="submit" value="Submit" />
114 <a class="cancel" href="/cgi-bin/koha/admin/authtypes.pl">Cancel</a>
119 [% IF op == 'delete_confirm' %]
120 <div class="dialog alert">
121 [% IF authorities_using_it %]
122 <h3>This authority type cannot be deleted</h3>
123 <p>This record is used <strong>[% authorities_using_it %]</strong> times</p>
124 <a class="cancel" href="/cgi-bin/koha/admin/authtypes.pl">Back to the list</a>
126 <h3>Confirm deletion of authority structure definition for <span class="ex">'[% authority_type.authtypetext %]' ([% authority_type.authtypecode %])</span></h3>
127 <form action="/cgi-bin/koha/admin/authtypes.pl" method="post">
128 <input type="hidden" name="op" value="delete_confirmed" />
129 <input type="hidden" name="authtypecode" value="[% authority_type.authtypecode %]" />
130 <fieldset class="action"><input type="submit" class="approve" value="Yes, delete" /></fieldset>
132 <form action="/cgi-bin/koha/admin/authtypes.pl" method="get">
133 <input type="submit" class="deny" value="No, do not delete" />
139 [% IF op == 'list' %]
140 <div id="toolbar" class="btn-toolbar">
141 <a id="authtype" class="btn btn-small" href="/cgi-bin/koha/admin/authtypes.pl?op=add_form"><i class="fa fa-plus"></i> New authority type</a>
144 <h1>Authority types</h1>
145 <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>
146 <table id="authtypes">
152 <th>Auth field copied</th>
159 [% FOREACH authority_type IN authority_types %]
161 <td>[% authority_type.authtypecode %]</td>
162 <td>[% authority_type.authtypetext %]</td>
163 <td>[% authority_type.summary %]</td>
164 <td>[% authority_type.auth_tag_to_report %]</td>
165 <td><a href="auth_tag_structure.pl?authtypecode=[% authority_type.authtypecode %]" class="button parameters" >MARC structure</a></td>
166 <td><a href="/cgi-bin/koha/admin/authtypes.pl?op=add_form&authtypecode=[% authority_type.authtypecode %]">Edit</a></td>
167 <td><a href="/cgi-bin/koha/admin/authtypes.pl?op=delete_confirm&authtypecode=[% authority_type.authtypecode %]">Delete</a></td>
177 [% INCLUDE 'admin-menu.inc' %]
180 [% INCLUDE 'intranet-bottom.inc' %]