From c09f1b3d7294de97261e93f3c12fdfc0c5d03215 Mon Sep 17 00:00:00 2001 From: Jesse Weaver Date: Tue, 19 Aug 2008 14:01:23 -0500 Subject: [PATCH] fix for bug 2477: Improve Speed of the Shelf Browser This patch updates the queries for the shelf browser in opac-detail.pl for a slight performance gain. It also adds a param for dateformat to C4::Auth to fix a warning. Signed-off-by: Galen Charlton --- opac/opac-detail.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index beb695f718..07b9c8aeb6 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -395,6 +395,8 @@ if (C4::Context->preference("OPACShelfBrowser")) { } push @next_items, $this_item; } + + # alas, these won't auto-vivify, see http://www.perlmonks.org/?node_id=508481 my $shelfbrowser_next_itemnumber = $next_items[-1]->{itemnumber} if @next_items; -- 2.39.5