From 1b5ae3aea590fe06fd63c9d940c6b8faa32f24d7 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Fri, 5 Oct 2007 02:50:08 -0500 Subject: [PATCH] BUG FIXING : 210$c is now searching EDITORS Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- cataloguing/value_builder/unimarc_field_210c.pl | 5 ++--- .../value_builder/unimarc_field_210c.tmpl | 15 ++++++--------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/cataloguing/value_builder/unimarc_field_210c.pl b/cataloguing/value_builder/unimarc_field_210c.pl index ec318faa2c..6230b5b79e 100755 --- a/cataloguing/value_builder/unimarc_field_210c.pl +++ b/cataloguing/value_builder/unimarc_field_210c.pl @@ -172,7 +172,7 @@ my ($input) = @_; # builds tag and subfield arrays my @tags; - my ($results,$total) = authoritysearch($dbh, \@tags,\@and_or, + my ($results,$total) = SearchAuthorities( \@tags,\@and_or, \@excluding, \@operator, \@value, $startfrom*$resultsperpage, $resultsperpage,$authtypecode);# $orderby); @@ -215,14 +215,13 @@ my ($input) = @_; $to = (($startfrom+1)*$resultsperpage); } $template->param(result => $results) if $results; - $template->param(index => $query->param('index')); + $template->param('index' => $query->param('index')); $template->param(startfrom=> $startfrom, displaynext=> $displaynext, displayprev=> $displayprev, resultsperpage => $resultsperpage, startfromnext => $startfrom+1, startfromprev => $startfrom-1, - index => $index, total=>$total, from=>$from, to=>$to, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c.tmpl index 25eec12df8..0527708ea9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c.tmpl @@ -5,7 +5,7 @@

Authority search results

-
+ @@ -18,12 +18,9 @@

"> + "> - - - - - "> + ">

@@ -44,7 +41,7 @@ -highlight.gif"> &authtypecode=EDITORS&and_or=and&operator=contains&value=&op=do_search&type=intranet&index="> - .gif" border="0"> + .gif" border="0"> @@ -72,7 +69,7 @@ times - //images/arrow.gif" width="32" hspace="0" vspace="0" border="0"> + ','')">choose//images/arrow.gif" width="32" hspace="0" vspace="0" border="0"> @@ -110,7 +107,7 @@ function report(index,summary) var regexp= /(\d* -+ *)(.*)/; var result=summary.match(regexp); var doc = opener.document; - var field = doc.getElementById(""); + var field = doc.getElementById(index); field.value = result[2]; self.close(); -- 2.39.5