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 8ec787d5b1..b78609bbda 100644 --- a/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl +++ b/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl @@ -24,7 +24,7 @@ - +
@@ -37,7 +37,7 @@
- + @@ -59,24 +59,22 @@ -
"> +
">

" /> - - " onblur="this.className='indicator';" onfocus="this.className='indicatorFocus';" type="text" style="display:none;" name="indicator" size="2" maxlength="2" value="" class="flat" /> - + "> + style="display:none;" name="indicator" size="2" maxlength="2" value="" class="flat" /> - style="display:none;" name="indicator" value="" /> - ');">+ + ')">+

- - " onclick="unHideSubfield('subfield','label')"> @@ -86,11 +84,11 @@

- style="display:none;" class="labelsubfield"> + ')">+ " /> - " size="2" maxlength="1" /> + " size="2" maxlength="1" /> " /> " /> " /> @@ -131,7 +129,7 @@ " /> " /> - " /> + " /> " /> " /> @@ -304,6 +302,11 @@ function PopupZ3950() { } } +function Changefwk(FwkList) { + var fwk = FwkList.options[FwkList.selectedIndex].value; + window.location = "addbiblio.pl?oldbiblionumber=&frameworkcode="+fwk; +} + function openAuth(tagid,authtype,X) { // defaultid=document.getElementById(subfieldid); Y=X.parentNode.getAttribute("id"); @@ -315,12 +318,10 @@ function Changefwk(FwkList) { window.location = "addbiblio.pl?oldbiblionumber=&frameworkcode="+fwk; } -function cloneTag(index) { - var original = document.getElementById(index); - var clone = original.cloneNode(true); - // OK, now rename the id of the - clone.setAttribute("id", index + index); - original.parentNode.insertBefore( clone, original.nextSibling); +function AddField(field) { + document.forms['f'].op.value = "addfield"; + document.forms['f'].addfield_field.value=field; + document.f.submit(); } function cloneSubfield(index) { @@ -336,10 +337,10 @@ function cloneSubfield(index) { image = clone.getElementsByTagName('img')[0]; image.setAttribute("onclick","upSubfield('" + index + index + "')"); -// trigger = original.getElementsByTagName('a')[0]; -// if (trigger) { -// trigger.parentNode.removeChild(trigger); -// } + trigger = original.getElementsByTagName('a')[0]; + if (trigger) { + trigger.parentNode.removeChild(trigger); + } clonetrigger = clone.getElementsByTagName('a')[0]; clonetrigger.setAttribute("onclick","cloneSubfield('" + index + index + "')"); clone.setAttribute("tabindex","1");