View | Details | Raw Unified | Return to bug 25801
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-2 / +2 lines)
Lines 479-486 Link Here
479
                        [% ELSE %]
479
                        [% ELSE %]
480
                            <li id="tab_holdings">
480
                            <li id="tab_holdings">
481
                        [% END %]
481
                        [% END %]
482
                        [% BLOCK holding_tab_title %][% IF SeparateHoldings %]<span>[% LoginBranchname | html %] holdings</span>[% ELSE %]<span>Holdings</span>[% END %][% END %]
482
                        [% BLOCK holding_tab_title %][% IF SeparateHoldings %]<span>[% LoginBranchname | html %] holdings</span>[% ELSE %][% IF specific_item %]<span>Item details</span>[% ELSE %]<span>Holdings</span>[% END %][% END %][% END %]
483
                            <a href="#holdings">[% PROCESS holding_tab_title %] [% UNLESS too_many_items %][% ' ( ' _ (itemloop.size || 0) _ ' )' | html %][% END %]</a>
483
                            <a href="#holdings">[% PROCESS holding_tab_title %] [% UNLESS too_many_items OR specific_item %][% ' ( ' _ (itemloop.size || 0) _ ' )' | html %][% END %]</a>
484
                        </li>
484
                        </li>
485
                        [% IF (SeparateHoldings) %]
485
                        [% IF (SeparateHoldings) %]
486
                            <li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' | html %]</a></li>
486
                            <li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' | html %]</a></li>
(-)a/opac/opac-detail.pl (-1 / +7 lines)
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
- 

Return to bug 25801