4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>[% IF ( authid ) %]Modify authority #[% authid | html %] ([% authtypetext | html %])[% ELSE %]Adding authority ([% authtypetext | html %])[% END %] › Authorities › Koha</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% Asset.js("lib/hc-sticky.js") | $raw %]
9 [% IF Koha.Preference('CreateAVFromCataloguing') && CAN_user_parameters_manage_auth_values %]
10 var auth_values_creation = 1;
12 var auth_values_creation = 0;
15 [% INCLUDE 'select2.inc' %]
16 [% Asset.js("js/cataloging.js") | $raw %]
19 $(window).load(function(){
23 $(document).ready(function() {
25 $("a[data-toggle='tab']").on("shown.bs.tab", function (e) {
26 $( e.target.hash + " .input_marceditor:visible:eq(0)").focus();
29 /* On page load, check for location.hash in the page URL */
30 /* If present the location hash will be used to activate the correct tab */
31 var hash = location.hash;
32 var hashPieces = hash.split('?');
33 if( hashPieces[0] !== "" ){
34 selectTab( hashPieces[0] );
35 window.scrollTo( 0, 0 );
38 $( "ul.sortable_field", "#authoritytabs" ).sortable();
39 $( "ul.sortable_subfield", "#authoritytabs" ).sortable();
41 Sticky = $("#toolbar");
44 stickyClass: "floating"
46 $("#addauth").click(function(){
51 $("#z3950submit").click(function(){
52 var strQuery = GetZ3950Terms();
53 var index = "&index=[% index | html %]";
55 window.open("/cgi-bin/koha/cataloguing/z3950_auth_search.pl?authid=[% authid | html %]"+strQuery+index,"z3950search",'width=800,height=500,location=yes,toolbar=no,scrollbars=yes,resize=yes');
60 $(".toolbar-tabs a").on("click",function(e){
62 selectTab( this.hash );
65 $(".tag_anchor").on("click", function(e){
67 $(".tag_anchor").removeClass("selected");
68 $(this).addClass("selected");
70 var linkid = link.substring( link.indexOf("#") + 1 );
71 window.scrollTo( 0, getScrollto( linkid, "toolbar" ) );
74 $("body").on("click", ".linkfield", function(e){
76 var tab = $(this).data("tab");
77 var field = $(this).data("field");
78 var tablink = $("a[data-tabid='" + tab + "']" );
80 window.scrollTo( 0, getScrollto( field, "toolbar" ) );
84 function selectTab( tablink ){
85 let a = $("a[href='" + tablink + "']");
86 $(".toolbar-tabs li").removeClass("selected");
87 a.tab("show").parent().addClass("selected");
88 var tabid = a.data("tabid");
89 $(".tag_anchors").removeClass("tab_selected").hide();
90 $(".tag_anchors_" + tabid ).addClass("tab_selected").show();
94 * Returns a roughly ideal position to scroll an element into view
95 * @param {string} target - The HTML id of the element to scroll into view
96 * @param {string} elemid - The HTML id of the element which might obscure
97 * the view of the target element e.g. a floating toolbar
98 * @return {number} - The y-coordinate to pass to window.scrollTo()
100 function getScrollto( target, elemid ){
101 var dest = $("#" + target );
102 var yoffset = dest.offset();
105 var element = $("#" + elemid );
106 var elem_height = element.outerHeight();
110 return yoffset.top - elem_height - 20;
115 * check if z3950 mandatories are set or not
117 function GetZ3950Terms(){
118 var strQuery="&authtypecode="+document.forms['f'].authtypecode.value;
119 var mandatories = new Array();
120 var mandatories_label = new Array();
121 [% 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 %]");
122 mandatories_label.push("[% subfield_loo.z3950_mandatory | html %]");[% END %][% END %][% END %][% END %]
124 for(var i=0,len=mandatories.length; i<len ; i++){
125 var field_value = document.getElementById(mandatories[i]).value;
127 strQuery += "&"+mandatories_label[i]+"="+encodeURIComponent(field_value);
134 * check if mandatory subfields are written
136 function AreMandatoriesNotOk(){
137 var mandatories = new Array();
138 var mandatoriesfields = new Array();
139 var tab = new Array();
140 var label = new Array();
141 [% FOREACH BIG_LOO IN BIG_LOOP %]
142 [% FOREACH innerloo IN BIG_LOO.innerloop %]
143 [% IF ( innerloo.mandatory ) %]
144 mandatoriesfields.push(new Array("[% innerloo.tag | html %]","[% innerloo.index | html %][% innerloo.random | html %]","[% innerloo.index | html %]"));
146 [% FOREACH subfield_loo IN innerloo.subfield_loop %]
147 [% IF ( subfield_loo.mandatory ) %]mandatories.push("[% subfield_loo.id | html %]");
148 tab.push("[% BIG_LOO.number | html %]");
149 label.push("[% To.json(subfield_loo.marc_lib) | html %]");
155 for(var i=0,len=mandatories.length; i<len ; i++){
156 var id_string = mandatories[i];
157 // alert (id_string);
158 if( ! $("#" + id_string).val() ){
159 var elt = document.getElementById(id_string);
160 if ( elt.nodeName == 'SELECT' ) {
161 $(elt).siblings('.select2').find("span[role='combobox']").addClass('subfield_not_filled');
163 $(elt).addClass('subfield_not_filled');
167 StrAlert += "\t* " + _("%s in tab %s").format(label[i], tab[i]) + "\n";
171 /* Check for mandatories field(not subfields) */
172 for(var i=0,len=mandatoriesfields.length; i<len; i++){
174 arr = mandatoriesfields[i];
175 divid = "tag_" + arr[0] + "_" + arr[1];
176 varegexp = new RegExp("^tag_" + arr[0] + "_code_");
178 if(parseInt(arr[0]) >= 10){
179 elem = document.getElementById(divid);
180 eleminputs = elem.getElementsByTagName('input');
182 for(var j=0,len2=eleminputs.length; j<len2; j++){
184 if(eleminputs[j].name.match(varegexp) && eleminputs[j].value){
185 inputregexp = new RegExp("^tag_" + arr[0] + "_subfield_" + eleminputs[j].value + "_" + arr[2]);
187 for( var k=0; k<len2; k++){
188 if(eleminputs[k].id.match(inputregexp) && eleminputs[k].value){
200 StrAlert += "\t* " + _("Field %s is mandatory, at least one of its subfields must be filled.").format(arr[0]) + "\n";
207 return _("Can't save this record because the following field aren't filled :") + "\n\n" + StrAlert;
213 var StrAlert = AreMandatoriesNotOk();
223 function AddField(field,cntrepeatfield) {
224 document.forms['f'].op.value = "addfield";
225 document.forms['f'].addfield_field.value=field;
226 document.forms['f'].repeat_field.value=cntrepeatfield;
230 function addauthority() {
231 X = document.forms[0].authtype.value;
232 window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
234 function searchauthority() {
235 X = document.forms[0].authtype2.value;
236 Y = document.forms[0].value.value;
237 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";
239 function confirmnotdup(redirect){
240 $("#confirm_not_duplicate").attr("value","1");
244 [% Asset.css("css/addbiblio.css") | $raw %]
247 <body id="auth_authorities" class="auth">
250 <div>Loading, please wait...</div>
253 [% INCLUDE 'header.inc' %]
255 [% WRAPPER 'sub-header.inc' %]
256 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
259 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
262 <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
267 <a href="#" aria-current="page">
268 Modify authority #[% authid | html %] ([% authtypetext | html %])
274 <a href="#" aria-current="page">
275 Adding authority [% authtypetext | html %]
281 </nav> <!-- /#breadcrumbs -->
284 <div class="main container-fluid">
286 <div class="col-md-10 col-md-offset-1">
289 <h1>Modify authority #[% authid | html %] [% authtypetext | html %]</h1>
291 <h1>Adding authority [% authtypetext | html %]</h1>
294 [% IF ( duplicateauthid ) %]
295 <div class="dialog alert">
296 <h3>Duplicate record suspected</h3>
297 <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 %]&popup=1', 'DuplicateAuthority','800','600'); return false;" class="button">[% duplicateauthvalue | html %]</a> ?</p>
299 <form action="authorities.pl" method="get">
300 <input type="hidden" name="authid" value="[% duplicateauthid | html %]" />
301 <button type="submit" class="new"><i class="fa fa-pencil"></i> Yes: Edit existing authority</button>
303 <form action="authorities.pl" method="get">
304 <button class="new" onclick="confirmnotdup('items'); return false;"><i class="fa fa-save"></i> No: Save as new authority</button>
307 [% END # /IF duplicateauthid %]
309 <form method="post" name="f" action="/cgi-bin/koha/authorities/authorities.pl">
310 <input type="hidden" name="op" value="add" />
311 <input type="hidden" name="addfield_field" value="" />
312 <input type="hidden" name="repeat_field" value="" />
313 <input type="hidden" name="authtypecode" value="[% authtypecode | html%]" />
314 <input type="hidden" name="authid" value="[% authid | html %]" />
315 <input type="hidden" name="index" value="[% index | html %]" />
316 <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
318 <div id="toolbar" class="btn-toolbar">
319 <div class="btn-group"><a href="#" id="addauth" class="btn btn-primary" accesskey="w"><i class="fa fa-save"></i> Save</a></div>
320 <div class="btn-group">
322 <a class="btn btn-default" id="z3950submit" href="#"><i class="fa fa-search"></i> Replace record via Z39.50/SRU search</a>
324 <a class="btn btn-default" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a>
327 <div class="btn-group">
329 <a class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | url %]">Cancel</a>
331 <a class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/authorities-home.pl">Cancel</a>
334 <div class="toolbar-tabs-container">
335 [% IF ( BIG_LOOP && BIG_LOOP.size > 1 ) %]
336 <ul class="toolbar-tabs" role="tablist">
337 [%- FOREACH BIG_LOO IN BIG_LOOP -%]
339 <li role="presentation" class="active selected">
341 <li role="presentation">
343 <a data-tabid="[% BIG_LOO.number | html %]" href="#tab[% BIG_LOO.number | html %]XX" aria-controls="#tab[% BIG_LOO.number | html %]XX" role="tab" data-toggle="tab">[% BIG_LOO.number | html %]</a>
348 <ul class="tag_anchors_list">
349 [% FOREACH BIG_LOO IN BIG_LOOP %]
350 [% IF loop.first %][% SET tab_selected = "tab_selected" %][% ELSE %][% SET tab_selected = "" %][% END %]
351 [% FOREACH innerloo IN BIG_LOO.innerloop %]
352 [% IF ( innerloo.tag ) %]
353 <li class="tag_anchors tag_anchors_[% BIG_LOO.number | html %] [% tab_selected | html %]">
354 <a class="tag_anchor" id="tag_anchor_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]" title="tag_anchor_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]" href="#div_indicator_tag_[% innerloo.tag | uri %]_[% innerloo.index | uri %][% innerloo.random | uri %]">[% innerloo.tag | uri %]</a>
361 </div> <!-- /#toolbar -->
364 Used in <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&q=an:[% authid | uri %]">[% count | html %] record(s)</a>
366 This authority is not used in any records.
369 <div id="authoritytabs" class="toptabs numbered">
370 <div class="tab-content">
371 [% FOREACH BIG_LOO IN BIG_LOOP %]
373 <div id="tab[% BIG_LOO.number | html %]XX" role="tabpanel" class="tab-pane active">
375 <div id="tab[% BIG_LOO.number | html %]XX" role="tabpanel" class="tab-pane">
377 [% IF ( BIG_LOOP.size > 1 ) %]
378 <h2>Section [% BIG_LOO.number | html %]</h2>
381 [% FOREACH innerloo IN BIG_LOO.innerloop %]
382 [% IF ( innerloo.tag ) %]
383 [% IF innerloo.tag != previous %]
384 [% IF previous != "" %]
387 [% previous = innerloo.tag %]
388 [% IF ( innerloo.repeatable ) %]
389 <ul class="sortable_field">
395 [% IF ( innerloo.repeatable ) %]
396 <li class="tag sortable_tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
398 <li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
401 <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
402 [% UNLESS hide_marc %]
403 [% IF advancedMARCEditor %]
404 <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>
406 <span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span>
408 [% IF ( innerloo.fixedfield ) %]
411 class="indicator flat"
412 style="display:none;"
413 name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
416 value="[% innerloo.indicator1 | html %]" />
419 class="indicator flat"
420 style="display:none;"
421 name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
424 value="[% innerloo.indicator2 | html %]" />
428 class="indicator flat"
429 name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
432 value="[% innerloo.indicator1 | html %]" />
435 class="indicator flat"
436 name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
439 value="[% innerloo.indicator2 | html %]" />
440 [% END # /IF ( innerloo.fixedfield ) %] -
442 [% IF ( innerloo.fixedfield ) %]
445 name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
446 value="[% innerloo.indicator1 | html %]" />
449 name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
450 value="[% innerloo.indicator2 | html %]" />
454 name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
455 value="[% innerloo.indicator1 | html %]" />
458 name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
459 value="[% innerloo.indicator2 | html %]" />
460 [% END # /IF ( innerloo.fixedfield ) %]
461 [% END # /UNLESS hide_marc %]
463 [% UNLESS advancedMARCEditor %]
464 <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>
466 <span class="field_controls">
467 [% IF ( innerloo.repeatable ) %]
468 <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">
469 <img src="[% interface | html %]/[% theme | html %]/img/repeat-tag.png" alt="Repeat this tag" />
472 <a href="#" tabindex="1" class="buttonMinus" onclick="UnCloneField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;" title="Delete this tag">
473 <img src="[% interface | html %]/[% theme | html %]/img/delete-tag.png" alt="Delete this tag" />
475 </span> <!-- /.field_controls -->
476 </div> <!-- /div.tag_title -->
478 <ul class="sortable_subfield">
479 [% FOREACH subfield_loo IN innerloo.subfield_loop %]
480 <!-- One line on the marc editor -->
481 <li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]">
483 [% UNLESS hide_marc %]
484 <div class="subfieldcode">
486 title="[% subfield_loo.marc_lib | $raw %]"
487 style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
488 name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
489 value="[% subfield_loo.subfield | html %]"
497 name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
498 value="[% subfield_loo.subfield | html %]" />
499 [% END # /UNLESS hide_marc %]
501 [% UNLESS advancedMARCEditor %]
502 [% IF ( subfield_loo.mandatory ) %]
503 <div class="subfield subfield_mandatory">
505 <div class="subfield">
507 [% IF ( subfield_loo.fixedfield ) %]
508 <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">
510 <label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" class="labelsubfield">
512 [% subfield_loo.marc_lib | $raw %]
514 </div> <!-- /.subfield -->
515 [% END # UNLESS advancedMARCEditor %]
517 [% SET mv = subfield_loo.marc_value %]
518 <div id="field_marceditor[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]" class="field_marceditor">
519 [% IF ( mv.type == 'select' ) %]
520 [% IF mv.category AND CAN_user_parameters_manage_auth_values %]
521 <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor" id="[%- mv.id | html -%]" data-category="[% mv.category | html %]">
523 <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]">
525 [% FOREACH aval IN mv.values %]
526 [% IF aval == mv.default %]
527 <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
529 <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
533 [% ELSIF ( mv.type == 'text1' ) %]
534 <input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" />
535 [% ELSIF ( mv.type == 'text2' ) %]
536 <input type="text" id="[%- mv.id | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" />
537 [% ELSIF ( mv.type == 'text' ) %]
538 <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 -%]" />
539 [% ELSIF ( mv.type == 'textarea' ) %]
540 <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>
541 [% ELSIF ( mv.type == 'hidden' ) %]
542 <input tabindex="1" type="hidden" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
543 [% ELSIF ( mv.type == 'hidden_simple' ) %]
544 <input type="hidden" name="[%- mv.name | html -%]" />
545 [% END # /IF mv.type %]
546 </div> <!-- /.field_marceditor -->
548 [% IF ( subfield_loo.mandatory ) %]
549 <div class="subfield_loop_mandatory">
550 <span class="required">Required</span>
554 <div class="subfield_controls">
555 [% IF ( mv.type == 'text1' ) %]
556 <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>
557 [% ELSIF ( mv.type == 'text2' ) %]
559 <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a>
561 <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor">...</a>
563 [% mv.javascript | $raw %]
564 [% END #/IF ( mv.type == 'text1' ) %]
565 [% IF ( subfield_loo.repeatable ) %]
566 <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;">
567 <img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
569 <a href="#" class="buttonMinus" tabindex="1" onclick="UnCloneField('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]'); return false;">
570 <img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" />
572 [% END # /IF ( subfield_loo.repeatable ) %]
573 </div> <!-- /.subfield_controls -->
574 </li> <!-- /.subfield_line -->
575 [% END # /FOREACH subfield_loo %]
576 </ul> <!-- /.sortable_subfield -->
578 [% END # /IF ( innerloo.tag ) %]
579 [% END # /FOREACH innerloo %]
580 </ul> <!-- /.sortable_field -->
581 </div> <!-- /#tab[% BIG_LOO.number | html %]XX -->
582 [% END #/FOREACH BIG_LOO %]
583 </div> <!-- /.tab-content -->
584 </div> <!-- /#authoritytabs -->
586 <div name="hidden" id="hidden" class="tab">
587 [% FOREACH hidden_loo IN hidden_loop %]
588 <input type="hidden" name="tag" value="[% hidden_loo.tag | html %]" />
589 <input type="hidden" name="subfield" value="[% hidden_loo.subfield | html %]" />
590 <input type="hidden" name="mandatory" value="[% hidden_loo.mandatory | html %]" />
591 <input type="hidden" name="kohafield" value="[% hidden_loo.kohafield | html %]" />
592 <input type="hidden" name="tag_mandatory" value="[% hidden_loo.tag_mandatory | html %]" />
594 </div> <!-- /.tab -->
595 [% IF ( oldauthnumtagfield ) %]
596 <input type="hidden" name="tag" value="[% oldauthnumtagfield | html %]" />
597 <input type="hidden" name="subfield" value="[% oldauthnumtagsubfield | html %]" />
598 <input type="hidden" name="field_value" value="[% authid | html %]" />
599 <input type="hidden" name="mandatory" value="0" />
600 <input type="hidden" name="kohafield" value="[% kohafield | html %]" />
601 <input type="hidden" name="tag_mandatory" value="[% tag_mandatory | html %]" />
602 <input type="hidden" name="tag" value="[% oldauthtypetagfield | html %]" />
603 <input type="hidden" name="subfield" value="[% oldauthtypetagsubfield | html %]" />
604 <input type="hidden" name="field_value" value="[% authtypecode | html %]" />
609 [% INCLUDE 'modals/cataloguing_create_av.inc' %]
615 [% INCLUDE 'intranet-bottom.inc' %]