1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Authorities › <!-- TMPL_IF name="authid" -->Modify authority #<!-- TMPL_VAR NAME="authid" --> (<!-- TMPL_VAR name="authtypetext" -->)<!-- TMPL_ELSE -->Adding authority (<!-- TMPL_VAR name="authtypetext" -->)<!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/yui/plugins/bubbling-min.js"></script>
6 <script type="text/javascript">
9 var fields_in_use = {};
10 $(document).ready(function() {
11 $('#authoritytabs > ul').tabs();
12 $('.tag').each(function() {
13 var field_id = this.getAttribute('id').substring(0, 7);
14 if (field_id in fields_in_use) {
15 fields_in_use[field_id]++;
17 fields_in_use[field_id] = 1;
20 $('.subfield_line').each(function() {
21 var field_id = this.getAttribute('id').substring(0, 12);
22 if (field_id in fields_in_use) {
23 fields_in_use[field_id]++;
25 fields_in_use[field_id] = 1;
28 $("#f").submit(function(){
29 return $(this).Check();
34 * check if mandatory subfields are writed
36 function AreMandatoriesNotOk(){
37 var mandatories = new Array();
38 var mandatoriesfields = new Array();
39 var tab = new Array();
40 var label = new Array();
41 <!-- TMPL_LOOP NAME='BIG_LOOP' -->
42 <!-- TMPL_LOOP NAME='innerloop' -->
43 <!-- TMPL_IF NAME="mandatory" -->
44 mandatoriesfields.push(new Array("<!-- TMPL_VAR NAME="tag" -->","<!-- TMPL_VAR NAME="index" --><!-- TMPL_VAR NAME="random" -->","<!-- TMPL_VAR NAME="index" -->"));
46 <!-- TMPL_LOOP NAME='subfield_loop'-->
47 <!-- TMPL_IF NAME='mandatory'-->mandatories.push("<!-- TMPL_VAR NAME='id' -->");
48 tab.push("<!-- TMPL_VAR NAME='number' -->");
49 label.push("<!-- TMPL_VAR NAME='marc_lib' ESCAPE=JS-->");
55 for(var i=0,len=mandatories.length; i<len ; i++){
56 var id_string = mandatories[i];
58 if( ! $("#" + id_string).val() ){
59 $("#" + id_string).attr('class','subfield_not_filled').focus();
60 StrAlert += "\t* "+label[i]+_(" in tab ")+tab[i]+"\n";
64 /* Check for mandatories field(not subfields) */
65 for(var i=0,len=mandatoriesfields.length; i<len; i++){
67 arr = mandatoriesfields[i];
68 divid = "tag_" + arr[0] + "_" + arr[1];
69 varegexp = new RegExp("^tag_" + arr[0] + "_code_");
71 if(parseInt(arr[0]) >= 10){
72 elem = document.getElementById(divid);
73 eleminputs = elem.getElementsByTagName('input');
75 for(var j=0,len2=eleminputs.length; j<len2; j++){
77 if(eleminputs[j].name.match(varegexp) && eleminputs[j].value){
78 /* tag_801_subfield_c_841304_545657 */
79 inputregexp = new RegExp("^tag_" + arr[0] + "_subfield_" + eleminputs[j].value + "_" + arr[2]);
81 for( var k=0; k<len2; k++){
82 if(eleminputs[k].id.match(inputregexp) && eleminputs[k].value){
94 StrAlert += "\t* Field " + arr[0] + " is mandatory, at least one of its subfields must be filled\n";
101 return _("Can't save this record because the following field aren't filled :\n\n") + StrAlert;
111 var StrAlert = AreMandatoriesNotOk();
122 function AddField(field,cntrepeatfield) {
123 document.forms['f'].op.value = "addfield";
124 document.forms['f'].addfield_field.value=field;
125 document.forms['f'].repeat_field.value=cntrepeatfield;
129 function Dopop(link,i) {
130 defaultvalue = document.getElementById(i).value;
131 window.open(link+"&result="+defaultvalue,"valuebuilder",'width=700,height=550,toolbar=false,scrollbars=yes');
134 function ExpandField(index) {
135 var original = document.getElementById(index); //original <div>
136 var divs = original.getElementsByTagName('div');
137 for(var i=0,divslen = divs.length ; i<divslen ; i++){ // foreach div
138 if(divs[i].getAttribute("name") == 'line'){ // if it s a subfield
139 if (divs[i].style.display == 'block') {
140 divs[i].style.display = 'none';
142 divs[i].style.display = 'block';
149 * To clone a field or a subfield by clickink on '+' button
151 function CloneField(index) {
152 var original = document.getElementById(index); //original <div>
153 fields_in_use[index.substr(0, 7)]++;
154 var clone = original.cloneNode(true);
155 var new_key = CreateKey();
156 var new_id = original.getAttribute('id')+new_key;
158 clone.setAttribute('id',new_id); // setting a new id for the parent div
160 var divs = clone.getElementsByTagName('div');
162 <!-- TMPL_UNLESS NAME='hide_marc'--> // No indicator if hide_marc
163 // setting a new name for the new indicator
164 for(var i=0; i < 2; i++) {
165 var indicator = clone.getElementsByTagName('input')[i];
166 indicator.setAttribute('name',indicator.getAttribute('name')+new_key);
168 <!-- /TMPL_UNLESS -->
170 // settings all subfields
171 for(var i=0,divslen = divs.length ; i<divslen ; i++){ // foreach div
172 if(divs[i].getAttribute("name") == 'line'){ // if it s a subfield
174 // set the attribute for the new 'div' subfields
175 divs[i].setAttribute('id',divs[i].getAttribute('id')+new_key);
177 var inputs = divs[i].getElementsByTagName('input');
180 inputs[0].setAttribute('id',inputs[0].getAttribute('id')+new_key);
181 inputs[0].setAttribute('name',inputs[0].getAttribute('name')+new_key);
184 id_input = inputs[1].getAttribute('id')+new_key;
185 inputs[1].setAttribute('id',id_input);
186 inputs[1].setAttribute('name',inputs[1].getAttribute('name')+new_key);
188 try{ // it s a select if it is not an input
189 var selects = divs[i].getElementsByTagName('select');
190 id_input = selects[0].getAttribute('id')+new_key;
191 selects[0].setAttribute('id',id_input);
192 selects[0].setAttribute('name',selects[0].getAttribute('name')+new_key);
193 }catch(e2){ // it is a textarea if it s not a select or an input
194 var textaeras = divs[i].getElementsByTagName('textarea');
195 id_input = textaeras[0].getAttribute('id')+new_key;
196 textaeras[0].setAttribute('id',id_input);
197 textaeras[0].setAttribute('name',textaeras[0].getAttribute('name')+new_key);
201 <!-- TMPL_UNLESS NAME='advancedMARCEditor'-->
202 // when cloning a subfield, re set its label too.
203 var labels = divs[i].getElementsByTagName('label');
204 labels[0].setAttribute('for',id_input);
205 <!-- /TMPL_UNLESS -->
207 <!-- TMPL_UNLESS NAME='hide_marc'-->
208 // updating javascript parameters on button up
209 var imgs = divs[i].getElementsByTagName('img');
210 imgs[0].setAttribute('onclick',"upSubfield(\'"+divs[i].getAttribute('id')+"\');");
211 <!-- /TMPL_UNLESS -->
213 // setting its '+' and '-' buttons
215 var spans = divs[i].getElementsByTagName('span');
216 for (var j = 0; j < spans.length; j++) {
217 if(spans[j].getAttribute('class') == 'buttonPlus'){
218 spans[j].setAttribute('onclick',"CloneSubfield('" + divs[i].getAttribute('id') + "')");
219 } else if (spans[j].getAttribute('class') == 'buttonMinus') {
220 spans[j].setAttribute('onclick',"UnCloneField('" + divs[i].getAttribute('id') + "')");
225 // do nothig if ButtonPlus & CloneButtonPlus don t exist.
231 spans = divs[i].getElementsByTagName('span');
237 if(!CloneButtonPlus){ // it s impossible to have + ... (buttonDot AND buttonPlus)
238 buttonDot = spans[0];
242 var buttonDotOnClick = buttonDot.getAttribute('onclick');
243 if(buttonDotOnClick.match('Clictag')){ // -1- It s a plugin
244 var re = /\('.*'\)/i;
245 buttonDotOnClick = buttonDotOnClick.replace(re,"('"+inputs[1].getAttribute('id')+"')");
246 if(buttonDotOnClick){
247 buttonDot.setAttribute('onclick',buttonDotOnClick);
250 if(buttonDotOnClick.match('Dopop')) { // -2- It's a auth value
252 var re1 = /&index=.*',/;
255 buttonDotOnClick = buttonDotOnClick.replace(re1,"&index="+inputs[1].getAttribute('id')+"',");
256 buttonDotOnClick = buttonDotOnClick.replace(re2,",'"+inputs[1].getAttribute('id')+"')");
258 if(buttonDotOnClick){
259 buttonDot.setAttribute('onclick',buttonDotOnClick);
264 // do not copy the script section.
265 var script = spans[0].getElementsByTagName('script')[0];
266 spans[0].removeChild(script);
268 // do nothing if there is no script
274 <!-- TMPL_UNLESS NAME='hide_marc'-->
275 var buttonUp = divs[i].getElementsByTagName('img')[0];
276 buttonUp.setAttribute('onclick',"upSubfield('" + divs[i].getAttribute('id') + "')");
277 <!-- /TMPL_UNLESS -->
279 } else { // it's a indicator div
280 if(divs[i].getAttribute('name') == 'div_indicator'){
281 var inputs = divs[i].getElementsByTagName('input');
282 inputs[0].setAttribute('id',inputs[0].getAttribute('id')+new_key);
283 inputs[1].setAttribute('id',inputs[1].getAttribute('id')+new_key);
287 var anchors = divs[i].getElementsByTagName('span');
288 for (var j = 0; j < anchors.length; j++) {
289 if (anchors[j].getAttribute('class') == 'buttonPlus') {
290 anchors[j].setAttribute('onclick',"CloneField('" + new_id + "')");
291 } else if (anchors[j].getAttribute('class') == 'buttonMinus') {
292 anchors[j].setAttribute('onclick',"UnCloneField('" + new_id + "')");
297 // do nothig CloneButtonPlus doesn't exist.
300 // setting its 'Expand' property
303 ExpandFieldA = divs[i].getElementsByTagName('a')[0];
304 ExpandFieldA.setAttribute('onclick',"ExpandField('" + divs[i].parentNode.getAttribute('id') + "')");
307 // do nothig if ButtonPlus & CloneButtonPlus don t exist.
314 // insert this line on the page
315 original.parentNode.insertBefore(clone,original.nextSibling);
318 function CloneSubfield(index){
319 var original = document.getElementById(index); //original <div>
320 fields_in_use[index.substr(0, 12)]++;
321 var clone = original.cloneNode(true);
322 var new_key = CreateKey();
323 var new_id = original.getAttribute('id')+new_key;
325 // set the attribute for the new 'div' subfields
326 var inputs = clone.getElementsByTagName('input');
327 var selects = clone.getElementsByTagName('select');
328 var textareas = clone.getElementsByTagName('textarea');
332 for(var i=0,len=inputs.length; i<len ; i++ ){
333 id_input = inputs[i].getAttribute('id')+new_key;
334 inputs[i].setAttribute('id',id_input);
335 inputs[i].setAttribute('name',inputs[i].getAttribute('name')+new_key);
339 for(var i=0,len=selects.length; i<len ; i++ ){
340 id_input = selects[i].getAttribute('id')+new_key;
341 selects[i].setAttribute('id',selects[i].getAttribute('id')+new_key);
342 selects[i].setAttribute('name',selects[i].getAttribute('name')+new_key);
346 for(var i=0,len=textareas.length; i<len ; i++ ){
347 id_input = textareas[i].getAttribute('id')+new_key;
348 textareas[i].setAttribute('id',textareas[i].getAttribute('id')+new_key);
349 textareas[i].setAttribute('name',textareas[i].getAttribute('name')+new_key);
352 <!-- TMPL_UNLESS NAME='advancedMARCEditor' -->
353 // when cloning a subfield, reset its label too.
354 var label = clone.getElementsByTagName('label')[0];
355 label.setAttribute('for',id_input);
356 <!-- /TMPL_UNLESS -->
358 // setting a new if for the parent div
359 clone.setAttribute('id',new_id);
362 var buttonUp = clone.getElementsByTagName('img')[0];
363 buttonUp.setAttribute('onclick',"upSubfield('" + new_id + "')");
364 var spans = clone.getElementsByTagName('span');
366 for(var i = 0 ,lenspans = spans.length ; i < lenspans ; i++){
367 if(spans[i].getAttribute('class') == 'buttonPlus'){
368 spans[i].setAttribute('onclick',"CloneSubfield('" + new_id + "')");
369 } else if (spans[i].getAttribute('class') == 'buttonMinus') {
370 spans[i].setAttribute('onclick',"UnCloneField('" + new_id + "')");
376 // do nothig if ButtonPlus & CloneButtonPlus don't exist.
378 // insert this line on the page
379 original.parentNode.insertBefore(clone,original.nextSibling);
383 * This function removes or clears unwanted subfields
385 function UnCloneField(index) {
386 var original = document.getElementById(index);
388 if (index.match("tag")) {
389 field_id = index.substr(0, 7);
391 field_id = index.substr(0, 12);
393 if (1 == fields_in_use[field_id]) {
394 // clear inputs, but don't delete
395 $(":input.input_marceditor", original).each(function(){
396 // thanks to http://www.learningjquery.com/2007/08/clearing-form-data for
397 // hint about clearing selects correctly
398 var type = this.type;
399 var tag = this.tagName.toLowerCase();
400 if (type == 'text' || type == 'password' || tag == 'textarea') {
402 } else if (type == 'checkbox' || type == 'radio') {
403 this.checked = false;
404 } else if (tag == 'select') {
405 this.selectedIndex = -1;
408 $(":input.indicator", original).val("");
410 original.parentNode.removeChild(original);
411 fields_in_use[field_id]--;
417 * This function create a random number
419 function CreateKey(){
420 return parseInt(Math.random() * 100000);
424 * This function allows to move a subfield up by clickink on the 'up' button .
426 function upSubfield(index) {
428 var line = document.getElementById(index); // get the line where the user has clicked.
430 return; // this line doesn't exist...
432 var tag = line.parentNode; // get the dad of this line. (should be "<div id='tag_...'>")
434 // getting all subfields for this tag
435 var subfields = tag.getElementsByTagName('div');
436 var subfieldsLength = subfields.length;
438 if(subfieldsLength<=1) return; // nothing to do if there is just one subfield.
440 // among all subfields
441 for(var i=0;i<subfieldsLength;i++){
442 if(subfields[i].getAttribute('id') == index){ //looking for the subfield which is clicked :
443 if(i==1){ // if the clicked subfield is on the top
444 tag.appendChild(subfields[1]);
447 var lineAbove = subfields[i-1];
448 tag.insertBefore(line,lineAbove);
455 function unHideSubfield(index,labelindex) { // FIXME :: is it used ?
456 subfield = document.getElementById(index);
457 subfield.style.display = 'block';
458 label = document.getElementById(labelindex);
459 label.style.display='none';
462 function addauthority() {
463 X = document.forms[0].authtype.value;
464 window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
466 function searchauthority() {
467 X = document.forms[0].authtype2.value;
468 Y = document.forms[0].value.value;
469 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";
473 <link type="text/css" rel="stylesheet" href="<!-- TMPL_VAR NAME="themelang" -->/css/addbiblio.css" />
476 <div id="yui-cms-loading">
477 <div id="yui-cms-float">
478 Loading, please wait...
481 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/yui/plugins/loading-min.js"></script>
482 <script type="text/javascript">
485 // configuring the loading mask
486 YAHOO.widget.Loading.config({
492 <!-- TMPL_INCLUDE NAME="header.inc" -->
494 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> › <!-- TMPL_IF name="authid" -->Modify authority #<!-- TMPL_VAR NAME="authid" --> (<!-- TMPL_VAR name="authtypetext" -->)<!-- TMPL_ELSE -->Adding authority <!-- TMPL_VAR name="authtypetext" --><!-- /TMPL_IF --> </div>
496 <div id="doc" class="yui-t7">
502 <!-- TMPL_IF name="authid" -->
503 <h1>Modify authority #<!-- TMPL_VAR NAME="authid" --> <!-- TMPL_VAR name="authtypetext" --></h1>
505 <h1>Adding authority <!-- TMPL_VAR name="authtypetext" --></h1>
507 <form method="post" name="f" action="/cgi-bin/koha/authorities/authorities.pl">
508 <input type="hidden" name="op" value="add" />
509 <input type="hidden" name="addfield_field" value="" />
510 <input type="hidden" name="repeat_field" value="" />
511 <input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
512 <input type="hidden" name="authid" value="<!-- TMPL_VAR NAME="authid" -->" />
515 <script type="text/javascript">
517 // prepare DOM for YUI Toolbar
518 $(document).ready(function() {
520 $("#addauthc,#action").empty();
522 // YUI Toolbar Functions
523 function yuiToolbar() {
524 var addauthButton = new YAHOO.widget.Button({
528 container: "addauthc",
529 onclick: {fn: Check }
531 var addauthButton2 = new YAHOO.widget.Button({
536 onclick: {fn: Check }
540 <ul class="toolbar"><li id="addauthc"><input id="addauth" type="submit" value="Save" accesskey="w" /></li></ul></div>
542 <!-- TMPL_IF name="duplicateauthid" -->
543 <div class="problem">
544 <p>Duplicate suspected with <a href="javascript:openWindow('detail.pl?authid=<!-- TMPL_VAR name=duplicateauthid -->&popup=1', 'Duplicate Authority')" class="button"><!-- TMPL_VAR name="duplicateauthvalue" --></a></p>
545 <p>You must either :</p>
547 <p><input type="checkbox" value="1" name="confirm_not_duplicate" />confirm it's not a duplicate (and click on <input type="button" value="Add authority" onclick="Check(this.form)" accesskey="w" class="button" /> again)</p>
548 <p>Go to <a href="authorities.pl?authid=<!-- TMPL_VAR name="duplicateauthid" -->" >original authority</a></p>
553 <div id="authoritytabs" class="toptabs numbered">
554 <ul> <!-- TMPL_LOOP name="BIG_LOOP" -->
555 <li><!-- TMPL_IF name="number" -->
556 <a href="/cgi-bin/authorities/authorties.pl#tab<!-- TMPL_VAR name="number" -->XX"><!-- TMPL_VAR name="number"--></a>
558 <a href="/cgi-bin/authorities/authorties.pl#tab<!-- TMPL_VAR name="number" -->XX"><!-- TMPL_VAR name="number"--></a>
559 <!-- /TMPL_IF --></li>
560 <!-- /TMPL_LOOP --></ul>
562 <!-- TMPL_LOOP name="BIG_LOOP" -->
563 <!-- hide every tab except the 1st -->
564 <!-- TMPL_IF name="number" -->
565 <div id="tab<!-- TMPL_VAR name="number" -->XX">
567 <div id="tab<!-- TMPL_VAR name="number" -->XX">
570 <!-- TMPL_LOOP NAME="innerloop" -->
571 <!-- TMPL_IF NAME="tag" -->
572 <div class="tag" id="tag_<!-- TMPL_VAR name="tag"-->_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->">
573 <div class="tag_title" name="div_indicator">
574 <!-- TMPL_UNLESS name="hide_marc" -->
575 <span title="<!-- TMPL_VAR NAME="tag_lib" -->"><!-- TMPL_VAR NAME="tag" --></span>
576 <!-- TMPL_IF NAME="fixedfield" -->
577 <input class="indicator flat"
579 style="display:none;"
580 name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator1_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->"
583 value="<!-- TMPL_VAR NAME="indicator1" -->" />
584 <input class="indicator flat"
586 style="display:none;"
587 name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator2_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->"
590 value="<!-- TMPL_VAR NAME="indicator2" -->" />
592 <input class="indicator flat"
594 name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator1_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->"
597 value="<!-- TMPL_VAR NAME="indicator1" -->" />
598 <input class="indicator flat"
600 name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator2_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->"
603 value="<!-- TMPL_VAR NAME="indicator2" -->" />
606 <!-- TMPL_IF NAME="fixedfield" -->
608 name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator1_<!-- TMPL_VAR NAME='index'-->"
609 value="<!-- TMPL_VAR NAME="indicator1" --><!-- TMPL_VAR name="random" -->" />
611 name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator2_<!-- TMPL_VAR NAME='index'-->"
612 value="<!-- TMPL_VAR NAME="indicator2" --><!-- TMPL_VAR name="random" -->" />
615 name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator1_<!-- TMPL_VAR NAME='index'-->"
616 value="<!-- TMPL_VAR NAME="indicator1" --><!-- TMPL_VAR name="random" -->" />
618 name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator2_<!-- TMPL_VAR NAME='index'-->"
619 value="<!-- TMPL_VAR NAME="indicator2" --><!-- TMPL_VAR name="random" -->" />
621 <!-- /TMPL_UNLESS -->
623 <!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
624 <a onclick="ExpandField('tag_<!-- TMPL_VAR name="tag"-->_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->')"><!-- TMPL_VAR NAME="tag_lib" --></a>
625 <!-- /TMPL_UNLESS -->
626 <!-- TMPL_IF name="repeatable" -->
627 <span class="buttonPlus" onclick="CloneField('tag_<!-- TMPL_VAR name="tag"-->_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->')">+</span>
629 <!-- TMPL_UNLESS NAME="mandatory" -->
630 <span class="buttonMinus" onclick="UnCloneField('tag_<!-- TMPL_VAR name="tag"-->_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->')">−</span>
631 <!-- /TMPL_UNLESS -->
635 <!-- TMPL_LOOP NAME="subfield_loop" -->
636 <!-- One line on the marc editor -->
637 <div name="line" class="subfield_line" style="<!-- TMPL_VAR NAME='visibility' -->;" id="subfield<!-- TMPL_VAR NAME='tag' --><!-- TMPL_VAR NAME='subfield' -->">
639 <!--TMPL_UNLESS NAME="advancedMARCEditor" -->
640 <label for="tag_<!-- TMPL_VAR NAME='tag'-->_subfield_<!-- TMPL_VAR NAME='subfield'-->_<!-- TMPL_VAR NAME='index'-->_<!-- TMPL_VAR NAME='index_subfield'-->"
641 <!-- TMPL_IF NAME="fixedfield" --> style="display:none;" <!-- /TMPL_IF --> class="labelsubfield" >
642 <!-- /TMPL_UNLESS -->
644 <!-- TMPL_UNLESS name="hide_marc" -->
645 <!-- TMPL_IF NAME="fixedfield" -->
646 <img class="buttonUp" style="display:none;" src="<!-- TMPL_VAR NAME="themelang" -->/../img/up.png" onclick="upSubfield('subfield<!-- TMPL_VAR NAME='tag' --><!-- TMPL_VAR NAME='subfield' -->')" alt="Move Up" title="Move Up" />
648 <img class="buttonUp" src="<!-- TMPL_VAR NAME="themelang" -->/../img/up.png" onclick="upSubfield('subfield<!-- TMPL_VAR NAME='tag' --><!-- TMPL_VAR NAME='subfield' -->')" alt="Move Up" title="Move Up" />
650 <input title="<!-- TMPL_VAR NAME='marc_lib_plain' -->"
651 style=" <!-- TMPL_IF NAME="fixedfield" -->display:none; <!-- /TMPL_IF -->border:0;" type="text"
652 name="tag_<!-- TMPL_VAR NAME='tag'-->_code_<!-- TMPL_VAR NAME='subfield'-->_<!-- TMPL_VAR NAME='index'-->_<!-- TMPL_VAR NAME='index_subfield'-->"
653 value="<!-- TMPL_VAR NAME="subfield" -->"
660 name="tag_<!-- TMPL_VAR NAME='tag'-->_code_<!-- TMPL_VAR NAME='subfield'-->_<!-- TMPL_VAR NAME='index'-->_<!-- TMPL_VAR NAME='index_subfield'-->"
661 value="<!-- TMPL_VAR NAME="subfield" -->"/>
662 <!-- /TMPL_UNLESS -->
664 <!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
665 <!-- TMPL_IF name="mandatory" --><span class="subfield_mandatory"><!-- /TMPL_IF -->
666 <!-- TMPL_VAR NAME="marc_lib" -->
667 <!-- TMPL_IF name="mandatory" --></span><!-- /TMPL_IF -->
669 <!-- /TMPL_UNLESS -->
671 <!-- TMPL_VAR NAME="marc_value" -->
673 <!-- TMPL_IF NAME="repeatable" -->
674 <span class="buttonPlus" onclick="CloneSubfield('subfield<!-- TMPL_VAR NAME='tag' --><!-- TMPL_VAR NAME='subfield' -->')">+</span>
676 <!-- TMPL_UNLESS NAME="mandatory" -->
677 <span class="buttonMinus" onclick="UnCloneField('subfield<!-- TMPL_VAR NAME='tag' --><!-- TMPL_VAR NAME='subfield' --><!-- TMPL_VAR name="random" -->')">−</span>
678 <!-- /TMPL_UNLESS -->
681 <!-- End of the line -->
685 <!-- /TMPL_IF --><!-- tag -->
690 <!-- TMPL_UNLESS Name="singletab" -->
695 <div name="hidden" id="hidden" class="tab">
696 <!-- TMPL_LOOP NAME="hidden_loop" -->
697 <input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->" />
698 <input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" />
699 <input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->" />
700 <input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->" />
701 <input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->" />
704 <!-- TMPL_IF name="oldauthnumtagfield" -->
705 <input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="oldauthnumtagfield" -->" />
706 <input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="oldauthnumtagsubfield" -->" />
707 <input type="hidden" name="field_value" value="<!-- TMPL_VAR NAME="authid" -->" />
708 <input type="hidden" name="mandatory" value="0" />
709 <input type="hidden" name="kohafield" value="<!-- TMPL_VAR NAME="kohafield" -->" />
710 <input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR NAME="tag_mandatory" -->" />
711 <input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="oldauthtypetagfield" -->" />
712 <input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="oldauthtypetagsubfield" -->" />
713 <input type="hidden" name="field_value" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
715 <fieldset class="action">
716 <input type="button" id="addauth2" value="Save" onclick="Check(this.form)" accesskey="w" />
722 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->