Bug 26633: Remove jquery.checkboxes.min.js include
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / authorities / authorities.tt
1 [% USE raw %]
2 [% USE To %]
3 [% USE Asset %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha &rsaquo; Authorities &rsaquo; [% IF ( authid ) %]Modify authority #[% authid | html %] ([% authtypetext | html %])[% ELSE %]Adding authority ([% authtypetext | html %])[% END %]</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% Asset.js("lib/hc-sticky.js") | $raw %]
8 <script>
9     var CAN_user_parameters_manage_auth_values = "[% CAN_user_parameters_manage_auth_values | html %]";
10 </script>
11 [% INCLUDE 'select2.inc' %]
12 [% Asset.js("js/cataloging.js") | $raw %]
13
14 <script>
15     $(window).load(function(){
16         $("#loading").hide();
17     });
18     var Sticky;
19     $(document).ready(function() {
20         var tabs = $('#authoritytabs').tabs();
21         $( "ul.sortable_field", tabs ).sortable();
22         $( "ul.sortable_subfield", tabs ).sortable();
23         Sticky = $("#toolbar");
24         Sticky.hcSticky({
25             stickTo: ".main",
26             stickyClass: "floating"
27         });
28         $("#addauth").click(function(){
29             if(Check()){
30                 $("#f").submit();
31             }
32                 });
33         $("#z3950submit").click(function(){
34             var strQuery = GetZ3950Terms();
35             var index = "&index=[% index | html %]";
36             if(strQuery){
37                 window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl?authid=[% authid | html %]"+strQuery+index,"z3950search",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
38             }
39             return false;
40         });
41     });
42
43 /**
44  * check if z3950 mandatories are set or not
45  */
46 function GetZ3950Terms(){
47  var strQuery="&authtypecode="+document.forms['f'].authtypecode.value;
48     var mandatories = new Array();
49     var mandatories_label = new Array();
50     [% FOREACH BIG_LOO IN BIG_LOOP %][% FOREACH innerloo IN BIG_LOO.innerloop %][% FOREACH subfield_loo IN innerloo.subfield_loop %][% IF ( subfield_loo.z3950_mandatory ) %]mandatories.push("[% subfield_loo.id | html %]");
51         mandatories_label.push("[% subfield_loo.z3950_mandatory | html %]");[% END %][% END %][% END %][% END %]
52
53     for(var i=0,len=mandatories.length; i<len ; i++){
54         var field_value = document.getElementById(mandatories[i]).value;
55         if( field_value ){
56             strQuery += "&"+mandatories_label[i]+"="+field_value;
57         }
58     }
59     return strQuery;
60 }
61
62 /**
63  * check if mandatory subfields are written
64  */
65 function AreMandatoriesNotOk(){
66     var mandatories = new Array();
67     var mandatoriesfields = new Array();
68     var   tab = new Array();
69     var label = new Array();
70     [% FOREACH BIG_LOO IN BIG_LOOP %]
71         [% FOREACH innerloo IN BIG_LOO.innerloop %]
72                         [% IF ( innerloo.mandatory ) %]
73                         mandatoriesfields.push(new Array("[% innerloo.tag | html %]","[% innerloo.index | html %][% innerloo.random | html %]","[% innerloo.index | html %]"));
74             [% END %]
75                 [% FOREACH subfield_loo IN innerloo.subfield_loop %]
76                         [% IF ( subfield_loo.mandatory ) %]mandatories.push("[% subfield_loo.id | html %]");
77                     tab.push("[% BIG_LOO.number | html %]");
78                     label.push("[% To.json(subfield_loo.marc_lib) | $raw %]");
79                         [% END %]
80                         [% END %]
81                 [% END %]
82         [% END %]
83     var StrAlert = "";
84     for(var i=0,len=mandatories.length; i<len ; i++){
85         var id_string = mandatories[i];
86         // alert (id_string);
87         if( ! $("#" + id_string).val() ){
88             var elt = document.getElementById(id_string);
89             if ( elt.nodeName == 'SELECT' ) {
90                 $(elt).siblings('.select2').find("span[role='combobox']").addClass('subfield_not_filled');
91             } else {
92                 $(elt).addClass('subfield_not_filled');
93             }
94
95             $(elt).focus();
96             StrAlert += "\t* " + _("%s in tab %s").format(label[i], tab[i]) + "\n";
97         }
98     }
99     
100     /* Check for mandatories field(not subfields) */
101     for(var i=0,len=mandatoriesfields.length; i<len; i++){
102         isempty  = true;
103         arr      = mandatoriesfields[i];
104         divid    = "tag_" + arr[0] + "_" + arr[1];
105         varegexp = new RegExp("^tag_" + arr[0] + "_code_");
106
107                 if(parseInt(arr[0]) >= 10){
108                 elem = document.getElementById(divid);
109                 eleminputs = elem.getElementsByTagName('input');
110                 
111                 for(var j=0,len2=eleminputs.length; j<len2; j++){
112         
113                         if(eleminputs[j].name.match(varegexp) && eleminputs[j].value){
114                                         inputregexp = new RegExp("^tag_" + arr[0] + "_subfield_" + eleminputs[j].value + "_" + arr[2]);
115                                         
116                                         for( var k=0; k<len2; k++){
117                                                 if(eleminputs[k].id.match(inputregexp) && eleminputs[k].value){
118                                                         isempty = false
119                                                 }
120                                         }
121                         }
122                 }
123         }else{
124                 isempty = false;
125         }
126         
127         if(isempty){
128                 flag = 1;
129                 StrAlert += "\t* " + _("Field %s is mandatory, at least one of its subfields must be filled.").format(arr[0]) + "\n";
130         }
131         
132     }
133     
134     
135     if(StrAlert){
136         return _("Can't save this record because the following field aren't filled :") + "\n\n" + StrAlert;
137     }
138     return false;
139 }
140
141 function Check(){
142     var StrAlert = AreMandatoriesNotOk();
143     if( ! StrAlert ){
144         document.f.submit();
145         return true;
146     } else {
147         alert(StrAlert);
148         return false;
149     }
150 }
151
152 function AddField(field,cntrepeatfield) {
153     document.forms['f'].op.value = "addfield";
154     document.forms['f'].addfield_field.value=field;
155     document.forms['f'].repeat_field.value=cntrepeatfield;
156     document.f.submit();
157 }
158
159 function addauthority() {
160     X = document.forms[0].authtype.value;
161     window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
162 }
163 function searchauthority() {
164     X = document.forms[0].authtype2.value;
165     Y = document.forms[0].value.value;
166     window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains";
167 }
168 function confirmnotdup(redirect){
169     $("#confirm_not_duplicate").attr("value","1");
170     Check();
171 }
172 </script>
173 [% Asset.css("css/addbiblio.css") | $raw %]
174
175 </head>
176 <body id="auth_authorities" class="auth">
177
178 <div id="loading">
179    <div>Loading, please wait...</div>
180 </div>
181
182 [% INCLUDE 'header.inc' %]
183
184 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> &rsaquo; [% IF ( authid ) %]Modify authority #[% authid | html %] ([% authtypetext | html %])[% ELSE %]Adding authority [% authtypetext | html %][% END %]  </div>
185
186 <div class="main container-fluid">
187     <div class="row">
188         <div class="col-md-10 col-md-offset-1">
189
190 [% IF ( authid ) %]
191 <h1>Modify authority #[% authid | html %] [% authtypetext | html %]</h1>
192 [% ELSE %]
193 <h1>Adding authority [% authtypetext | html %]</h1>
194 [% END %]
195
196 [% IF ( duplicateauthid ) %]
197         <div class="dialog alert">
198                 <h3>Duplicate record suspected</h3>
199                 <p>Is this a duplicate of <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% duplicateauthid | uri %]" class="popup" onclick="openWindow('/cgi-bin/koha/authorities/detail.pl?authid=[% duplicateauthid | html %]&amp;popup=1', 'DuplicateAuthority','800','600'); return false;" class="button">[% duplicateauthvalue | html %]</a> ?</p>
200
201                 <form action="authorities.pl" method="get">
202                     <input type="hidden" name="authid" value="[% duplicateauthid | html %]" />
203                     <button type="submit" class="new"><i class="fa fa-pencil"></i> Yes: Edit existing authority</button>
204                 </form>
205                 <form action="authorities.pl" method="get">
206                     <button class="new" onclick="confirmnotdup('items'); return false;"><i class="fa fa-save"></i> No: Save as new authority</button>
207                 </form>
208         </div>
209 [% END %]
210
211 <form method="post" name="f" action="/cgi-bin/koha/authorities/authorities.pl">
212     <input type="hidden" name="op" value="add" />
213     <input type="hidden" name="addfield_field" value="" />
214     <input type="hidden" name="repeat_field" value="" />
215     <input type="hidden" name="authtypecode" value="[% authtypecode | html%]" />
216     <input type="hidden" name="authid" value="[% authid | html %]" />
217     <input type="hidden" name="index" value="[% index | html %]" />
218     <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
219
220     <div id="toolbar" class="btn-toolbar">
221         <div class="btn-group"><a href="#" id="addauth" class="btn btn-default" accesskey="w"><i class="fa fa-save"></i> Save</a></div>
222         <div class="btn-group">
223             [% IF ( authid ) %]
224                 <a class="btn btn-default" id="z3950submit" href="#"><i class="fa fa-search"></i> Replace record via Z39.50/SRU search</a>
225             [% ELSE %]
226                 <a class="btn btn-default" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a>
227             [% END %]
228         </div>
229         <div class="btn-group">
230             [% IF ( authid ) %]
231                 <a class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | url %]">Cancel</a>
232             [% ELSE %]
233                 <a class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/authorities-home.pl">Cancel</a>
234             [% END %]
235         </div>
236     </div>
237
238 <div id="authoritytabs" class="toptabs numbered">
239     <ul>
240         [% FOREACH BIG_LOO IN BIG_LOOP %]
241         <li><a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a></li>
242         [% END %]
243     </ul>
244
245 [% FOREACH BIG_LOO IN BIG_LOOP %]
246     <div id="tab[% BIG_LOO.number | html %]XX">
247
248     [% previous = "" %]
249     [% FOREACH innerloo IN BIG_LOO.innerloop %]
250     [% IF ( innerloo.tag ) %]
251     [% IF innerloo.tag != previous %]
252         [% IF previous != "" %]
253             </ul>
254         [% END %]
255         [% previous = innerloo.tag %]
256         [% IF ( innerloo.repeatable ) %]
257             <ul class="sortable_field">
258         [% ELSE %]
259             <ul>
260         [% END %]
261     [% END %]
262     [% IF ( innerloo.repeatable ) %]
263         <li class="tag sortable_tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
264     [% ELSE %]
265         <li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
266     [% END %]
267         <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
268         [% UNLESS hide_marc %]
269             [% IF advancedMARCEditor %]
270                 <a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to Expand this Tag" onclick="ExpandField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;">[% innerloo.tag | html %]</a>
271             [% ELSE %]
272                 <span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span>
273             [% END %]
274                 [% IF ( innerloo.fixedfield ) %]
275                     <input type="text"
276                         tabindex="1"
277                         class="indicator flat"
278                         style="display:none;"
279                         name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
280                         size="1"
281                         maxlength="1"
282                         value="[% innerloo.indicator1 | html %]" />
283                     <input type="text"
284                         tabindex="1"
285                         class="indicator flat"
286                         style="display:none;"
287                         name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
288                         size="1"
289                         maxlength="1"
290                         value="[% innerloo.indicator2 | html %]" />
291                 [% ELSE %]
292                     <input type="text"
293                         tabindex="1"
294                         class="indicator flat"
295                         name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
296                         size="1"
297                         maxlength="1"
298                         value="[% innerloo.indicator1 | html %]" />
299                     <input type="text"
300                         tabindex="1"
301                         class="indicator flat"
302                         name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
303                         size="1"
304                         maxlength="1"
305                         value="[% innerloo.indicator2 | html %]" />
306                 [% END %] -
307         [% ELSE %]
308                 [% IF ( innerloo.fixedfield ) %]
309                     <input type="hidden"
310                         tabindex="1"
311                         name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
312                         value="[% innerloo.indicator1 | html %]" />
313                     <input type="hidden"
314                         tabindex="1"
315                         name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
316                         value="[% innerloo.indicator2 | html %]" />
317                 [% ELSE %]
318                     <input type="hidden"
319                         tabindex="1"
320                         name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
321                         value="[% innerloo.indicator1 | html %]" />
322                     <input type="hidden"
323                         tabindex="1"
324                         name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
325                         value="[% innerloo.indicator2 | html %]" />
326                 [% END %]
327         [% END %]
328
329             [% UNLESS advancedMARCEditor %]
330                 <a href="#" tabindex="1" class="expandfield" onclick="ExpandField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;" title="Click to Expand this Tag">[% innerloo.tag_lib | html %]</a>
331             [% END %]
332                 <span class="field_controls">
333                 [% IF ( innerloo.repeatable ) %]
334                     <a href="#" tabindex="1" class="buttonPlus" onclick="CloneField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]','[% hide_marc | html %]','[% advancedMARCEditor | html %]'); return false;" title="Repeat this Tag">
335                         <img src="[% interface | html %]/[% theme | html %]/img/repeat-tag.png" alt="Repeat this Tag" />
336                     </a>
337                 [% END %]
338                     <a href="#" tabindex="1" class="buttonMinus" onclick="UnCloneField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;" title="Delete this Tag">
339                         <img src="[% interface | html %]/[% theme | html %]/img/delete-tag.png" alt="Delete this Tag" />
340                     </a>
341                 </span> <!-- /.field_controls -->
342
343         </div> <!-- /div.tag_title -->
344
345         <ul class="sortable_subfield">
346         [% FOREACH subfield_loo IN innerloo.subfield_loop %]
347             <!--  One line on the marc editor -->
348             <li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]">
349
350                 [% UNLESS hide_marc %]
351                 <div class="subfieldcode">
352                         <input type="text"
353                             title="[% subfield_loo.marc_lib | $raw %]"
354                             style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
355                             name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
356                             value="[% subfield_loo.subfield | html %]"
357                             size="1"
358                             maxlength="1"
359                             class="flat"
360                             tabindex="0" />
361                 </div>
362                 [% ELSE %]
363                     <input type="hidden"
364                         name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
365                         value="[% subfield_loo.subfield | html %]" />
366                 [% END %]
367
368                 [% UNLESS advancedMARCEditor %]
369                     [% IF ( subfield_loo.mandatory ) %]
370                         <div class="subfield subfield_mandatory">
371                     [% ELSE %]
372                         <div class="subfield">
373                     [% END %]
374                         [% IF ( subfield_loo.fixedfield ) %]
375                             <label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" style="display:none;" class="labelsubfield">
376                         [% ELSE %]
377                             <label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" class="labelsubfield">
378                         [% END %]
379                             [% subfield_loo.marc_lib | $raw %]
380                         </label>
381                     </div>
382                 [% END %]
383
384                 [% SET mv = subfield_loo.marc_value %]
385                 <div id="field_marceditor[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]" class="field_marceditor">
386                 [% IF ( mv.type == 'select' ) %]
387                     [% IF mv.category AND CAN_user_parameters_manage_auth_values %]
388                         <select name="[%- mv.name | html -%]" tabindex="1" size="1" class="input_marceditor" id="[%- mv.id | html -%]" data-category="[% mv.category | html %]">
389                     [% ELSE %]
390                         <select name="[%- mv.name | html -%]" tabindex="1" size="1" class="input_marceditor select2" id="[%- mv.id | html -%]">
391                     [% END %]
392
393                      [% FOREACH aval IN mv.values %]
394                          [% IF aval == mv.default %]
395                          <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
396                          [% ELSE %]
397                          <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
398                          [% END %]
399                      [% END %]
400                      </select>
401                 [% ELSIF ( mv.type == 'text1' ) %]
402                     <input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" />
403                 [% ELSIF ( mv.type == 'text2' ) %]
404                     <input type="text" id="[%- mv.id | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" />
405                 [% ELSIF ( mv.type == 'text' ) %]
406                     <input type="text" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" size="67" maxlength="[%- mv.maxlength | html -%]" />
407                 [% ELSIF ( mv.type == 'textarea' ) %]
408                     <textarea cols="70" rows="4" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" class="input_marceditor" tabindex="1" size="67" maxlength="[%- mv.maxlength | html -%]">[%- mv.value | html -%]</textarea>
409                 [% ELSIF ( mv.type == 'hidden' ) %]
410                     <input tabindex="1" type="hidden" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
411                 [% ELSIF ( mv.type == 'hidden_simple' ) %]
412                     <input type="hidden" name="[%- mv.name | html -%]" />
413                 [% END %]
414                 </div>
415                 [% IF ( subfield_loo.mandatory ) %]
416                     <div class="subfield_loop_mandatory">
417                         <span class="required">Required</span>
418                     </div>
419                 [% END %]
420                 <div class="subfield_controls">
421                     [% IF ( mv.type == 'text1' ) %]
422                         <a href="#" class="buttonDot tag_editor" onclick="openAuth(this.parentNode.parentNode.getElementsByTagName('input')[1].id,'[%- mv.authtypecode | html -%]','auth'); return false;" tabindex="1" title="Tag editor">Tag editor</a>
423                     [% ELSIF ( mv.type == 'text2' ) %]
424                         [% IF mv.noclick %]
425                             <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a>
426                         [% ELSE %]
427                             <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor">...</a>
428                         [% END %]
429                         [% mv.javascript | $raw %]
430                     [% END %]
431                     [% IF ( subfield_loo.repeatable ) %]
432                         <a href="#" class="buttonPlus" tabindex="1" onclick="CloneSubfield('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]','[% advancedMARCEditor | html %]'); return false;">
433                             <img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
434                         </a>
435                         <a href="#" class="buttonMinus" tabindex="1" onclick="UnCloneField('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]'); return false;">
436                             <img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" />
437                         </a>
438                     [% END %]
439                 </div>
440                                 </li>
441                                 <!-- End of the line -->
442                             [% END %]
443                             </ul> <!-- /.sortable_subfield -->
444                         </li>
445                     [% END %]<!-- if innerloo.tag -->
446                 [% END %]<!-- BIG_LOO.innerloop -->
447                 </ul> <!-- /.sortable_field -->
448             </div>
449         [% END %]<!-- BIG_LOOP -->
450     </div><!-- tabs -->
451
452 <div name="hidden" id="hidden" class="tab">
453 [% FOREACH hidden_loo IN hidden_loop %]
454     <input type="hidden" name="tag" value="[% hidden_loo.tag | html %]" />
455     <input type="hidden" name="subfield" value="[% hidden_loo.subfield | html %]" />
456     <input type="hidden" name="mandatory" value="[% hidden_loo.mandatory | html %]" />
457     <input type="hidden" name="kohafield" value="[% hidden_loo.kohafield | html %]" />
458     <input type="hidden" name="tag_mandatory" value="[% hidden_loo.tag_mandatory | html %]" />
459 [% END %]
460 </div>
461 [% IF ( oldauthnumtagfield ) %]
462     <input type="hidden" name="tag" value="[% oldauthnumtagfield | html %]" />
463     <input type="hidden" name="subfield" value="[% oldauthnumtagsubfield | html %]" />
464     <input type="hidden" name="field_value" value="[% authid | html %]" />
465     <input type="hidden" name="mandatory" value="0" />
466     <input type="hidden" name="kohafield" value="[% kohafield | html %]" />
467     <input type="hidden" name="tag_mandatory" value="[% tag_mandatory | html %]" />
468     <input type="hidden" name="tag" value="[% oldauthtypetagfield | html %]" />
469     <input type="hidden" name="subfield" value="[% oldauthtypetagsubfield | html %]" />
470     <input type="hidden" name="field_value" value="[% authtypecode | html %]" />
471 [% END %]
472
473 </form>
474
475 [% INCLUDE 'modals/cataloguing_create_av.inc' %]
476
477 </div>
478 </div>
479 </div>
480
481 [% INCLUDE 'intranet-bottom.inc' %]