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

(-)a/catalogue/detail.pl (-8 / +10 lines)
Lines 92-106 if ( not defined $record ) { Link Here
92
eval { $biblio->metadata->record };
92
eval { $biblio->metadata->record };
93
$template->param( decoding_error => $@ );
93
$template->param( decoding_error => $@ );
94
94
95
if($query->cookie("holdfor")){ 
95
if($query->cookie("holdfor")){
96
    my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
96
    my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
97
    $template->param(
97
    if ( $holdfor_patron ) {
98
        # FIXME Should pass the patron object
98
        $template->param(
99
        holdfor => $query->cookie("holdfor"),
99
            # FIXME Should pass the patron object
100
        holdfor_surname => $holdfor_patron->surname,
100
            holdfor => $query->cookie("holdfor"),
101
        holdfor_firstname => $holdfor_patron->firstname,
101
            holdfor_surname => $holdfor_patron->surname,
102
        holdfor_cardnumber => $holdfor_patron->cardnumber,
102
            holdfor_firstname => $holdfor_patron->firstname,
103
    );
103
            holdfor_cardnumber => $holdfor_patron->cardnumber,
104
        );
105
    }
104
}
106
}
105
107
106
if($query->cookie("searchToOrder")){
108
if($query->cookie("searchToOrder")){
(-)a/catalogue/search.pl (-11 / +14 lines)
Lines 194-213 if (C4::Context->preference("marcflavour") eq "UNIMARC" ) { Link Here
194
194
195
if($cgi->cookie("holdfor")){ 
195
if($cgi->cookie("holdfor")){ 
196
    my $holdfor_patron = Koha::Patrons->find( $cgi->cookie("holdfor") );
196
    my $holdfor_patron = Koha::Patrons->find( $cgi->cookie("holdfor") );
197
    $template->param(
197
    if ( $holdfor_patron ) { # may have been deleted in the meanwhile
198
        holdfor => $cgi->cookie("holdfor"),
198
        $template->param(
199
        holdfor_surname => $holdfor_patron->surname,
199
            holdfor => $cgi->cookie("holdfor"),
200
        holdfor_firstname => $holdfor_patron->firstname,
200
            holdfor_surname => $holdfor_patron->surname,
201
        holdfor_cardnumber => $holdfor_patron->cardnumber,
201
            holdfor_firstname => $holdfor_patron->firstname,
202
    );
202
            holdfor_cardnumber => $holdfor_patron->cardnumber,
203
        );
204
    }
203
}
205
}
204
206
205
if($cgi->cookie("holdforclub")){
207
if($cgi->cookie("holdforclub")){
206
    my $holdfor_club = Koha::Clubs->find( $cgi->cookie("holdforclub") );
208
    my $holdfor_club = Koha::Clubs->find( $cgi->cookie("holdforclub") );
207
    $template->param(
209
    if ( $holdfor_club ) { # May have been deleted in the meanwhile
208
        holdforclub => $cgi->cookie("holdforclub"),
210
        $template->param(
209
        holdforclub_name => $holdfor_club->name,
211
            holdforclub => $cgi->cookie("holdforclub"),
210
    );
212
            holdforclub_name => $holdfor_club->name,
213
        );
214
    }
211
}
215
}
212
216
213
if($cgi->cookie("searchToOrder")){
217
if($cgi->cookie("searchToOrder")){
214
- 

Return to bug 28213