[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simpl... [rel_2_2]
From: |
paul poulain |
Subject: |
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simpl... [rel_2_2] |
Date: |
Mon, 12 Jun 2006 10:37:12 +0000 |
CVSROOT: /cvsroot/koha
Module name: koha
Branch: rel_2_2
Changes by: paul poulain <tipaul> 06/06/12 10:37:12
Modified files:
koha-tmpl/intranet-tmpl/npl/en/acqui.simple: addbiblio.tmpl
Log message:
[IMPORTANT]
when cloning a tag, there was a problem to detect the tag change when
rebuilding the XML/MARC record :
the test was done on an empty field.
with the new CloneTag sub, this empty field was quite tricky to create
on the fly.
so i've added on each subfield a <input name="firstsubfield"> saying
wether the subfield is the 1st or not.
Thus, when a tag is cloned, it is cloned properly.
HTML2marc and well as HTML2xml have been modified, but PLEASE DOUBLE
CHECK my work
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.4.2.16&r2=1.4.2.17
Patches:
Index: addbiblio.tmpl
===================================================================
RCS file:
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simple/addbiblio.tmpl,v
retrieving revision 1.4.2.16
retrieving revision 1.4.2.17
diff -u -b -r1.4.2.16 -r1.4.2.17
--- addbiblio.tmpl 9 Jun 2006 14:29:05 -0000 1.4.2.16
+++ addbiblio.tmpl 12 Jun 2006 10:37:12 -0000 1.4.2.17
@@ -126,7 +126,7 @@
<a style="cursor: crosshair; color: grey; font-size: 80%;"
onclick="cloneSubfield('subfield<!-- TMPL_VAR NAME="tag" --><!-- TMPL_VAR
name="index" -->')">+</a>
<!-- /TMPL_IF -->
<input type="hidden" name="tag" value="<!-- TMPL_VAR
NAME="tag" -->"/>
- <input type="hidden" name="subfieldYYY" value="<!-- TMPL_VAR
NAME="subfield" -->" size="2" maxlength="1"/>
+ <input type="hidden" name="firstsubfield" value="<!-- TMPL_VAR
NAME="firstsubfield" -->" size="2" maxlength="1"/>
<input type="hidden" name="mandatory" value="<!-- TMPL_VAR
NAME="mandatory" -->"/>
<input type="hidden" name="kohafield" value="<!-- TMPL_VAR
NAME="kohafield" -->"/>
<input type="hidden" name="tag_mandatory" value="<!-- TMPL_VAR
NAME="tag_mandatory" -->"/>
@@ -320,15 +320,23 @@
}
}
+function openAuth(tagid,authtype,X) {
+// defaultid=document.getElementById(subfieldid);
+ Y=X.parentNode.getAttribute("id");
+ newin=window.open("../authorities/auth_finder.pl?authtypecode="+
authtype+ "&tagid="+Y, "value
builder",'width=550,height=550,toolbar=false,scrollbars=yes');
+}
+
function Changefwk(FwkList) {
var fwk = FwkList.options[FwkList.selectedIndex].value;
window.location = "addbiblio.pl?oldbiblionumber=<!--TMPL_VAR
Name="oldbiblionumber"-->&frameworkcode="+fwk;
}
-function AddField(field) {
- document.forms['f'].op.value = "addfield";
- document.forms['f'].addfield_field.value=field;
- document.f.submit();
+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 cloneSubfield(index) {
- [Koha-cvs] koha/koha-tmpl/intranet-tmpl/npl/en/acqui.simpl... [rel_2_2],
paul poulain <=