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

(-)a/reserve/request.pl (-3 / +8 lines)
Lines 47-53 use Koha::DateUtils; Link Here
47
my $dbh = C4::Context->dbh;
47
my $dbh = C4::Context->dbh;
48
my $sth;
48
my $sth;
49
my $input = new CGI;
49
my $input = new CGI;
50
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
50
my ( $template, $borrowernumber, $cookie, $flags ) = get_template_and_user(
51
    {
51
    {
52
        template_name   => "reserve/request.tmpl",
52
        template_name   => "reserve/request.tmpl",
53
        query           => $input,
53
        query           => $input,
Lines 567-576 foreach my $biblionumber (@biblionumbers) { Link Here
567
        $reserve{'barcode'}         = $res->{'barcode'};
567
        $reserve{'barcode'}         = $res->{'barcode'};
568
        $reserve{'priority'}    = $res->{'priority'};
568
        $reserve{'priority'}    = $res->{'priority'};
569
        $reserve{'lowestPriority'}    = $res->{'lowestPriority'};
569
        $reserve{'lowestPriority'}    = $res->{'lowestPriority'};
570
        $reserve{'branchloop'} = GetBranchesLoop($res->{'branchcode'});
571
        $reserve{'optionloop'} = \@optionloop;
570
        $reserve{'optionloop'} = \@optionloop;
572
        $reserve{'suspend'} = $res->{'suspend'};
571
        $reserve{'suspend'} = $res->{'suspend'};
573
        $reserve{'suspend_until'} = $res->{'suspend_until'};
572
        $reserve{'suspend_until'} = $res->{'suspend_until'};
573
574
        if ( C4::Context->preference('IndependantBranches') && $flags->{'superlibrarian'} != 1 ) {
575
              $reserve{'branchloop'} = [ GetBranchDetail($res->{'branchcode'}) ];
576
        } else {
577
              $reserve{'branchloop'} = GetBranchesLoop($res->{'branchcode'});
578
        }
579
574
        push( @reserveloop, \%reserve );
580
        push( @reserveloop, \%reserve );
575
    }
581
    }
576
582
577
- 

Return to bug 9575