From b2225dbc80ba8fcfabb965414fceb551bbd24609 Mon Sep 17 00:00:00 2001 From: Ryan Higgins Date: Mon, 17 Mar 2008 19:16:38 -0500 Subject: [PATCH] Remove Z3950 mandatory fields from MARC editor. Signed-off-by: Joshua Ferraro --- .../en/modules/cataloguing/addbiblio.tmpl | 23 +++++++------------ 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl index 7bd290154a..cbf10345f0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl @@ -44,9 +44,9 @@ function Dopop(link,i) { * this function open a popup to search on z3950 server. */ function PopupZ3950() { - var strQuery = AreZ3950MandoriesOk(); - if(strQuery){ - window.open("/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=&frameworkcode="+strQuery,"z3950search",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes'); + var strQuery = GetZ3950Terms(); + if(strQuery){ + window.open("/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber="+strQuery,"z3950search",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes'); } else { var strAlert = _("To perform a z39.50 search, you must enter at least one of the following: \n\n ISBN\n ISSN\n Title\n Author\n LCCN\n"); alert(strAlert); @@ -102,27 +102,20 @@ function AreMandatoriesNotOk(){ /** * check if z3950 mandatories are set or not */ -function AreZ3950MandoriesOk(){ +function GetZ3950Terms(){ + var strQuery="&frameworkcode="+document.forms['f'].frameworkcode.value; var mandatories = new Array(); var mandatories_label = new Array(); - mandatories.push(""); + mandatories.push(""); mandatories_label.push(""); - var error = 0; - var strQuery=""; for(var i=0,len=mandatories.length; i