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

(-)a/opac/opac-reserve.pl (-2 / +6 lines)
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;
(-)a/reserve/request.pl (-3 / +4 lines)
Lines 321-331 foreach my $biblionumber (@biblionumbers) { Link Here
321
    ## Should be same as biblionumber
321
    ## Should be same as biblionumber
322
    my @biblioitemnumbers = keys %itemnumbers_of_biblioitem;
322
    my @biblioitemnumbers = keys %itemnumbers_of_biblioitem;
323
323
324
    my $notforloan_label_of = get_notforloan_label_of();
325
326
    ## Hash of biblioitemnumber to 'biblioitem' table records
324
    ## Hash of biblioitemnumber to 'biblioitem' table records
327
    my $biblioiteminfos_of  = GetBiblioItemInfosOf(@biblioitemnumbers);
325
    my $biblioiteminfos_of  = GetBiblioItemInfosOf(@biblioitemnumbers);
328
326
327
    my $frameworkcode = GetFrameworkCode( $biblionumber );
328
    my @notforloan_avs = Koha::AuthorisedValues->search_by_koha_field({ kohafield => 'items.notforloan', frameworkcode => $frameworkcode });
329
    my $notforloan_label_of = { map { $_->authorised_value => $_->lib } @notforloan_avs };
330
329
    my @bibitemloop;
331
    my @bibitemloop;
330
332
331
    my @available_itemtypes;
333
    my @available_itemtypes;
332
- 

Return to bug 17844