From 7f15241095a61ac958cd10c73699acf3e161dbe2 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Tue, 9 Oct 2007 16:46:32 -0500 Subject: [PATCH] BugFixing unimarc_field_210c.pl was badly broken. It allows searches. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- .../value_builder/unimarc_field_210c.pl | 9 ++++ .../value_builder/unimarc_field_210c.tmpl | 44 +++---------------- 2 files changed, 15 insertions(+), 38 deletions(-) diff --git a/cataloguing/value_builder/unimarc_field_210c.pl b/cataloguing/value_builder/unimarc_field_210c.pl index 6230b5b79e..4cd2aa1a40 100755 --- a/cataloguing/value_builder/unimarc_field_210c.pl +++ b/cataloguing/value_builder/unimarc_field_210c.pl @@ -28,6 +28,7 @@ use CGI; use C4::Search; use MARC::Record; use C4::Koha; + ###TODO To rewrite in order to use SearchAuthorities =head1 @@ -214,6 +215,8 @@ my ($input) = @_; } else { $to = (($startfrom+1)*$resultsperpage); } + my $link="plugin_launcher.pl?plugin_name=unimarc_field_210c.pl&authtypecode=EDITORS&and_or=and&operator=contains&".join("&",map {"value=".$_} @value)."&op=do_search&type=intranet&index=$index"; + warn "$link ,".getnbpages($total, $resultsperpage); $template->param(result => $results) if $results; $template->param('index' => $query->param('index')); $template->param(startfrom=> $startfrom, @@ -228,6 +231,12 @@ my ($input) = @_; numbers=>\@numbers, authtypecode =>$authtypecode, resultstring =>$value[0], + pagination_bar => pagination_bar( + $link, + getnbpages($total, $resultsperpage), + $startfrom, + 'startfrom' + ), ); } else { ($template, $loggedinuser, $cookie) 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 0527708ea9..975d3466e6 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 @@ -30,25 +30,9 @@ -- 2.39.5