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" ) );
85 $(".change-authtype").on("click", function(){
86 var authtypecode = $(this).data("authtypecode");
88 f.op.value = "[% op | html %]";
89 f.authid.value = "[% authid | html %]";
90 f.changed_authtype.value = "changed";
91 f.authtypecode.value = authtypecode;
96 function selectTab( tablink ){
97 let a = $("a[href='" + tablink + "']");
98 $(".toolbar-tabs-container .nav-tabs li").removeClass("selected");
99 a.tab("show").parent().addClass("selected");
100 /* Get number from string like "tab9XX" */
101 var tabid = a.data("tabname").substring(3, 4);
102 $(".tag_anchors").removeClass("tab_selected").hide();
103 $(".tag_anchors_" + tabid ).addClass("tab_selected").show();
107 * Returns a roughly ideal position to scroll an element into view
108 * @param {string} target - The HTML id of the element to scroll into view
109 * @param {string} elemid - The HTML id of the element which might obscure
110 * the view of the target element e.g. a floating toolbar
111 * @return {number} - The y-coordinate to pass to window.scrollTo()
113 function getScrollto( target, elemid ){
114 var dest = $("#" + target );
115 var yoffset = dest.offset();
118 var element = $("#" + elemid );
119 var elem_height = element.outerHeight();
123 return yoffset.top - elem_height - 20;
128 * check if z3950 mandatories are set or not
130 function GetZ3950Terms(){
131 var strQuery="&authtypecode="+document.forms['f'].authtypecode.value;
132 var mandatories = new Array();
133 var mandatories_label = new Array();
134 [% 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 %]");
135 mandatories_label.push("[% subfield_loo.z3950_mandatory | html %]");[% END %][% END %][% END %][% END %]
137 for(var i=0,len=mandatories.length; i<len ; i++){
138 var field_value = document.getElementById(mandatories[i]).value;
140 strQuery += "&"+mandatories_label[i]+"="+encodeURIComponent(field_value);
147 * check if mandatory subfields are written
149 function AreMandatoriesNotOk(){
150 var mandatories = new Array();
151 var mandatoriesfields = new Array();
152 var tab = new Array();
153 var label = new Array();
154 [% FOREACH BIG_LOO IN BIG_LOOP %]
155 [% FOREACH innerloo IN BIG_LOO.innerloop %]
156 [% IF ( innerloo.mandatory ) %]
157 mandatoriesfields.push(new Array("[% innerloo.tag | html %]","[% innerloo.index | html %][% innerloo.random | html %]","[% innerloo.index | html %]"));
159 [% FOREACH subfield_loo IN innerloo.subfield_loop %]
160 [% IF ( subfield_loo.mandatory ) %]mandatories.push("[% subfield_loo.id | html %]");
161 tab.push("[% BIG_LOO.number | html %]");
162 label.push("[% To.json(subfield_loo.marc_lib) | html %]");
168 for(var i=0,len=mandatories.length; i<len ; i++){
169 var id_string = mandatories[i];
170 // alert (id_string);
171 if( ! $("#" + id_string).val() ){
172 var elt = document.getElementById(id_string);
173 if ( elt.nodeName == 'SELECT' ) {
174 $(elt).siblings('.select2').find("span[role='combobox']").addClass('subfield_not_filled');
176 $(elt).addClass('subfield_not_filled');
180 StrAlert += "\t* " + _("%s in tab %s").format(label[i], tab[i]) + "\n";
184 /* Check for mandatories field(not subfields) */
185 for(var i=0,len=mandatoriesfields.length; i<len; i++){
187 arr = mandatoriesfields[i];
188 divid = "tag_" + arr[0] + "_" + arr[1];
189 varegexp = new RegExp("^tag_" + arr[0] + "_code_");
191 if(parseInt(arr[0]) >= 10){
192 elem = document.getElementById(divid);
193 eleminputs = elem.getElementsByTagName('input');
195 for(var j=0,len2=eleminputs.length; j<len2; j++){
197 if(eleminputs[j].name.match(varegexp) && eleminputs[j].value){
198 inputregexp = new RegExp("^tag_" + arr[0] + "_subfield_" + eleminputs[j].value + "_" + arr[2]);
200 for( var k=0; k<len2; k++){
201 if(eleminputs[k].id.match(inputregexp) && eleminputs[k].value){
213 StrAlert += "\t* " + _("Field %s is mandatory, at least one of its subfields must be filled.").format(arr[0]) + "\n";
220 return _("Can't save this record because the following field aren't filled :") + "\n\n" + StrAlert;
226 var StrAlert = AreMandatoriesNotOk();
236 function AddField(field,cntrepeatfield) {
237 document.forms['f'].op.value = "addfield";
238 document.forms['f'].addfield_field.value=field;
239 document.forms['f'].repeat_field.value=cntrepeatfield;
243 function addauthority() {
244 X = document.forms[0].authtype.value;
245 window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
247 function searchauthority() {
248 X = document.forms[0].authtype2.value;
249 Y = document.forms[0].value.value;
250 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";
252 function confirmnotdup(redirect){
253 $("#confirm_not_duplicate").attr("value","1");
257 [% Asset.css("css/addbiblio.css") | $raw %]
260 <body id="auth_authorities" class="auth">
263 <div>Loading, please wait...</div>
266 [% INCLUDE 'header.inc' %]
268 [% WRAPPER 'sub-header.inc' %]
269 [% WRAPPER breadcrumbs %]
270 [% WRAPPER breadcrumb_item %]
271 <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
275 [% WRAPPER breadcrumb_item bc_active= 1 %]
276 Modify authority #[% authid | html %] ([% authtypetext | html %])
280 [% WRAPPER breadcrumb_item bc_active= 1 %]
281 Adding authority [% authtypetext | html %]
285 [% END #/ WRAPPER breadcrumbs %]
286 [% END #/ WRAPPER sub-header.inc %]
288 <div class="main container-fluid">
290 <div class="col-md-10 col-md-offset-1">
293 <h1>Modify authority #[% authid | html %] [% authtypetext | html %]</h1>
295 <h1>Adding authority [% authtypetext | html %]</h1>
298 [% IF ( duplicateauthid ) %]
299 <div class="dialog alert">
300 <h3>Duplicate record suspected</h3>
301 <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>
303 <form action="authorities.pl" method="get">
304 <input type="hidden" name="authid" value="[% duplicateauthid | html %]" />
305 <button type="submit" class="new"><i class="fa fa-pencil-alt"></i> Yes: Edit existing authority</button>
307 <form action="authorities.pl" method="get">
308 <button class="new" onclick="confirmnotdup('items'); return false;"><i class="fa fa-save"></i> No: Save as new authority</button>
311 [% END # /IF duplicateauthid %]
313 <form method="post" name="f" action="/cgi-bin/koha/authorities/authorities.pl">
314 <input type="hidden" name="op" value="add" />
315 <input type="hidden" name="addfield_field" value="" />
316 <input type="hidden" name="repeat_field" value="" />
317 <input type="hidden" name="authtypecode" value="[% authtypecode | html%]" />
318 <input type="hidden" name="authid" value="[% authid | html %]" />
319 <input type="hidden" name="index" value="[% index | html %]" />
320 <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
321 <input type="hidden" name="changed_authtype" value="" />
323 <div id="toolbar" class="btn-toolbar">
324 <div class="btn-group"><a href="#" id="addauth" class="btn btn-primary" accesskey="w"><i class="fa fa-save"></i> Save</a></div>
325 <div class="btn-group">
327 <a class="btn btn-default" id="z3950submit" href="#"><i class="fa fa-search"></i> Replace record via Z39.50/SRU search</a>
329 <a class="btn btn-default" id="z3950submit" href="#"><i class="fa fa-search"></i> Z39.50/SRU search</a>
332 <div class="btn-group">
333 <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cog"></i> Settings <span class="caret"></span></button>
334 <ul id="settings-menu" class="dropdown-menu">
335 <li class="dropdown-header">Change authority type</li>
337 <a href="#" class="change-authtype" data-authtypecode="">
338 [% IF ( authtypecode ) %]
339 <i class="fa fa-fw"> </i>
341 <i class="fa fa-fw fa-check"></i>
346 [% FOREACH authority_type IN authority_types %]
348 <a href="#" class="change-authtype" data-authtypecode="[% authority_type.authtypecode | html %]">
349 [% IF authority_type.authtypecode == authtypecode %]
350 <i class="fa fa-fw fa-check"></i>
352 <i class="fa fa-fw"> </i>
354 [% authority_type.authtypetext | html %]
358 </ul> <!-- /#settings-menu -->
359 </div> <!-- /.btn-group -->
360 <div class="btn-group">
362 <a class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | url %]">Cancel</a>
364 <a class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/authorities-home.pl">Cancel</a>
367 <div class="toolbar-tabs-container">
368 [% IF ( BIG_LOOP && BIG_LOOP.size > 1 ) %]
369 [% WRAPPER tabs_nav %]
370 [%- FOREACH BIG_LOO IN BIG_LOOP -%]
372 [% SET bt_active = 1 %]
374 [% SET bt_active = 0 %]
376 [% WRAPPER tab_item tabname= "tab${BIG_LOO.number}XX" bt_active= bt_active %]
377 <span>[% BIG_LOO.number | html %]</span>
380 [% END # /WRAPPER tabs_nav %]
382 <ul class="tag_anchors_list">
383 [% FOREACH BIG_LOO IN BIG_LOOP %]
384 [% IF loop.first %][% SET tab_selected = "tab_selected" %][% ELSE %][% SET tab_selected = "" %][% END %]
385 [% FOREACH innerloo IN BIG_LOO.innerloop %]
386 [% IF ( innerloo.tag ) %]
387 <li class="tag_anchors tag_anchors_[% BIG_LOO.number | html %] [% tab_selected | html %]">
388 <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>
395 </div> <!-- /#toolbar -->
398 Used in <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&q=an:[% authid | uri %]">[% count | html %] record(s)</a>
400 This authority is not used in any records.
404 [% WRAPPER tabs id= "authoritytabs" %]
405 [% WRAPPER tab_panels %]
406 [% FOREACH BIG_LOO IN BIG_LOOP %]
408 [% SET bt_active = 1 %]
410 [% SET bt_active = 0 %]
412 [% WRAPPER tab_panel tabname="tab${BIG_LOO.number}XX" bt_active= bt_active %]
413 [% IF ( BIG_LOOP.size > 1 ) %]
414 <h2>Section [% BIG_LOO.number | html %]</h2>
417 [% FOREACH innerloo IN BIG_LOO.innerloop %]
418 [% IF ( innerloo.tag ) %]
419 [% IF innerloo.tag != previous %]
420 [% IF previous != "" %]
423 [% previous = innerloo.tag %]
424 [% IF ( innerloo.repeatable ) %]
425 <ul class="sortable_field">
431 [% IF ( innerloo.repeatable ) %]
432 <li class="tag sortable_tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
434 <li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
437 <div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
438 [% UNLESS hide_marc %]
439 [% IF advancedMARCEditor %]
440 <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>
442 <span class="tagnum" title="[% innerloo.tag_lib | html %]">[% innerloo.tag | html %]</span>
444 [% IF ( innerloo.fixedfield ) %]
447 class="indicator flat"
448 style="display:none;"
449 name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
452 value="[% innerloo.indicator1 | html %]" />
455 class="indicator flat"
456 style="display:none;"
457 name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
460 value="[% innerloo.indicator2 | html %]" />
464 class="indicator flat"
465 name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
468 value="[% innerloo.indicator1 | html %]" />
471 class="indicator flat"
472 name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
475 value="[% innerloo.indicator2 | html %]" />
476 [% END # /IF ( innerloo.fixedfield ) %] -
478 [% IF ( innerloo.fixedfield ) %]
481 name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
482 value="[% innerloo.indicator1 | html %]" />
485 name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
486 value="[% innerloo.indicator2 | html %]" />
490 name="tag_[% innerloo.tag | html %]_indicator1_[% innerloo.index | html %][% innerloo.random | html %]"
491 value="[% innerloo.indicator1 | html %]" />
494 name="tag_[% innerloo.tag | html %]_indicator2_[% innerloo.index | html %][% innerloo.random | html %]"
495 value="[% innerloo.indicator2 | html %]" />
496 [% END # /IF ( innerloo.fixedfield ) %]
497 [% END # /UNLESS hide_marc %]
499 [% UNLESS advancedMARCEditor %]
500 <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>
502 <span class="field_controls">
503 [% IF ( innerloo.repeatable ) %]
504 <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">
505 <img src="[% interface | html %]/[% theme | html %]/img/repeat-tag.png" alt="Repeat this tag" />
508 <a href="#" tabindex="1" class="buttonMinus" onclick="UnCloneField('tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]'); return false;" title="Delete this tag">
509 <img src="[% interface | html %]/[% theme | html %]/img/delete-tag.png" alt="Delete this tag" />
511 </span> <!-- /.field_controls -->
512 </div> <!-- /div.tag_title -->
514 <ul class="sortable_subfield">
515 [% FOREACH subfield_loo IN innerloo.subfield_loop %]
516 <!-- One line on the marc editor -->
517 <li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]">
519 [% UNLESS hide_marc %]
520 <div class="subfieldcode">
522 title="[% subfield_loo.marc_lib | $raw %]"
523 style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;"
524 name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
525 value="[% subfield_loo.subfield | html %]"
533 name="tag_[% subfield_loo.tag | html %]_code_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]"
534 value="[% subfield_loo.subfield | html %]" />
535 [% END # /UNLESS hide_marc %]
537 [% UNLESS advancedMARCEditor %]
538 [% IF ( subfield_loo.mandatory ) %]
539 <div class="subfield subfield_mandatory">
541 <div class="subfield">
543 [% IF ( subfield_loo.fixedfield ) %]
544 <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">
546 <label for="tag_[% subfield_loo.tag | html %]_subfield_[% subfield_loo.subfield | html %]_[% subfield_loo.index | html %]_[% subfield_loo.index_subfield | html %]" class="labelsubfield">
548 [% subfield_loo.marc_lib | $raw %]
550 </div> <!-- /.subfield -->
551 [% END # UNLESS advancedMARCEditor %]
553 [% SET mv = subfield_loo.marc_value %]
554 <div id="field_marceditor[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]" class="field_marceditor">
555 [% IF ( mv.type == 'select' ) %]
556 [% IF mv.category AND CAN_user_parameters_manage_auth_values %]
557 <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor" id="[%- mv.id | html -%]" data-category="[% mv.category | html %]">
559 <select name="[%- mv.name | html -%]" tabindex="1" class="input_marceditor select2" id="[%- mv.id | html -%]">
561 [% FOREACH aval IN mv.values %]
562 [% IF aval == mv.default %]
563 <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
565 <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
569 [% ELSIF ( mv.type == 'text1' ) %]
570 <input type="text" id="[%- mv.id | html -%]" name="[%- mv.id | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" tabindex="1" />
571 [% ELSIF ( mv.type == 'text2' ) %]
572 <input type="text" id="[%- mv.id | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" name="[%- mv.name | html -%]" value="[%- mv.value | html -%]" class="input_marceditor" />
573 [% ELSIF ( mv.type == 'text' ) %]
574 <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 -%]" />
575 [% ELSIF ( mv.type == 'textarea' ) %]
576 <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>
577 [% ELSIF ( mv.type == 'hidden' ) %]
578 <input tabindex="1" type="hidden" id="[%- mv.id | html -%]" name="[%- mv.name | html -%]" size="67" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
579 [% ELSIF ( mv.type == 'hidden_simple' ) %]
580 <input type="hidden" name="[%- mv.name | html -%]" />
581 [% END # /IF mv.type %]
582 </div> <!-- /.field_marceditor -->
584 [% IF ( subfield_loo.mandatory ) %]
585 <div class="subfield_loop_mandatory">
586 <span class="required">Required</span>
590 <div class="subfield_controls">
591 [% IF ( mv.type == 'text1' ) %]
592 <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>
593 [% ELSIF ( mv.type == 'text2' ) %]
595 <a href="#" class="buttonDot tag_editor disabled" tabindex="-1" title="No popup">...</a>
597 <a href="#" id="buttonDot_[% mv.id | html %]" class="buttonDot tag_editor" title="Tag editor">...</a>
599 [% mv.javascript | $raw %]
600 [% END #/IF ( mv.type == 'text1' ) %]
601 [% IF ( subfield_loo.repeatable ) %]
602 <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;">
603 <img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
605 <a href="#" class="buttonMinus" tabindex="1" onclick="UnCloneField('subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]'); return false;">
606 <img src="[% interface | html %]/[% theme | html %]/img/delete-subfield.png" alt="Delete" title="Delete this subfield" />
608 [% END # /IF ( subfield_loo.repeatable ) %]
609 </div> <!-- /.subfield_controls -->
610 </li> <!-- /.subfield_line -->
611 [% END # /FOREACH subfield_loo %]
612 </ul> <!-- /.sortable_subfield -->
614 [% END # /IF ( innerloo.tag ) %]
615 [% END # /FOREACH innerloo %]
616 </ul> <!-- /.sortable_field -->
617 [% END # /tab_panel#tabXXX %]
618 [% END #/FOREACH BIG_LOO %]
619 [% END # /WRAPPER tab_panels %]
620 [% END # /WRAPPER tabs %]
622 <div name="hidden" id="hidden" class="tab">
623 [% FOREACH hidden_loo IN hidden_loop %]
624 <input type="hidden" name="tag" value="[% hidden_loo.tag | html %]" />
625 <input type="hidden" name="subfield" value="[% hidden_loo.subfield | html %]" />
626 <input type="hidden" name="mandatory" value="[% hidden_loo.mandatory | html %]" />
627 <input type="hidden" name="kohafield" value="[% hidden_loo.kohafield | html %]" />
628 <input type="hidden" name="tag_mandatory" value="[% hidden_loo.tag_mandatory | html %]" />
630 </div> <!-- /.tab -->
631 [% IF ( oldauthnumtagfield ) %]
632 <input type="hidden" name="tag" value="[% oldauthnumtagfield | html %]" />
633 <input type="hidden" name="subfield" value="[% oldauthnumtagsubfield | html %]" />
634 <input type="hidden" name="field_value" value="[% authid | html %]" />
635 <input type="hidden" name="mandatory" value="0" />
636 <input type="hidden" name="kohafield" value="[% kohafield | html %]" />
637 <input type="hidden" name="tag_mandatory" value="[% tag_mandatory | html %]" />
638 <input type="hidden" name="tag" value="[% oldauthtypetagfield | html %]" />
639 <input type="hidden" name="subfield" value="[% oldauthtypetagsubfield | html %]" />
640 <input type="hidden" name="field_value" value="[% authtypecode | html %]" />
645 [% INCLUDE 'modals/cataloguing_create_av.inc' %]
651 [% INCLUDE 'intranet-bottom.inc' %]