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 384-390
unless ($noreserves) {
Link Here
|
384 |
# and items for each biblionumber. |
385 |
# and items for each biblionumber. |
385 |
# |
386 |
# |
386 |
# |
387 |
# |
387 |
my $notforloan_label_of = get_notforloan_label_of(); |
|
|
388 |
|
388 |
|
389 |
my $biblioLoop = []; |
389 |
my $biblioLoop = []; |
390 |
my $numBibsAvailable = 0; |
390 |
my $numBibsAvailable = 0; |
Lines 407-415
foreach my $biblioNum (@biblionumbers) {
Link Here
|
407 |
&get_out($query, $cookie, $template->output); |
407 |
&get_out($query, $cookie, $template->output); |
408 |
} |
408 |
} |
409 |
|
409 |
|
|
|
410 |
my $frameworkcode = GetFrameworkCode( $biblioData->{biblionumber} ); |
410 |
$biblioLoopIter{biblionumber} = $biblioData->{biblionumber}; |
411 |
$biblioLoopIter{biblionumber} = $biblioData->{biblionumber}; |
411 |
$biblioLoopIter{title} = $biblioData->{title}; |
412 |
$biblioLoopIter{title} = $biblioData->{title}; |
412 |
$biblioLoopIter{subtitle} = GetRecordValue('subtitle', $record, GetFrameworkCode($biblioData->{biblionumber})); |
413 |
$biblioLoopIter{subtitle} = GetRecordValue('subtitle', $record, $frameworkcode); |
413 |
$biblioLoopIter{author} = $biblioData->{author}; |
414 |
$biblioLoopIter{author} = $biblioData->{author}; |
414 |
$biblioLoopIter{rank} = $biblioData->{rank}; |
415 |
$biblioLoopIter{rank} = $biblioData->{rank}; |
415 |
$biblioLoopIter{reservecount} = $biblioData->{reservecount}; |
416 |
$biblioLoopIter{reservecount} = $biblioData->{reservecount}; |
Lines 432-437
foreach my $biblioNum (@biblionumbers) {
Link Here
|
432 |
} |
433 |
} |
433 |
} |
434 |
} |
434 |
|
435 |
|
|
|
436 |
my @notforloan_avs = Koha::AuthorisedValues->search_by_koha_field({ kohafield => 'items.notforloan', frameworkcode => $frameworkcode }); |
437 |
my $notforloan_label_of = { map { $_->authorised_value => $_->opac_description } @notforloan_avs }; |
438 |
|
435 |
$biblioLoopIter{itemLoop} = []; |
439 |
$biblioLoopIter{itemLoop} = []; |
436 |
my $numCopiesAvailable = 0; |
440 |
my $numCopiesAvailable = 0; |
437 |
my $numCopiesOPACAvailable = 0; |
441 |
my $numCopiesOPACAvailable = 0; |