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 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;
(-)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