From 38cc759bf8afba0ac07eaf80782697d21e5323bc Mon Sep 17 00:00:00 2001 From: oleonard Date: Tue, 25 Jul 2006 18:49:23 +0000 Subject: [PATCH] Re-synching with default template --- .../npl/en/acqui.simple/addbiblio.tmpl | 444 +++++------------- 1 file changed, 121 insertions(+), 323 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl b/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl index ad7e25d7eb..3ded498f60 100644 --- a/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl +++ b/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl @@ -13,9 +13,8 @@

Edit MARC Record Number Add MARC Record With Framework :

- - -
+
+ " /> " /> @@ -28,299 +27,88 @@
- - 0 - - - 1 - - - 2 - - - 3 - - - 4 - - - 5 - - - 6 - - - 7 - - - 8 - - - 9 - + + ); return false;" id="link"> +
- -
- -
-

Is this a duplicate of " onclick="openWindow('../MARCdetail.pl?bib=&popup=1', 'Duplicate biblio'; return false;)">?

-

You must either :

- -
- - - -

- "> - "> - style="display:none;" name="indicator" size="2" maxlength="2" value="" class="flat"> - - - style="display:none;" name="indicator" value=""> - - ')">+ -

- -
" onclick="unHideSubfield('subfield','label')">
-')">+ -"/> -" size="2" maxlength="1"/> -"/> -"/> -"/> -
- -
-
- - -

- "> - "> - " class="flat"> - - -"> - - ')">+ -

- -
" onclick="unHideSubfield('subfield','label')">
-')">+ -"/> -" size="2" maxlength="1"/> -"/> -"/> -"/> -
- -
-
- - -

- "> - "> - " class="flat"> - - -"> - - ')">+ -

- -
" onclick="unHideSubfield('subfield','label')">
-')">+ -"/> -" size="2" maxlength="1"/> -"/> -"/> -"/> -
- -
-
- - -

- "> - "> - " class="flat"> - - -"> - - ')">+ -

- -
" onclick="unHideSubfield('subfield','label')">
-')">+ -"/> -" size="2" maxlength="1"/> -"/> -"/> -"/> -
- -
-
- - -

- "> - "> - " class="flat"> - - -"> - - ')">+ -

- -
" onclick="unHideSubfield('subfield','label')">
-')">+ -"/> -" size="2" maxlength="1"/> -"/> -"/> -"/> -
- -
-
- - -

- "> - "> - " class="flat"> - - -"> - - ')">+ -

- -
" onclick="unHideSubfield('subfield','label')">
-')">+ -"/> -" size="2" maxlength="1"/> -"/> -"/> -"/> -
- -
-
- - -

- "> - "> - " class="flat"> - - -"> - - ')">+ -

- -
" onclick="unHideSubfield('subfield','label')">
-')">+ -"/> -" size="2" maxlength="1"/> -"/> -"/> -"/> -
- -
-
- - -

- "> - "> - " class="flat"> - - -"> - - ')">+ -

- -
" onclick="unHideSubfield('subfield','label')">
-')">+ -"/> -" size="2" maxlength="1"/> -"/> -"/> -"/> -
- -
-
- - -

- "> - "> - " class="flat"> - - -"> - - ')">+ -

- -
" onclick="unHideSubfield('subfield','label')">
-')">+ -"/> -" size="2" maxlength="1"/> -"/> -"/> -"/> -
- -
-
- - -

- "> - "> - " class="flat"> - + + + + +

XX" id="XX" class="tab" style="visibility:hidden"> -"> - - ')">+ -

+
XX" id="XX" class="tab" style="visibility:visible"> -
" onclick="unHideSubfield('subfield','label')">
-')">+ -"/> -" size="2" maxlength="1"/> -"/> -"/> -"/> -
+ + + +
+

Is this a duplicate of " onclick="openWindow('../MARCdetail.pl?bib=&popup=1', 'Duplicate biblio'; return false;)">?

+

You must either :

+ +
+ + + +
"> + +

+ "> + + "> + style="display:none;" name="indicator" size="2" maxlength="2" value="" class="flat"> - + + style="display:none;" name="indicator" value=""> + + + + + ')">+ +

+ + + + " onclick="unHideSubfield('subfield','label')"> + + + +
+

+ + + + + + ')">+ + + "/> + " size="2" maxlength="1"/> + "/> + "/> + "/> +

+
+ +
+ +
-
"> @@ -361,16 +149,22 @@ function active(numlayer) link = "link"+i; if (numlayer==i) { with(document){ - document.getElementById(ong).style.visibility="visible"; - document.getElementById(link).style.color="#000066"; - document.getElementById(link).style.backgroundColor="#FFFFCC"; + if (document.getElementById(ong)){ + document.getElementById(ong).style.visibility="visible"; + } + if(document.getElementById(link)){ + document.getElementById(link).style.color="#000066"; + document.getElementById(link).style.backgroundColor="#FFFFCC"; + } } } else { with(document){ - document.getElementById(ong).style.visibility="hidden"; + if (document.getElementById(ong)){ + document.getElementById(ong).style.visibility="hidden"; + } if (document.getElementById(link)) { - document.getElementById(link).style.color="#669999"; - document.getElementById(link).style.backgroundColor="#D8DEB8"; + document.getElementById(link).style.color="#669999"; + document.getElementById(link).style.backgroundColor="#D8DEB8"; } } } @@ -378,10 +172,7 @@ function active(numlayer) } active(0); function Check(f) { -document.forms['f'].submit(); -} -function Check2(f) { - document.body.style.cursor ='wait'; + document.body.style.cursor ="wait"; // Scan for nonempty fields var field_is_nonempty_p = new Array(); for (i=0 ; i&frameworkcode="+fwk; } +function openAuth(tagid,authtype,X) { +// defaultid=document.getElementById(subfieldid); +// alert("X"+X); + Y=X.parentNode.getAttribute("id"); +// alert("tagid"+Y); + newin=window.open("../authorities/auth_finder.pl?authtypecode="+ authtype+ "&tagid="+Y, "value builder",'width=550,height=550,toolbar=false,scrollbars=yes'); +} + + function AddField(field) { document.forms['f'].op.value = "addfield"; document.forms['f'].addfield_field.value=field; @@ -525,22 +320,25 @@ function AddField(field) { function cloneSubfield(index) { var original = document.getElementById(index); -// alert(index); var clone = original.cloneNode(true); clone.setAttribute("id", index + index); - image = clone.getElementsByTagName('img')[0]; - image.setAttribute("onclick","upSubfield('" + index + index + "')"); +// orginput : the value of the original field (in [0] if hide_marc=1, otherwise in [1] +// image : the up button. don't exist is hide_marc=1 + + var orginput = original.getElementsByTagName('input')[0]; + + var orginput = original.getElementsByTagName('input')[1]; + image = clone.getElementsByTagName('img')[0]; + image.setAttribute("onclick","upSubfield('" + index + index + "')"); + trigger = original.getElementsByTagName('a')[0]; if (trigger) { trigger.parentNode.removeChild(trigger); } - clonespan = clone.getElementsByTagName('span')[0]; - clonespan.setAttribute("id", "error"+index); clonetrigger = clone.getElementsByTagName('a')[0]; clonetrigger.setAttribute("onclick","cloneSubfield('" + index + index + "')"); clone.setAttribute("tabindex","1"); - var orginput = original.getElementsByTagName('input')[0]; -// orginput.value = ''; + orginput.value = ''; original.parentNode.insertBefore( clone, original.nextSibling); } -- 2.39.5