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 |
- |
|
|