Lines 67-72
my $query = CGI->new();
Link Here
|
67 |
my $biblionumber = $query->param('biblionumber') || $query->param('bib') || 0; |
67 |
my $biblionumber = $query->param('biblionumber') || $query->param('bib') || 0; |
68 |
$biblionumber = int($biblionumber); |
68 |
$biblionumber = int($biblionumber); |
69 |
|
69 |
|
|
|
70 |
my $specific_item = $query->param('itemnumber') ? Koha::Items->find( scalar $query->param('itemnumber') ) : undef; |
71 |
$biblionumber = $specific_item->biblionumber if $specific_item; |
72 |
|
70 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user( |
73 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user( |
71 |
{ |
74 |
{ |
72 |
template_name => "opac-detail.tt", |
75 |
template_name => "opac-detail.tt", |
Lines 77-82
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
Link Here
|
77 |
); |
80 |
); |
78 |
|
81 |
|
79 |
my @all_items = GetItemsInfo($biblionumber); |
82 |
my @all_items = GetItemsInfo($biblionumber); |
|
|
83 |
if( $specific_item ) { |
84 |
@all_items = grep { $_->{itemnumber} == $query->param('itemnumber') } @all_items; |
85 |
$template->param( specific_item => 1 ); |
86 |
} |
80 |
my @hiddenitems; |
87 |
my @hiddenitems; |
81 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
88 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
82 |
our $borcat= q{}; |
89 |
our $borcat= q{}; |
83 |
- |
|
|