1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Cataloging › <!-- TMPL_IF NAME="biblionumber" -->Edit MARC Record Number <!-- TMPL_VAR name="biblionumber" --><!-- TMPL_ELSE -->Add MARC Record<!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="yui-toolbars.inc" -->
5 <script type="text/javascript">
8 $(document).ready(function() {
9 $('#addbibliotabs').tabs();
12 function confirmnotdup(){
13 $("#confirm_not_duplicate").attr("value","1");
14 // alert(_("Not a duplicate confirmed. Please click on Add biblio to save the record"));
15 var checkform = $("#f");
24 var StrAlert = AreMandatoriesNotOk();
34 function Dopop(link,i) {
35 defaultvalue = document.getElementById(i).value;
36 window.open(link+"&result="+defaultvalue,"value builder",'width=700,height=550,toolbar=false,scrollbars=yes');
40 * this function open a popup to search on z3950 server.
42 function PopupZ3950() {
43 var strQuery = AreZ3950MandoriesOk();
45 window.open("/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->"+strQuery,"z3950search",'width=640,height=400,location=yes,toolbar=no,scrollbars=yes');
47 var strAlert = _("To perform a z39.50 search, you must enter at least one of the following: \n\n ISBN\n ISSN\n Title\n Author\n");
53 * check if mandatory subfields are writed
55 function AreMandatoriesNotOk(){
56 var mandatories = new Array();
57 var tab = new Array();
58 var label = new Array();
60 var tabflag= new Array();
61 <!-- TMPL_LOOP NAME='BIG_LOOP' --><!-- TMPL_LOOP NAME='innerloop' --><!-- TMPL_LOOP NAME='subfield_loop'--><!-- TMPL_IF NAME='mandatory'-->mandatories.push("<!-- TMPL_VAR NAME='id' -->");
62 tab.push("<!-- TMPL_VAR NAME='number' -->");
63 label.push("<!-- TMPL_VAR NAME='marc_lib' -->");
64 <!-- /TMPL_IF --><!-- /TMPL_LOOP --><!-- /TMPL_LOOP --><!-- /TMPL_LOOP -->
65 var StrAlert = _("Can't save this record because the following field aren't filled :\n\n");
66 for(var i=0,len=mandatories.length; i<len ; i++){
67 var tag=mandatories[i].substr(4,3);
68 var subfield=mandatories[i].substr(17,1);
69 var tagnumber=mandatories[i].substr(19,mandatories[i].lastIndexOf("_")-19);
70 tabflag[tag+subfield+tagnumber]=new Array();
71 tabflag[tag+subfield+tagnumber][0]=0;
72 if( ! document.getElementById(mandatories[i]).value){
73 tabflag[tag+subfield+tagnumber][0] = 0 + tabflag[tag+subfield+tagnumber] ;
74 document.getElementById(mandatories[i]).setAttribute('class','subfield_not_filled');
75 document.getElementById(mandatories[i]).focus();
76 tabflag[tag+subfield+tagnumber][1]=label[i];
77 tabflag[tag+subfield+tagnumber][2]=tab[i];
79 tabflag[tag+subfield+tagnumber][0] = 1;
82 for (var tagsubfieldid in tabflag){
83 if (tabflag[tagsubfieldid][0]==0){
84 var tag=tagsubfieldid.substr(0,3);
85 var subfield=tagsubfieldid.substr(3,1);
86 StrAlert += "\t* "+_("tag ")+tag+_(" subfield ")+subfield+" "+tabflag[tagsubfieldid][1]+_(" in tab ")+tabflag[tagsubfieldid][2]+"\n";
87 //StrAlert += "\t* "+label[i]+_(" in tab ")+tab[i]+"\n";
99 * check if z3950 mandatories are set or not
101 function AreZ3950MandoriesOk(){
102 var mandatories = new Array();
103 var mandatories_label = new Array();
104 <!-- TMPL_LOOP NAME='BIG_LOOP' --><!-- TMPL_LOOP NAME='innerloop' --><!-- TMPL_LOOP NAME='subfield_loop'--><!-- TMPL_IF NAME='z3950_mandatory'-->mandatories.push("<!-- TMPL_VAR NAME='id' -->");
105 mandatories_label.push("<!-- TMPL_VAR NAME='z3950_mandatory' -->");<!-- /TMPL_IF --><!-- /TMPL_LOOP --><!-- /TMPL_LOOP --><!-- /TMPL_LOOP -->
109 for(var i=0,len=mandatories.length; i<len ; i++){
110 var field_value = document.getElementById(mandatories[i]).value;
114 strQuery += "&"+mandatories_label[i]+"="+field_value;
124 function Changefwk(FwkList) {
125 var fwk = FwkList.options[FwkList.selectedIndex].value;
126 window.location = "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=<!--TMPL_VAR Name="biblionumber"-->&breedingid=<!-- TMPL_VAR name="breedingid" -->&frameworkcode="+fwk;
130 function openAuth(tagid,authtype,X) {
131 // defaultid=document.getElementById(subfieldid);
133 Y=X.parentNode.getAttribute("id");
135 newin=window.open("../authorities/auth_finder.pl?authtypecode="+ authtype+ "&tagid="+Y, "value builder",'width=700,height=550,toolbar=false,scrollbars=yes');
139 function ExpandField(index) {
140 var original = document.getElementById(index); //original <div>
141 var divs = original.getElementsByTagName('div');
142 for(var i=0,divslen = divs.length ; i<divslen ; i++){ // foreach div
143 if(divs[i].getAttribute("name") == 'line'){ // if it s a subfield
150 * To clone a field or a subfield by clickink on '+' button
152 function CloneField(index) {
153 var original = document.getElementById(index); //original <div>
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 var indicator = clone.getElementsByTagName('input')[0];
165 indicator.setAttribute('name',indicator.getAttribute('name')+new_key);
166 <!-- /TMPL_UNLESS -->
168 // settings all subfields
169 for(var i=0,divslen = divs.length ; i<divslen ; i++){ // foreach div
170 if(divs[i].getAttribute("name") == 'line'){ // if it s a subfield
172 // set the attribute for the new 'div' subfields
173 divs[i].setAttribute('id',divs[i].getAttribute('id')+new_key);
175 var inputs = divs[i].getElementsByTagName('input');
178 inputs[0].setAttribute('id',inputs[0].getAttribute('id')+new_key);
179 inputs[0].setAttribute('name',inputs[0].getAttribute('name')+new_key);
182 id_input = inputs[1].getAttribute('id')+new_key;
183 inputs[1].setAttribute('id',id_input);
184 inputs[1].setAttribute('name',inputs[1].getAttribute('name')+new_key);
186 try{ // it s a select if it is not an input
187 var selects = divs[i].getElementsByTagName('select');
188 id_input = selects[0].getAttribute('id')+new_key;
189 selects[0].setAttribute('id',id_input);
190 selects[0].setAttribute('name',selects[0].getAttribute('name')+new_key);
191 }catch(e2){ // it is a textarea if it s not a select or an input
192 var textaeras = divs[i].getElementsByTagName('textarea');
193 id_input = textaeras[0].getAttribute('id')+new_key;
194 textaeras[0].setAttribute('id',id_input);
195 textaeras[0].setAttribute('name',textaeras[0].getAttribute('name')+new_key);
199 <!-- TMPL_UNLESS NAME='advancedMARCEditor'-->
200 // when cloning a subfield, re set its label too.
201 var labels = divs[i].getElementsByTagName('label');
202 labels[0].setAttribute('for',id_input);
203 <!-- /TMPL_UNLESS -->
205 <!-- TMPL_UNLESS NAME='hide_marc'-->
206 // updating javascript parameters on button up
207 var imgs = divs[i].getElementsByTagName('img');
208 imgs[0].setAttribute('onclick',"upSubfield(\'"+divs[i].getAttribute('id')+"\');");
209 <!-- /TMPL_UNLESS -->
211 // setting its '+' button
212 var CloneButtonPlus=0;
214 CloneButtonPlus = divs[i].getElementsByTagName('span')[0];
215 if(CloneButtonPlus.getAttribute('class') == 'buttonPlus'){
216 CloneButtonPlus.setAttribute('onclick',"CloneSubfield('" + divs[i].getAttribute('id') + "')");
222 // do nothig if ButtonPlus & CloneButtonPlus don t exist.
228 spans = divs[i].getElementsByTagName('a');
234 if(!CloneButtonPlus){ // it s impossible to have + ... (buttonDot AND buttonPlus)
235 buttonDot = spans[0];
239 var buttonDotOnClick = buttonDot.getAttribute('onclick');
240 if(buttonDotOnClick.match('Clictag')){ // -1- It s a plugin
241 var re = /\('.*'\)/i;
242 buttonDotOnClick = buttonDotOnClick.replace(re,"('"+inputs[1].getAttribute('id')+"')");
243 if(buttonDotOnClick){
244 buttonDot.setAttribute('onclick',buttonDotOnClick);
247 if(buttonDotOnClick.match('Dopop')) { // -2- It's a auth value
248 var re1 = /&index=.*',/;
251 buttonDotOnClick = buttonDotOnClick.replace(re1,"&index="+inputs[1].getAttribute('id')+"',");
252 buttonDotOnClick = buttonDotOnClick.replace(re2,",'"+inputs[1].getAttribute('id')+"')");
254 if(buttonDotOnClick){
255 buttonDot.setAttribute('onclick',buttonDotOnClick);
260 // do not copy the script section.
261 var script = spans[0].getElementsByTagName('script')[0];
262 spans[0].removeChild(script);
264 // do nothing if there is no script
270 <!-- TMPL_UNLESS NAME='hide_marc'-->
271 var buttonUp = divs[i].getElementsByTagName('img')[0];
272 buttonUp.setAttribute('onclick',"upSubfield('" + divs[i].getAttribute('id') + "')");
273 <!-- /TMPL_UNLESS -->
275 } else { // it's a indicator div
276 if(divs[i].getAttribute('name') == 'div_indicator'){
277 var inputs = divs[i].getElementsByTagName('input');
278 inputs[0].setAttribute('id',inputs[0].getAttribute('id')+new_key);
282 CloneButtonPlus = divs[i].getElementsByTagName('span')[1]; // 0 is the title
283 CloneButtonPlus.setAttribute('onclick',"CloneField('" + divs[i].parentNode.getAttribute('id') + "')");
286 // do nothig CloneButtonPlus doesn't exist.
288 // setting its 'Expand' property
291 ExpandFieldA = divs[i].getElementsByTagName('a')[0];
292 ExpandFieldA.setAttribute('onclick',"ExpandField('" + divs[i].parentNode.getAttribute('id') + "')");
295 // do nothig if ButtonPlus & CloneButtonPlus don t exist.
302 // insert this line on the page
303 original.parentNode.insertBefore(clone,original.nextSibling);
306 function CloneSubfield(index){
307 var original = document.getElementById(index); //original <div>
308 var clone = original.cloneNode(true);
309 var new_key = CreateKey();
310 var new_id = original.getAttribute('id')+new_key;
312 // set the attribute for the new 'div' subfields
313 var inputs = clone.getElementsByTagName('input');
314 var selects = clone.getElementsByTagName('select');
315 var textareas = clone.getElementsByTagName('textarea');
319 for(var i=0,len=inputs.length; i<len ; i++ ){
320 id_input = inputs[i].getAttribute('id')+new_key;
321 inputs[i].setAttribute('id',id_input);
322 inputs[i].setAttribute('name',inputs[i].getAttribute('name')+new_key);
326 for(var i=0,len=selects.length; i<len ; i++ ){
327 id_input = selects[i].getAttribute('id')+new_key;
328 selects[i].setAttribute('id',selects[i].getAttribute('id')+new_key);
329 selects[i].setAttribute('name',selects[i].getAttribute('name')+new_key);
333 for(var i=0,len=textareas.length; i<len ; i++ ){
334 id_input = textareas[i].getAttribute('id')+new_key;
335 textareas[i].setAttribute('id',textareas[i].getAttribute('id')+new_key);
336 textareas[i].setAttribute('name',textareas[i].getAttribute('name')+new_key);
339 <!-- TMPL_UNLESS NAME='advancedMARCEditor' -->
340 // when cloning a subfield, reset its label too.
341 var label = clone.getElementsByTagName('label')[0];
342 label.setAttribute('for',id_input);
343 <!-- /TMPL_UNLESS -->
345 // setting a new if for the parent div
346 clone.setAttribute('id',new_id);
350 var spans = clone.getElementsByTagName('span');
352 for(var i = 0 ,lenspans = spans.length ; i < lenspans ; i++){
353 if(spans[i].getAttribute('class') == 'buttonPlus'){
354 CloneButtonPlus = spans[i];
355 CloneButtonPlus.setAttribute('onclick',"CloneSubfield('" + new_id + "')");
356 var buttonUp = clone.getElementsByTagName('img')[0];
357 buttonUp.setAttribute('onclick',"upSubfield('" + new_id + "')");
363 // do nothig if ButtonPlus & CloneButtonPlus don't exist.
365 // insert this line on the page
366 original.parentNode.insertBefore(clone,original.nextSibling);
370 * This function create a random number
372 function CreateKey(){
373 return parseInt(Math.random() * 100000);
377 * This function allows to move a subfield up by clickink on the 'up' button .
379 function upSubfield(index) {
381 var line = document.getElementById(index); // get the line where the user has clicked.
383 return; // this line doesn't exist...
385 var tag = line.parentNode; // get the dad of this line. (should be "<div id='tag_...'>")
387 // getting all subfields for this tag
388 var subfields = tag.getElementsByTagName('div');
389 var subfieldsLength = subfields.length;
391 if(subfieldsLength<=1) return; // nothing to do if there is just one subfield.
393 // among all subfields
394 for(var i=0;i<subfieldsLength;i++){
395 if(subfields[i].getAttribute('id') == index){ //looking for the subfield which is clicked :
396 if(i==1){ // if the clicked subfield is on the top
397 tag.appendChild(subfields[1]);
400 var lineAbove = subfields[i-1];
401 tag.insertBefore(line,lineAbove);
408 function unHideSubfield(index,labelindex) { // FIXME :: is it used ?
409 subfield = document.getElementById(index);
410 subfield.style.display = 'block';
411 label = document.getElementById(labelindex);
412 label.style.display='none';
416 <style type="text/css">
417 #addbibliotabs { margin-top : 1em; }
420 text-decoration : none;
424 text-decoration : none;
430 <!-- TMPL_INCLUDE NAME="header.inc" -->
432 <div id="doc" class="yui-t7">
438 <h1><!-- TMPL_IF NAME="biblionumtagfield" -->Edit MARC Record Number <!-- TMPL_VAR name="biblionumber" --><!-- TMPL_ELSE -->Add MARC Record<!-- /TMPL_IF --></h1>
440 <!-- TMPL_UNLESS name="number" -->
441 <!-- show duplicate warning on tab 0 only -->
442 <!-- TMPL_IF name="duplicatebiblionumber" -->
444 <h4>Duplicate Record?</h4>
445 <p>Is this a duplicate of <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR name="duplicatebiblionumber" -->" onclick="openWindow('../MARCdetail.pl?biblionumber=<!-- TMPL_VAR name="duplicatebiblionumber" -->&popup=1', 'Duplicate biblio'; return false;)"><!-- TMPL_VAR name="duplicatetitle" --></a>?</p>
446 <form action="/cgi-bin/koha/cataloguing/additem.pl" method="get">
447 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR name="duplicatebiblionumber" -->" />
448 <input type="submit" value="Yes: Edit existing items" />
450 <form action="/cgi-bin/koha/cataloguing/addbiblio.pl" method="get">
451 <input type="submit" onclick="confirmnotdup(); return false;" value="No: Save as New Record" />
455 <!-- /TMPL_UNLESS -->
457 <!--TMPL_IF Name="done"-->
458 <script type="text/javascript">
459 opener.document.forms['f'].biblionumber.value=<!--TMPL_VAR Name="biblionumber"-->;
460 opener.document.forms['f'].title.value='<!--TMPL_VAR Name="title" ESCAPE="HTML"-->';
464 <form method="post" name="f" id="f" action="/cgi-bin/koha/cataloguing/addbiblio.pl" onsubmit="return Check();">
465 <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
470 <script type="text/javascript">
473 // prepare DOM for YUI Toolbar
475 $(document).ready(function() {
476 $("#z3950searchc").empty();
480 // YUI Toolbar Functions
482 function yuiToolbar() {
483 new YAHOO.widget.Button("addbiblio");
484 new YAHOO.widget.Button({
487 label: "z39.50 Search",
488 container: "z3950searchc",
489 onclick: {fn:function(){PopupZ3950()}}
497 <li><input id="addbiblio" type="submit" value="Save" /></li>
498 <li id="z3950searchc"><input type="button" id="z3950search" value="z39.50 Search" onclick="PopupZ3950(); return false;" /></li>
499 <li id="changeframework"><label for="Frameworks">Change framework: </label><!--TMPL_VAR Name="framework" --> <input type="hidden" name="op" value="addbiblio" /></li>
503 <!--TMPL_IF Name="popup"-->
504 <input type="hidden" name="mode" value="popup" />
506 <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
507 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
508 <input type="hidden" name="breedingid" value="<!-- TMPL_VAR NAME="breedingid" -->" />
510 <div id="addbibliotabs" class="toptabs numbered">
511 <ul><!-- TMPL_LOOP name="BIG_LOOP" -->
512 <li> <!-- TMPL_IF name="number" -->
513 <a href="/cgi-bin/koha/cataloguing/addbiblio.pl#tab<!-- TMPL_VAR name="number" -->XX"><!-- TMPL_VAR name="number"--></a>
515 <a href="/cgi-bin/koha/cataloguing/addbiblio.pl#tab<!-- TMPL_VAR name="number" -->XX"><!-- TMPL_VAR name="number"--></a>
516 <!-- /TMPL_IF --></li>
517 <!-- /TMPL_LOOP --></ul>
519 <!-- TMPL_LOOP name="BIG_LOOP" -->
520 <!-- hide every tab except the 1st -->
521 <!-- TMPL_IF name="number" -->
522 <div id="tab<!-- TMPL_VAR name="number" -->XX">
524 <div id="tab<!-- TMPL_VAR name="number" -->XX">
528 <!-- TMPL_LOOP NAME="innerloop" -->
529 <!-- TMPL_IF NAME="tag" -->
530 <div class="tag" id="tag_<!-- TMPL_VAR name="tag"-->_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->">
531 <div class="tag_title" name="div_indicator">
532 <!-- TMPL_UNLESS name="hide_marc" -->
533 <span title="<!-- TMPL_VAR NAME="tag_lib" -->"><!-- TMPL_VAR NAME="tag" --></span>
534 <!-- TMPL_IF NAME="fixedfield" -->
535 <input tabindex="1" class="indicator flat" type="text" style="display:none;" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" />
537 <input tabindex="1" class="indicator flat" type="text" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" size="2" maxlength="2" value="<!-- TMPL_VAR NAME="indicator" -->" />
540 <!-- TMPL_IF NAME="fixedfield" -->
541 <input tabindex="1" type="hidden" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" value="<!-- TMPL_VAR NAME="indicator" -->" />
543 <input tabindex="1" type="hidden" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" value="<!-- TMPL_VAR NAME="indicator" -->" />
545 <!-- /TMPL_UNLESS -->
547 <!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
548 <a href="#" class="expandfield" onclick="ExpandField('tag_<!-- TMPL_VAR name="tag"-->_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->'); return false;" title="Click to Expand this Tag"><!-- TMPL_VAR NAME="tag_lib" --></a>
549 <!-- /TMPL_UNLESS -->
550 <!-- TMPL_IF name="repeatable" -->
551 <a href="#" class="buttonPlus" onclick="CloneField('tag_<!-- TMPL_VAR name="tag"-->_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->'); return false;" title="Repeat this Tag">+</a>
556 <!-- TMPL_LOOP NAME="subfield_loop" -->
557 <!-- One line on the marc editor -->
558 <div name="line" class="subfield_line" style="<!-- TMPL_VAR NAME='visibility' -->;" id="subfield<!-- TMPL_VAR NAME='tag' --><!-- TMPL_VAR NAME='subfield' --><!-- TMPL_VAR name="random" -->">
560 <!--TMPL_UNLESS NAME="advancedMARCEditor" -->
561 <label for="tag_<!-- TMPL_VAR NAME='tag'-->_subfield_<!-- TMPL_VAR NAME='subfield'-->_<!-- TMPL_VAR NAME='index'-->_<!-- TMPL_VAR NAME='index_subfield'-->" <!-- TMPL_IF NAME="fixedfield" --> style="display:none;" <!-- /TMPL_IF --> class="labelsubfield">
562 <!-- /TMPL_UNLESS -->
564 <!-- TMPL_UNLESS name="hide_marc" -->
565 <img class="buttonUp" <!-- TMPL_IF NAME="fixedfield" --> style="display:none;" <!-- /TMPL_IF --> src="<!-- TMPL_VAR NAME="themelang" -->/../img/up.png" onclick="upSubfield('subfield<!-- TMPL_VAR NAME='tag' --><!-- TMPL_VAR NAME='subfield' --><!-- TMPL_VAR name="random" -->')" alt="Move Up" title="Move Up" />
566 <input title="<!-- TMPL_VAR NAME='marc_lib_plain' -->" style=" <!-- TMPL_IF NAME="fixedfield" -->display:none; <!-- /TMPL_IF -->border:0;" type="text" name="tag_<!-- TMPL_VAR NAME='tag'-->_code_<!-- TMPL_VAR NAME='subfield'-->_<!-- TMPL_VAR NAME='index'-->_<!-- TMPL_VAR NAME='index_subfield'-->" value="<!-- TMPL_VAR NAME="subfield" -->" size="1" maxlength="1" class="flat" tabindex="-1" />
568 <input type="hidden" name="tag_<!-- TMPL_VAR NAME='tag'-->_code_<!-- TMPL_VAR NAME='subfield'-->_<!-- TMPL_VAR NAME='index'-->_<!-- TMPL_VAR NAME='index_subfield'-->" value="<!-- TMPL_VAR NAME="subfield" -->" />
569 <!-- /TMPL_UNLESS -->
571 <!-- TMPL_UNLESS NAME="advancedMARCEditor" -->
572 <!-- TMPL_IF name="mandatory" --><span class="subfield_mandatory"><!-- /TMPL_IF -->
573 <!-- TMPL_VAR NAME="marc_lib" -->
574 <!-- TMPL_IF name="mandatory" --></span><!-- /TMPL_IF -->
576 <!-- /TMPL_UNLESS -->
578 <!-- TMPL_VAR NAME="marc_value" -->
580 <!-- TMPL_IF NAME="repeatable" -->
581 <span class="buttonPlus" onclick="CloneSubfield('subfield<!-- TMPL_VAR NAME='tag' --><!-- TMPL_VAR NAME='subfield' --><!-- TMPL_VAR name="random" -->')">+</span>
585 <!-- End of the line -->
589 <!-- /TMPL_IF --><!-- tag -->
599 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->