koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/search.marc sear


From: Owen Leonard
Subject: [Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/search.marc search.tmpl,1.21.2.2,1.21.2.3 suggest.tmpl,1.2.2.1,1.2.2.2
Date: Thu, 25 Aug 2005 10:34:17 -0700

Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/search.marc
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13258/koha-tmpl/intranet-tmpl/default/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/default/en/search.marc/search.tmpl,v
retrieving revision 1.21.2.2
retrieving revision 1.21.2.3
diff -C2 -r1.21.2.2 -r1.21.2.3
*** search.tmpl 7 Jun 2005 10:02:01 -0000       1.21.2.2
--- search.tmpl 25 Aug 2005 17:34:15 -0000      1.21.2.3
***************
*** 182,191 ****
  function AddStatement() {
  
!       document.forms[0].op.value="AddStatement";
        document.f.submit();
  }
  
  function Dopop(link,i) {
!       var searchstring=document.forms[0].value[i].value;
        
newin=window.open(link+'&search='+searchstring,"popup",'width=700,height=550,toolbar=false,scrollbars=yes');
  }
--- 182,191 ----
  function AddStatement() {
  
!       document.forms['f'].op.value="AddStatement";
        document.f.submit();
  }
  
  function Dopop(link,i) {
!       var searchstring=document.forms['f'].value[i].value;
        
newin=window.open(link+'&search='+searchstring,"popup",'width=700,height=550,toolbar=false,scrollbars=yes');
  }

Index: suggest.tmpl
===================================================================
RCS file: 
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/search.marc/suggest.tmpl,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -C2 -r1.2.2.1 -r1.2.2.2
*** suggest.tmpl        28 Jun 2005 10:17:55 -0000      1.2.2.1
--- suggest.tmpl        25 Aug 2005 17:34:15 -0000      1.2.2.2
***************
*** 40,46 ****
        function Import(Replaced,ReplaceBy) {
                for (i=0 ; i<opener.document.f.value.length ; i++) {
!                               opener.document.forms[0].value[i].value = 
opener.document.forms[0].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;
--- 40,46 ----
        function Import(Replaced,ReplaceBy) {
                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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]