[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/authorities authorities.tmpl,1.6.2.3,1.6.2.4

Owen Leonard oleonard at users.sourceforge.net
Thu Aug 25 20:07:21 CEST 2005


Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/authorities
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21956/koha-tmpl/intranet-tmpl/default/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/default/en/authorities/authorities.tmpl,v
retrieving revision 1.6.2.3
retrieving revision 1.6.2.4
diff -C2 -r1.6.2.3 -r1.6.2.4
*** authorities.tmpl	30 May 2005 11:56:42 -0000	1.6.2.3
--- authorities.tmpl	25 Aug 2005 18:07:19 -0000	1.6.2.4
***************
*** 155,159 ****
  }
  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');
  }
--- 155,159 ----
  }
  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');
  }
***************
*** 161,176 ****
  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;
  		}
  	}
--- 161,176 ----
  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;
  		}
  	}





More information about the Koha-cvs mailing list