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 <galen.charlton@liblime.com>
This commit is contained in:
Jesse Weaver 2008-08-19 14:01:23 -05:00 committed by Chris Cormack
parent a2c4c5353b
commit c09f1b3d72
1 changed files with 2 additions and 0 deletions

View File

@ -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;