Lines 32-37
use C4::Context;
Link Here
|
32 |
use C4::Members; |
32 |
use C4::Members; |
33 |
use C4::Overdues; |
33 |
use C4::Overdues; |
34 |
use C4::Debug; |
34 |
use C4::Debug; |
|
|
35 |
use Koha::AuthorisedValues; |
35 |
use Koha::DateUtils; |
36 |
use Koha::DateUtils; |
36 |
use Koha::Libraries; |
37 |
use Koha::Libraries; |
37 |
use Koha::Patrons; |
38 |
use Koha::Patrons; |
Lines 367-373
unless ($noreserves) {
Link Here
|
367 |
# and items for each biblionumber. |
368 |
# and items for each biblionumber. |
368 |
# |
369 |
# |
369 |
# |
370 |
# |
370 |
my $notforloan_label_of = get_notforloan_label_of(); |
|
|
371 |
|
371 |
|
372 |
my $biblioLoop = []; |
372 |
my $biblioLoop = []; |
373 |
my $numBibsAvailable = 0; |
373 |
my $numBibsAvailable = 0; |
Lines 389-397
foreach my $biblioNum (@biblionumbers) {
Link Here
|
389 |
&get_out($query, $cookie, $template->output); |
389 |
&get_out($query, $cookie, $template->output); |
390 |
} |
390 |
} |
391 |
|
391 |
|
|
|
392 |
my $frameworkcode = GetFrameworkCode( $biblioData->{biblionumber} ); |
392 |
$biblioLoopIter{biblionumber} = $biblioData->{biblionumber}; |
393 |
$biblioLoopIter{biblionumber} = $biblioData->{biblionumber}; |
393 |
$biblioLoopIter{title} = $biblioData->{title}; |
394 |
$biblioLoopIter{title} = $biblioData->{title}; |
394 |
$biblioLoopIter{subtitle} = GetRecordValue('subtitle', $record, GetFrameworkCode($biblioData->{biblionumber})); |
395 |
$biblioLoopIter{subtitle} = GetRecordValue('subtitle', $record, $frameworkcode); |
395 |
$biblioLoopIter{author} = $biblioData->{author}; |
396 |
$biblioLoopIter{author} = $biblioData->{author}; |
396 |
$biblioLoopIter{rank} = $biblioData->{rank}; |
397 |
$biblioLoopIter{rank} = $biblioData->{rank}; |
397 |
$biblioLoopIter{reservecount} = $biblioData->{reservecount}; |
398 |
$biblioLoopIter{reservecount} = $biblioData->{reservecount}; |
Lines 414-419
foreach my $biblioNum (@biblionumbers) {
Link Here
|
414 |
} |
415 |
} |
415 |
} |
416 |
} |
416 |
|
417 |
|
|
|
418 |
my @notforloan_avs = Koha::AuthorisedValues->search_by_koha_field({ kohafield => 'items.notforloan', frameworkcode => $frameworkcode }); |
419 |
my $notforloan_label_of = { map { $_->authorised_value => $_->opac_description } @notforloan_avs }; |
420 |
|
417 |
$biblioLoopIter{itemLoop} = []; |
421 |
$biblioLoopIter{itemLoop} = []; |
418 |
my $numCopiesAvailable = 0; |
422 |
my $numCopiesAvailable = 0; |
419 |
my $numCopiesOPACAvailable = 0; |
423 |
my $numCopiesOPACAvailable = 0; |