[PATCH] Corrections to addbiblio.tmpl to be able to delete =
Janusz Kaczmarek
januszop at gmail.com
Mon Jan 3 04:52:14 CET 2011
repetable mandatory subfields=0A=
Content-Type: text/plain; charset=3D"utf-8"=0A=
=0A=
---=0A=
.../prog/en/modules/cataloguing/addbiblio.tmpl | 8 +++++---=0A=
1 files changed, 5 insertions(+), 3 deletions(-)=0A=
=0A=
diff --git =
a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl =
b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl=0A=
index 0fa4dc1..1bd0dac 100644=0A=
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl=0A=
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl=0A=
@@ -131,9 +131,11 @@ function AreMandatoriesNotOk(){=0A=
var tag=3Dmandatories[i].substr(4,3);=0A=
var subfield=3Dmandatories[i].substr(17,1);=0A=
var =
tagnumber=3Dmandatories[i].substr(19,mandatories[i].lastIndexOf("_")-19);=0A=
- tabflag[tag+subfield+tagnumber]=3Dnew Array();=0A=
- tabflag[tag+subfield+tagnumber][0]=3D0;=0A=
- if( ! document.getElementById(mandatories[i]).value){=0A=
+ if (tabflag[tag+subfield+tagnumber] =3D=3D null) { =0A=
+ tabflag[tag+subfield+tagnumber]=3Dnew Array();=0A=
+ tabflag[tag+subfield+tagnumber][0]=3D0; =0A=
+ }=0A=
+ if( tabflag[tag+subfield+tagnumber][0] !=3D 1 && =
(document.getElementById(mandatories[i]) !=3D null && ! =
document.getElementById(mandatories[i]).value || =
document.getElementById(mandatories[i]) =3D=3D null)){=0A=
tabflag[tag+subfield+tagnumber][0] =3D 0 + =
tabflag[tag+subfield+tagnumber] ;=0A=
=
document.getElementById(mandatories[i]).setAttribute('class','subfield_no=
t_filled');=0A=
document.getElementById(mandatories[i]).focus();=0A=
-- =0A=
1.5.6.5=0A=
=0A=
------=_NextPart_000_0032_01CBAB08.4EA11A20--
More information about the Koha-patches
mailing list