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/npl/en/authorities authorit


From: Owen Leonard
Subject: [Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/npl/en/authorities authorities.tmpl,1.1.2.2,1.1.2.3
Date: Thu, 25 Aug 2005 11:00:17 -0700

Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/npl/en/authorities
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19826/koha-tmpl/intranet-tmpl/npl/en/authorities

Modified Files:
      Tag: rel_2_2
        authorities.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: authorities.tmpl
===================================================================
RCS file: 
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/npl/en/authorities/authorities.tmpl,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -r1.1.2.2 -r1.1.2.3
*** authorities.tmpl    8 Jun 2005 19:19:40 -0000       1.1.2.2
--- authorities.tmpl    25 Aug 2005 18:00:15 -0000      1.1.2.3
***************
*** 161,165 ****
  }
  function Dopop(link,i) {
!       defaultvalue=document.forms[0].field_value[i].value;
        newin=window.open(link+"&result="+defaultvalue,"value 
builder",'width=550,height=550,toolbar=false,scrollbars=yes');
  }
--- 161,165 ----
  }
  function Dopop(link,i) {
!       defaultvalue=document.forms['f'].field_value[i].value;
        newin=window.open(link+"&result="+defaultvalue,"value 
builder",'width=550,height=550,toolbar=false,scrollbars=yes');
  }
***************
*** 167,182 ****
  function PopupZ3950() {
      var strQuery="";
!       for (i=0 ; i<document.forms[0].field_value.length ; i++) {
!               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;
                }
!               if (document.forms[0].kohafield[i].value == "biblio.title" && 
document.forms[0].field_value[i].value.length>0) {
!                   strQuery += 
"&title="+document.forms[0].field_value[i].value;
                }
!               if (document.forms[0].kohafield[i].value == "biblio.author" 
&&document.forms[0].field_value[i].value.length>0) {
!                   strQuery += 
"&author="+document.forms[0].field_value[i].value;
                }
!               if (document.forms[0].kohafield[i].value == "biblioitems.issn" 
&& document.forms[0].field_value[i].value.length>0) {
!                   strQuery += "&issn="+document.forms[0].field_value[i].value;
                }
        }
--- 167,182 ----
  function PopupZ3950() {
      var strQuery="";
!       for (i=0 ; i<document.forms['f'].field_value.length ; i++) {
!               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;
                }
!               if (document.forms['f'].kohafield[i].value == "biblio.title" && 
document.forms['f'].field_value[i].value.length>0) {
!                   strQuery += 
"&title="+document.forms['f'].field_value[i].value;
                }
!               if (document.forms['f'].kohafield[i].value == "biblio.author" 
&&document.forms['f'].field_value[i].value.length>0) {
!                   strQuery += 
"&author="+document.forms['f'].field_value[i].value;
                }
!               if (document.forms['f'].kohafield[i].value == 
"biblioitems.issn" && document.forms['f'].field_value[i].value.length>0) {
!                   strQuery += 
"&issn="+document.forms['f'].field_value[i].value;
                }
        }




reply via email to

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