|
Lines 29-34
use C4::Output;
Link Here
|
| 29 |
use C4::Tags qw( get_tags ); |
29 |
use C4::Tags qw( get_tags ); |
| 30 |
use C4::XSLT; |
30 |
use C4::XSLT; |
| 31 |
|
31 |
|
|
|
32 |
use Koha::Biblios; |
| 32 |
use Koha::Biblioitems; |
33 |
use Koha::Biblioitems; |
| 33 |
use Koha::Items; |
34 |
use Koha::Items; |
| 34 |
use Koha::ItemTypes; |
35 |
use Koha::ItemTypes; |
|
Lines 272-277
if ( $op eq 'view' ) {
Link Here
|
| 272 |
my $this_item = GetBiblioData($biblionumber); |
273 |
my $this_item = GetBiblioData($biblionumber); |
| 273 |
my $record = GetMarcBiblio({ biblionumber => $biblionumber }); |
274 |
my $record = GetMarcBiblio({ biblionumber => $biblionumber }); |
| 274 |
my $framework = GetFrameworkCode( $biblionumber ); |
275 |
my $framework = GetFrameworkCode( $biblionumber ); |
|
|
276 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
| 275 |
$record_processor->options({ |
277 |
$record_processor->options({ |
| 276 |
interface => 'opac', |
278 |
interface => 'opac', |
| 277 |
frameworkcode => $framework |
279 |
frameworkcode => $framework |
|
Lines 315-322
if ( $op eq 'view' ) {
Link Here
|
| 315 |
}); |
317 |
}); |
| 316 |
} |
318 |
} |
| 317 |
|
319 |
|
| 318 |
$this_item->{allow_onshelf_holds} = C4::Reserves::OnShelfHoldsAllowed($this_item, $patron); |
320 |
my $items = $biblio->items; |
| 319 |
|
321 |
while ( my $item = $items->next ) { |
|
|
322 |
$this_item->{allow_onshelf_holds} = C4::Reserves::OnShelfHoldsAllowed($item->unblessed, $patron); |
| 323 |
last if $this_item->{allow_onshelf_holds}; |
| 324 |
} |
| 320 |
|
325 |
|
| 321 |
if ( grep {$_ eq $biblionumber} @cart_list) { |
326 |
if ( grep {$_ eq $biblionumber} @cart_list) { |
| 322 |
$this_item->{incart} = 1; |
327 |
$this_item->{incart} = 1; |
| 323 |
- |
|
|