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