Lines 53-58
use C4::Review;
Link Here
|
53 |
use C4::Serials; # uses getsubscriptionfrom biblionumber |
53 |
use C4::Serials; # uses getsubscriptionfrom biblionumber |
54 |
use C4::Koha; |
54 |
use C4::Koha; |
55 |
use C4::Members; # GetMember |
55 |
use C4::Members; # GetMember |
|
|
56 |
use C4::Items; |
57 |
use C4::Reserves; |
56 |
use C4::External::Amazon; |
58 |
use C4::External::Amazon; |
57 |
|
59 |
|
58 |
my $query = CGI->new(); |
60 |
my $query = CGI->new(); |
Lines 68-74
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
Link Here
|
68 |
|
70 |
|
69 |
my $biblionumber = $query->param('biblionumber'); |
71 |
my $biblionumber = $query->param('biblionumber'); |
70 |
|
72 |
|
71 |
$template->param( 'AllowOnShelfHolds' => C4::Context->preference('AllowOnShelfHolds') ); |
|
|
72 |
$template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) ); |
73 |
$template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) ); |
73 |
|
74 |
|
74 |
my $marcflavour = C4::Context->preference("marcflavour"); |
75 |
my $marcflavour = C4::Context->preference("marcflavour"); |
Lines 122-127
$template->param(
Link Here
|
122 |
); |
123 |
); |
123 |
|
124 |
|
124 |
my $norequests = 1; |
125 |
my $norequests = 1; |
|
|
126 |
## Check if an item Can be holds on shelf |
127 |
$template->param(C4::Search::enabled_opac_search_views); |
128 |
my @all_items = &GetItemsInfo( $biblionumber, 'opac' ); |
129 |
my $allowonshelfholds = 0; |
130 |
for my $item (@all_items){ |
131 |
$allowonshelfholds = 1 if(CanHoldOnShelf($item->{itemnumber}) and not $allowonshelfholds); |
132 |
} |
133 |
$template->param( 'AllowOnShelfHolds' => $allowonshelfholds ); |
134 |
|
125 |
my $res = GetISBDView($biblionumber, "opac"); |
135 |
my $res = GetISBDView($biblionumber, "opac"); |
126 |
my @items = &GetItemsInfo($biblionumber, 'opac'); |
136 |
my @items = &GetItemsInfo($biblionumber, 'opac'); |
127 |
|
137 |
|
Lines 148-154
foreach ( @$reviews ) {
Link Here
|
148 |
|
158 |
|
149 |
$template->param( |
159 |
$template->param( |
150 |
RequestOnOpac => C4::Context->preference("RequestOnOpac"), |
160 |
RequestOnOpac => C4::Context->preference("RequestOnOpac"), |
151 |
AllowOnShelfHolds => C4::Context->preference('AllowOnShelfHolds'), |
|
|
152 |
norequests => $norequests, |
161 |
norequests => $norequests, |
153 |
ISBD => $res, |
162 |
ISBD => $res, |
154 |
biblionumber => $biblionumber, |
163 |
biblionumber => $biblionumber, |