Fix for minor error in shelfbrowser queries
authorJesse Weaver <jesse.weaver@liblime.com>
Tue, 19 Aug 2008 22:11:21 +0000 (17:11 -0500)
committerChris Cormack <chris@bigballofwax.co.nz>
Thu, 3 Sep 2009 22:08:08 +0000 (10:08 +1200)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
opac/opac-detail.pl

index 07b9c8a..2130f99 100755 (executable)
@@ -368,7 +368,6 @@ if (C4::Context->preference("OPACShelfBrowser")) {
             ((cn_sort = ? AND itemnumber >= ?) OR cn_sort > ?) AND
             homebranch = ? AND location = ?
         ORDER BY cn_sort, itemnumber LIMIT 3
-        ");
       $sth_shelfbrowse_next->execute($starting_cn_sort, $starting_itemnumber, $starting_cn_sort, $starting_homebranch->{code}, $starting_location->{code});
     } else {
       $sth_shelfbrowse_next = $dbh->prepare("
@@ -397,7 +396,6 @@ if (C4::Context->preference("OPACShelfBrowser")) {
     }
 
 
-    
     # 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;
     my $shelfbrowser_next_biblionumber = $next_items[-1]->{biblionumber} if @next_items;