Bug 14033: Capitalization: confirmation message on deleting an authority type
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / authtypes.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Administration &rsaquo; Authority types
3 [% IF ( add_form ) %]
4 &rsaquo; [% IF ( authtypecode ) %]Modify authority type[% ELSE %]New authority type[% END %]
5 [% ELSIF ( delete_confirm ) %]
6 &rsaquo; Confirm deletion of authority type
7 [% END %]
8 </title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 </head>
11
12 <body id="admin_authtypes" class="admin">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'cat-search.inc' %]
15
16 <div id="breadcrumbs">
17          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
18 &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
19 &rsaquo; <a href="[% script_name %]">Authority types</a>
20 [% IF ( add_form ) %]
21 &rsaquo; [% IF ( authtypecode ) %]Modify[% ELSE %]New[% END %] Authority type
22 [% ELSIF ( delete_confirm ) %]
23 &rsaquo; Confirm deletion of authority type
24 [% END %]
25 </div>
26
27 <div id="doc3" class="yui-t2">
28   <div id="bd">
29         <div id="yui-main">
30           <div class="yui-b">
31
32 [% IF ( add_form ) %]
33
34     <form action="[% script_name %]" name="Aform" method="post" class="validated">
35     <fieldset class="rows">
36     <legend>
37     [% IF ( authtypecode ) %]
38         Modify authority type
39         [% ELSE %]
40         New authority type
41         [% END %]
42     </legend>
43     <ol>
44         <li>
45     [% IF ( authtypecode ) %]
46             <span class="label">Authority type</span>
47             <input type="hidden" name="op" value="add_validate" />
48             <input type="hidden" name="checked" value="0" />
49             <input type="hidden" name="authtypecode" value="[% authtypecode %]" />[% authtypecode %]
50     [% ELSE %]
51             <label for="authtypecode" class="required">Authority type: </label>
52             <input id="authtypecode" type="text" class="required" required="required" name="authtypecode" size="10" maxlength="10" onblur="toUC(this)" />
53             <span class="required">Required</span>
54     [% END %]
55         </li>
56         <li>
57             <label for="authtypetext" class="required">Description: </label><input type="text" id="authtypetext" name="authtypetext" size="40" maxlength="80" value="[% authtypetext |html %]" class="required" required="required" />
58             <span class="required">Required</span>
59         </li>
60                 <li><label for="summary">Summary: </label><textarea id="summary" name="summary" cols="55" rows="7">[% summary %]</textarea></li>
61                 <li>
62                 <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>
63                 <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 %]" />
64                 <input type="hidden" name="op" value="add_validate" />
65         [% IF ( authtypecode ) %]
66         <input type="hidden" name="modif" value="1" />
67         [% END %]
68         </li>
69     </ol>
70         </fieldset>
71     <fieldset class="action">
72         <input type="submit" value="Submit" />
73         <a class="cancel" href="[% script_name %]">Cancel</a>
74     </fieldset>
75         </form>
76 [% END %]
77
78 [% IF ( delete_confirm ) %]
79         <div class="dialog alert"><h3>Confirm deletion of authority structure definition for <span class="ex">'[% authtypetext %]' ([% authtypecode %])</span></h3>
80         [% IF ( total ) %]
81                 <p>This record is used <strong>[% total %]</strong> times</p>
82         [% END %]               
83                         <form action="[% script_name %]" method="post"><input type="hidden" name="op" value="delete_confirmed" />
84                         <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
85             <fieldset class="action"><input type="submit" class="approve" value="Yes, delete" />
86                 </form>
87         <form action="[% script_name %]" method="get"><input type="submit" class="deny" value="No, do not delete" /></form>
88                 </div>
89 [% END %]
90
91 [% IF ( else ) %]
92
93 <div id="toolbar" class="btn-toolbar">
94     <a id="authtype" class="btn btn-small" href="[% script_name %]?op=add_form"><i class="icon-plus"></i> New authority type</a>
95 </div>
96
97 <h1>Authority types</h1>
98 <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>
99 <table>
100         <tr>
101                 <th>Code</th>
102                 <th>Description</th>
103                 <th>Summary</th>
104                 <th>Auth field copied</th>
105                 <th>&nbsp;</th>
106                 <th>Edit</th>
107                 <th>Delete</th>
108         </tr>
109         
110         [% FOREACH loo IN loop %]
111                 <tr>
112                         <td>[% loo.authtypecode %]</td>
113                         <td>[% loo.authtypetext %]</td>
114                         <td>[% loo.summary %]</td>
115                         <td>[% loo.auth_tag_to_report %]</td>
116                         <td><a href="auth_tag_structure.pl?authtypecode=[% loo.authtypecode %]" class="button parameters" >MARC structure</a></td>
117                         <td><a href="[% loo.script_name %]?op=add_form&amp;authtypecode=[% loo.authtypecode |html %]">Edit</a></td>
118                         <td><a href="[% loo.script_name %]?op=delete_confirm&amp;authtypecode=[% loo.authtypecode |html %]">Delete</a></td>
119                 </tr>
120         [% END %]
121 </table>
122
123         [% IF ( previous ) %]<p><a href="[% previous %]">&lt;&lt; Previous</a></p>[% END %]
124         [% IF ( next ) %]<p><a href="[% next %]">Next &gt;&gt;</a></p>[% END %]
125
126 [% END %]
127 </div>
128 </div>
129 <div class="yui-b">
130 [% INCLUDE 'admin-menu.inc' %]
131 </div>
132 </div>
133 [% INCLUDE 'intranet-bottom.inc' %]