Bug 31028: Add display to details page
[koha-ffzg.git] / catalogue / imageviewer.pl
index 9cc96c1..fc65a1a 100755 (executable)
 use Modern::Perl;
 
 use CGI qw ( -utf8 );
-use C4::Auth;
-use C4::Biblio;
-use C4::Items;
-use C4::Output;
-use C4::Search;
+use C4::Auth qw( get_template_and_user );
+use C4::Output qw( output_html_with_http_headers );
+use C4::Search qw( enabled_staff_search_views );
 
 use Koha::Biblios;
 use Koha::Items;
@@ -45,15 +43,12 @@ my $biblionumber = $query->param('biblionumber') || $query->param('bib') || Koha
 my $imagenumber = $query->param('imagenumber');
 my $biblio = Koha::Biblios->find( $biblionumber );
 my $itemcount = $biblio ? $biblio->items->count : 0;
-my @items = GetItemsInfo($biblionumber);
 
 if ( $query->cookie("holdfor") ) {
     my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
     $template->param(
-        holdfor            => $query->cookie("holdfor"),
-        holdfor_surname    => $holdfor_patron->surname,
-        holdfor_firstname  => $holdfor_patron->firstname,
-        holdfor_cardnumber => $holdfor_patron->cardnumber,
+        holdfor        => $query->cookie("holdfor"),
+        holdfor_patron => $holdfor_patron,
     );
 }