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 );
37 selectTab( "#tab0XX_panel" );
40 $( "ul.sortable_field", "#authoritytabs" ).sortable();
41 $( "ul.sortable_subfield", "#authoritytabs" ).sortable();
43 Sticky = $("#toolbar");
46 stickyClass: "floating"
48 $("#addauth").click(function(){
53 $("#z3950submit").click(function(){
54 var strQuery = GetZ3950Terms();
55 var index = "&index=[% index | html %]";
57 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');
62 $(".toolbar-tabs-container .nav-tabs a").on("click",function(e){
64 selectTab( this.hash );
67 $(".tag_anchor").on("click", function(e){
69 $(".tag_anchor").removeClass("selected");
70 $(this).addClass("selected");
72 var linkid = link.substring( link.indexOf("#") + 1 );
73 window.scrollTo( 0, getScrollto( linkid, "toolbar" ) );
76 $("body").on("click", ".linkfield", function(e){
78 var tab = $(this).data("tab");
79 var field = $(this).data("field");
80 var tablink = $("a[data-tabname='tab" + tab + "XX']" ).get(0).hash;
82 window.scrollTo( 0, getScrollto( field, "toolbar" ) );
86 function selectTab( tablink ){
87 let a = $("a[href='" + tablink + "']");
88 $(".toolbar-tabs-container .nav-tabs li").removeClass("selected");
89 a.tab("show").parent().addClass("selected");
90 /* Get number from string like "tab9XX" */
91 var tabid = a.data("tabname").substring(3, 4);
92 $(".tag_anchors").removeClass("tab_selected").hide();
93 $(".tag_anchors_" + tabid ).addClass("tab_selected").show();
97 * Returns a roughly ideal position to scroll an element into view
98 * @param {string} target - The HTML id of the element to scroll into view
99 * @param {string} elemid - The HTML id of the element which might obscure
100 * the view of the target element e.g. a floating toolbar
101 * @return {number} - The y-coordinate to pass to window.scrollTo()
103 function getScrollto( target, elemid ){
104 var dest = $("#" + target );
105 var yoffset = dest.offset();
108 var element = $("#" + elemid );
109 var elem_height = element.outerHeight();
113 return yoffset.top - elem_height - 20;
118 * check if z3950 mandatories are set or not
120 function GetZ3950Terms(){
121 var strQuery="&authtypecode="+document.forms['f'].authtypecode.value;
122 var mandatories = new Array();
123 var mandatories_label = new Array();
124 [% 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 %]");
125 mandatories_label.push("[% subfield_loo.z3950_mandatory | html %]");[% END %][% END %][% END %][% END %]
127 for(var i=0,len=mandatories.length; i<len ; i++){
128 var field_value = document.getElementById(mandatories[i]).value;
130 strQuery += "&"+mandatories_label[i]+"="+encodeURIComponent(field_value);
137 * check if mandatory subfields are written
139 function AreMandatoriesNotOk(){
140 var mandatories = new Array();
141 var mandatoriesfields = new Array();
142 var tab = new Array();
143 var label = new Array();
144 [% FOREACH BIG_LOO IN BIG_LOOP %]
145 [% FOREACH innerloo IN BIG_LOO.innerloop %]
146 [% IF ( innerloo.mandatory ) %]
147 mandatoriesfields.push(new Array("[% innerloo.tag | html %]","[% innerloo.index | html %][% innerloo.random | html %]","[% innerloo.index | html %]"));
149 [% FOREACH subfield_loo IN innerloo.subfield_loop %]
150 [% IF ( subfield_loo.mandatory ) %]mandatories.push("[% subfield_loo.id | html %]");
151 tab.push("[% BIG_LOO.number | html %]");
152 label.push("[% To.json(subfield_loo.marc_lib) | html %]");
158 for(var i=0,len=mandatories.length; i<len ; i++){
159 var id_string = mandatories[i];
160 // alert (id_string);
161 if( ! $("#" + id_string).val() ){
162 var elt = document.getElementById(id_string);
163 if ( elt.nodeName == 'SELECT' ) {
164 $(elt).siblings('.select2').find("span[role='combobox']").addClass('subfield_not_filled');
166 $(elt).addClass('subfield_not_filled');
170 StrAlert += "\t* " + _("%s in tab %s").format(label[i], tab[i]) + "\n";
174 /* Check for mandatories field(not subfields) */
175 for(var i=0,len=mandatoriesfields.length; i<len; i++){
177 arr = mandatoriesfields[i];
178 divid = "tag_" + arr[0] + "_" + arr[1];
179 varegexp = new RegExp("^tag_" + arr[0] + "_code_");
181 if(parseInt(arr[0]) >= 10){
182 elem = document.getElementById(divid);
183 eleminputs = elem.getElementsByTagName('input');
185 for(var j=0,len2=eleminputs.length; j<len2; j++){
187 if(eleminputs[j].name.match(varegexp) && eleminputs[j].value){
188 inputregexp = new RegExp("^tag_" + arr[0] + "_subfield_" + eleminputs[j].value + "_" + arr[2]);
190 for( var k=0; k<len2; k++){
191 if(eleminputs[k].id.match(inputregexp) && eleminputs[k].value){
203 StrAlert += "\t* " + _("Field %s is mandatory, at least one of its subfields must be filled.").format(arr[0]) + "\n";
210 return _("Can't save this record because the following field aren't filled :") + "\n\n" + StrAlert;
216 var StrAlert = AreMandatoriesNotOk();
226 function AddField(field,cntrepeatfield) {
227 document.forms['f'].op.value = "addfield";
228 document.forms['f'].addfield_field.value=field;
229 document.forms['f'].repeat_field.value=cntrepeatfield;
233 function addauthority() {
234 X = document.forms[0].authtype.value;
235 window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
237 function searchauthority() {
238 X = document.forms[0].authtype2.value;
239 Y = document.forms[0].value.value;
240 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";
242 function confirmnotdup(redirect){
243 $("#confirm_not_duplicate").attr("value","1");
247 [% Asset.css("css/addbiblio.css") | $raw %]
250 <body id="auth_authorities" class="auth">
253 <div>Loading, please wait...</div>
256 [% INCLUDE 'header.inc' %]
258 [% WRAPPER 'sub-header.inc' %]
259 [% WRAPPER breadcrumbs %]
260 [% WRAPPER breadcrumb_item %]
261 <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
265 [% WRAPPER breadcrumb_item bc_active= 1 %]
266 <span>Modify authority #[% authid | html %] ([% authtypetext | html %])</span>
270 [% WRAPPER breadcrumb_item bc_active= 1 %]
271 <span>Adding authority [% authtypetext | html %]</span>
275 [% END #/ WRAPPER breadcrumbs %]
276 [% END #/ WRAPPER sub-header.inc %]
278 <div class="main container-fluid">
280 <div class="col-md-10 col-md-offset-1">
283 <h1>Modify authority #[% authid | html %] [% authtypetext | html %]</h1>
285 <h1>Adding authority [% authtypetext | html %]</h1>
288 [% IF ( duplicateauthid ) %]
289 <div class="dialog alert">
290 <h3>Duplicate record suspected</h3>
291 <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>
293 <form action="authorities.pl" method="get">
294 <input type="hidden" name="authid" value="[% duplicateauthid | html %]" />
295 <button type="submit" class="new"><i class="fa fa-pencil"></i> Yes: Edit existing authority</button>
297 <form action="authorities.pl" method="get">
298 <button class="new" onclick="confirmnotdup('items'); return false;"><i class="fa fa-save"></i> No: Save as new authority</button>
301 [% END # /IF duplicateauthid %]
303 <form method="post" name="f" action="/cgi-bin/koha/authorities/authorities.pl">
304 <input type="hidden" name="op" value="add" />
305 <input type="hidden" name="addfield_field" value="" />
306 <input type="hidden" name="repeat_field" value="" />
307 <input type="hidden" name="authtypecode" value="[% authtypecode | html%]" />
308 <input type="hidden" name="authid" value="[% authid | html %]" />
309 <input type="hidden" name="index" value="[% index | html %]" />
310 <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
312 <div id="toolbar" class="btn-toolbar">
313 <div class="btn-group"><a href="#" id="addauth" class="btn btn-primary" accesskey="w"><i class="fa fa-save"></i> Save</a></div>
314 <div class="btn-group">
316 <a class="btn btn-default" id="z3950submit" href="#"><i class="fa fa-search"></i> Replace record via Z39.50/SRU search</a>
318 <a class="btn btn-default" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a>
321 <div class="btn-group">
323 <a class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | url %]">Cancel</a>
325 <a class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/authorities-home.pl">Cancel</a>
328 <div class="toolbar-tabs-container">
329 [% IF ( BIG_LOOP && BIG_LOOP.size > 1 ) %]
330 [% WRAPPER tabs_nav %]
331 [%- FOREACH BIG_LOO IN BIG_LOOP -%]
333 [% SET bt_active = 1 %]
335 [% SET bt_active = 0 %]
337 [% WRAPPER tab_item tabname= "tab${BIG_LOO.number}XX" bt_active= bt_active %]
338 <span>[% BIG_LOO.number | html %]</span>
341 [% END # /WRAPPER tabs_nav %]
343 <ul class="tag_anchors_list">
344 [% FOREACH BIG_LOO IN BIG_LOOP %]
345 [% IF loop.first %][% SET tab_selected = "tab_selected" %][% ELSE %][% SET tab_selected = "" %][% END %]
346 [% FOREACH innerloo IN BIG_LOO.innerloop %]
347 [% IF ( innerloo.tag ) %]
348 <li class="tag_anchors tag_anchors_[% BIG_LOO.number | html %] [% tab_selected | html %]">
349 <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>
356 </div> <!-- /#toolbar -->
359 Used in <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&q=an:[% authid | uri %]">[% count | html %] record(s)</a>
361 This authority is not used in any records.
365 [% WRAPPER tabs id= "authoritytabs" %]
366 [% WRAPPER tab_panels %]
367 [% FOREACH BIG_LOO IN BIG_LOOP %]
369 [% SET bt_active = 1 %]
371 [% SET bt_active = 0 %]
373 [% WRAPPER tab_panel tabname="tab${BIG_LOO.number}XX" bt_active= bt_active %]
374 [% IF ( BIG_LOOP.size > 1 ) %]
375 <h2>Section [% BIG_LOO.number | html %]</h2>
378 [% FOREACH innerloo IN BIG_LOO.innerloop %]
379 [% IF ( innerloo.tag ) %]
380 [% IF innerloo.tag != previous %]
381 [% IF previous != "" %]
384 [% previous = innerloo.tag %]
385 [% IF ( innerloo.repeatable ) %]
386 <ul class="sortable_field">
392 [% IF ( innerloo.repeatable ) %]
393 <li class="tag sortable_tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
395 <li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
398 <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
399 [% UNLESS hide_marc %]
400 [% IF advancedMARCEditor %]
401 <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>
403 <span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span>
405 [% IF ( innerloo.fixedfield ) %]
408 class="indicator flat"
409 style="display:none;"
410 name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
413 value="[% innerloo.indicator1 | html %]" />
416 class="indicator flat"
417 style="display:none;"
418 name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
421 value="[% innerloo.indicator2 | html %]" />
425 class="indicator flat"
426 name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
429 value="[% innerloo.indicator1 | html %]" />
432 class="indicator flat"
433 name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
436 value="[% innerloo.indicator2 | html %]" />
437 [% END # /IF ( innerloo.fixedfield ) %] -
439 [% IF ( innerloo.fixedfield ) %]
442 name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
443 value="[% innerloo.indicator1 | html %]" />
446 name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
447 value="[% innerloo.indicator2 | html %]" />
451 name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
452 value="[% innerloo.indicator1 | html %]" />
455 name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
456 value="[% innerloo.indicator2 | html %]" />
457 [% END # /IF ( innerloo.fixedfield ) %]
458 [% END # /UNLESS hide_marc %]
460 [% UNLESS advancedMARCEditor %]
461 <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>
463 <span class="field_controls">
464 [% IF ( innerloo.repeatable ) %]
465 <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">
466 <img src="[% interface | html %]/[% theme | html %]/img/repeat-tag.png" alt="Repeat this tag" />
469 <a href="#" tabindex="1" class="buttonMinus" onclick="UnCloneField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;" title="Delete this tag">
470 <img src="[% interface | html %]/[% theme | html %]/img/delete-tag.png" alt="Delete this tag" />
472 </span> <!-- /.field_controls -->
473 </div> <!-- /div.tag_title -->
475 <ul class="sortable_subfield">
476 [% FOREACH subfield_loo IN innerloo.subfield_loop %]
477 <!-- One line on the marc editor -->
478 <li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]">
480 [% UNLESS hide_marc %]
481 <div class="subfieldcode">
483 title="[% subfield_loo.marc_lib | $raw %]"
484 style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
485 name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
486 value="[% subfield_loo.subfield | html %]"
494 name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
495 value="[% subfield_loo.subfield | html %]" />
496 [% END # /UNLESS hide_marc %]
498 [% UNLESS advancedMARCEditor %]
499 [% IF ( subfield_loo.mandatory ) %]
500 <div class="subfield subfield_mandatory">
502 <div class="subfield">
504 [% IF ( subfield_loo.fixedfield ) %]
505 <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">
507 <label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" class="labelsubfield">
509 [% subfield_loo.marc_lib | $raw %]
511 </div> <!-- /.subfield -->
512 [% END # UNLESS advancedMARCEditor %]
514 [% SET mv = subfield_loo.marc_value %]
515 <div id="field_marceditor[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]" class="field_marceditor">
516 [% IF ( mv.type == 'select' ) %]
517 [% IF mv.category AND CAN_user_parameters_manage_auth_values %]
518 <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor" id="[%- mv.id | html -%]" data-category="[% mv.category | html %]">
520 <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]">
522 [% FOREACH aval IN mv.values %]
523 [% IF aval == mv.default %]
524 <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
526 <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
530 [% ELSIF ( mv.type == 'text1' ) %]
531 <input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" />
532 [% ELSIF ( mv.type == 'text2' ) %]
533 <input type="text" id="[%- mv.id | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" />
534 [% ELSIF ( mv.type == 'text' ) %]
535 <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 -%]" />
536 [% ELSIF ( mv.type == 'textarea' ) %]
537 <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>
538 [% ELSIF ( mv.type == 'hidden' ) %]
539 <input tabindex="1" type="hidden" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
540 [% ELSIF ( mv.type == 'hidden_simple' ) %]
541 <input type="hidden" name="[%- mv.name | html -%]" />
542 [% END # /IF mv.type %]
543 </div> <!-- /.field_marceditor -->
545 [% IF ( subfield_loo.mandatory ) %]
546 <div class="subfield_loop_mandatory">
547 <span class="required">Required</span>
551 <div class="subfield_controls">
552 [% IF ( mv.type == 'text1' ) %]
553 <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>
554 [% ELSIF ( mv.type == 'text2' ) %]
556 <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a>
558 <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor">...</a>
560 [% mv.javascript | $raw %]
561 [% END #/IF ( mv.type == 'text1' ) %]
562 [% IF ( subfield_loo.repeatable ) %]
563 <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;">
564 <img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
566 <a href="#" class="buttonMinus" tabindex="1" onclick="UnCloneField('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]'); return false;">
567 <img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" />
569 [% END # /IF ( subfield_loo.repeatable ) %]
570 </div> <!-- /.subfield_controls -->
571 </li> <!-- /.subfield_line -->
572 [% END # /FOREACH subfield_loo %]
573 </ul> <!-- /.sortable_subfield -->
575 [% END # /IF ( innerloo.tag ) %]
576 [% END # /FOREACH innerloo %]
577 </ul> <!-- /.sortable_field -->
578 [% END # /tab_panel#tabXXX %]
579 [% END #/FOREACH BIG_LOO %]
580 [% END # /WRAPPER tab_panels %]
581 [% END # /WRAPPER tabs %]
583 <div name="hidden" id="hidden" class="tab">
584 [% FOREACH hidden_loo IN hidden_loop %]
585 <input type="hidden" name="tag" value="[% hidden_loo.tag | html %]" />
586 <input type="hidden" name="subfield" value="[% hidden_loo.subfield | html %]" />
587 <input type="hidden" name="mandatory" value="[% hidden_loo.mandatory | html %]" />
588 <input type="hidden" name="kohafield" value="[% hidden_loo.kohafield | html %]" />
589 <input type="hidden" name="tag_mandatory" value="[% hidden_loo.tag_mandatory | html %]" />
591 </div> <!-- /.tab -->
592 [% IF ( oldauthnumtagfield ) %]
593 <input type="hidden" name="tag" value="[% oldauthnumtagfield | html %]" />
594 <input type="hidden" name="subfield" value="[% oldauthnumtagsubfield | html %]" />
595 <input type="hidden" name="field_value" value="[% authid | html %]" />
596 <input type="hidden" name="mandatory" value="0" />
597 <input type="hidden" name="kohafield" value="[% kohafield | html %]" />
598 <input type="hidden" name="tag_mandatory" value="[% tag_mandatory | html %]" />
599 <input type="hidden" name="tag" value="[% oldauthtypetagfield | html %]" />
600 <input type="hidden" name="subfield" value="[% oldauthtypetagsubfield | html %]" />
601 <input type="hidden" name="field_value" value="[% authtypecode | html %]" />
606 [% INCLUDE 'modals/cataloguing_create_av.inc' %]
612 [% INCLUDE 'intranet-bottom.inc' %]