From bdf7a55110e72835cba8816397b19cd07e6d71dd Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Sat, 24 Nov 2007 17:05:11 -0600 Subject: [PATCH] adding result_number to opac and staff search Signed-off-by: Joshua Ferraro --- C4/Search.pm | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index b9bea2c50c..5535882e96 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -968,6 +968,7 @@ sub searchResults { my $marcrecord; $marcrecord = MARC::File::USMARC::decode( $marcresults[$i] ); my $oldbiblio = TransformMarcToKoha( $dbh, $marcrecord, '' ); + $oldbiblio->{result_number} = $i+1; # add image url if there is one if ( $itemtypes{ $oldbiblio->{itemtype} }->{imageurl} =~ /^http:/ ) { $oldbiblio->{imageurl} = diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl index 53cfe44c40..0490d9fc1a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl @@ -235,7 +235,7 @@ -

+

. "> diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl index 1081c59be7..684eafc1e4 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl @@ -129,7 +129,7 @@ - "> "> "> by ">  + . "> "> "> by "> 

- - ; -- 2.39.5