From 8f6033ee923213deaf909ffa89a5d07694b661bd Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Thu, 18 Oct 2007 04:56:30 -0500 Subject: [PATCH] Minor : Adding item count to result lists. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Search.pm | 3 ++- .../intranet-tmpl/prog/en/modules/catalogue/results.tmpl | 7 +++++++ koha-tmpl/opac-tmpl/prog/en/opac-results.tmpl | 6 ++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 3242634399..1b07c7c2a1 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -964,7 +964,7 @@ sub searchResults { SELECT date_due,returndate FROM issues WHERE itemnumber=? AND returndate IS NULL"); - + my $items_count=scalar(@fields); foreach my $field (@fields) { my $item; foreach my $code ( keys %subfieldstosearch ) { @@ -1027,6 +1027,7 @@ sub searchResults { push @items_loop, $this_item; } $oldbiblio->{norequests} = $norequests; + $oldbiblio->{items_count} = $items_count; $oldbiblio->{items_loop} = \@items_loop; $oldbiblio->{onloancount} = $onloan_count; $oldbiblio->{wthdrawncount} = $wthdrawn_count; 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 525acedf7c..b8329243c7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl @@ -263,6 +263,7 @@   Title + Item count Location   @@ -323,6 +324,12 @@ (modified on )

+ + + + + + diff --git a/koha-tmpl/opac-tmpl/prog/en/opac-results.tmpl b/koha-tmpl/opac-tmpl/prog/en/opac-results.tmpl index 3bfa0fe85d..54ce842742 100644 --- a/koha-tmpl/opac-tmpl/prog/en/opac-results.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/opac-results.tmpl @@ -236,6 +236,7 @@ Error : Title + Item count Location Reservation @@ -300,6 +301,11 @@ Error :

+ + + + + -- 2.39.5