[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/npl/en/search.marc search.tmpl,1.6.2.5,1.6.2.6 suggest.tmpl,1.1.2.1,1.1.2.2
Owen Leonard
oleonard at users.sourceforge.net
Thu Aug 25 20:01:24 CEST 2005
Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/npl/en/search.marc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20264/koha-tmpl/intranet-tmpl/npl/en/search.marc
Modified Files:
Tag: rel_2_2
search.tmpl suggest.tmpl
Log Message:
Fix for bug 585 (Using 'document.forms[0]' notation prevents use of other forms on page) Changing the reference from [0] to ['f'], with 'f' being the form name, seems to work fine.
Index: search.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/npl/en/search.marc/search.tmpl,v
retrieving revision 1.6.2.5
retrieving revision 1.6.2.6
diff -C2 -r1.6.2.5 -r1.6.2.6
*** search.tmpl 9 Jun 2005 16:19:19 -0000 1.6.2.5
--- search.tmpl 25 Aug 2005 18:01:22 -0000 1.6.2.6
***************
*** 191,195 ****
function AddStatement() {
! document.forms[0].op.value="AddStatement";
document.f.submit();
}
--- 191,195 ----
function AddStatement() {
! document.forms['f'].op.value="AddStatement";
document.f.submit();
}
Index: suggest.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/npl/en/search.marc/suggest.tmpl,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -r1.1.2.1 -r1.1.2.2
*** suggest.tmpl 5 Jul 2005 18:48:42 -0000 1.1.2.1
--- suggest.tmpl 25 Aug 2005 18:01:22 -0000 1.1.2.2
***************
*** 26,31 ****
for (i=0 ; i<opener.document.f.value.length ; i++) {
opener.document.forms['f'].value[i].value = opener.document.forms['f'].value[i].value.replace(Replaced,ReplaceBy);
! // if (document.forms[0].kohafield[i].value == "biblioitems.isbn" && document.forms[0].field_value[i].value.length>0) {
! // strQuery += "&isbn="+document.forms[0].field_value[i].value;
// }
// opener.document.location= "../acqui.simple/addbiblio.pl?z3950=1&oldbiblionumber=<!-- TMPL_VAR NAME="oldbiblionumber" -->&breedingid="+GetThisOne;
--- 26,31 ----
for (i=0 ; i<opener.document.f.value.length ; i++) {
opener.document.forms['f'].value[i].value = opener.document.forms['f'].value[i].value.replace(Replaced,ReplaceBy);
! // if (document.forms['f'].kohafield[i].value == "biblioitems.isbn" && document.forms['f'].field_value[i].value.length>0) {
! // strQuery += "&isbn="+document.forms['f'].field_value[i].value;
// }
// opener.document.location= "../acqui.simple/addbiblio.pl?z3950=1&oldbiblionumber=<!-- TMPL_VAR NAME="oldbiblionumber" -->&breedingid="+GetThisOne;
More information about the Koha-cvs
mailing list