|
Lines 66-72
my $patron = Koha::Patrons->find( $borrowernumber );
Link Here
|
| 66 |
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); |
66 |
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); |
| 67 |
|
67 |
|
| 68 |
my $branch=C4::Context->userenv->{'branch'}; |
68 |
my $branch=C4::Context->userenv->{'branch'}; |
| 69 |
my ($slip, $is_html); |
69 |
my $slip; |
| 70 |
if ( $print eq 'checkinslip' ) { |
70 |
if ( $print eq 'checkinslip' ) { |
| 71 |
my $checkinslip_branch = $session->param('branch') ? $session->param('branch') : $branch; |
71 |
my $checkinslip_branch = $session->param('branch') ? $session->param('branch') : $branch; |
| 72 |
|
72 |
|
|
Lines 91-107
if ( $print eq 'checkinslip' ) {
Link Here
|
| 91 |
message_transport_type => 'print' |
91 |
message_transport_type => 'print' |
| 92 |
); |
92 |
); |
| 93 |
|
93 |
|
| 94 |
$slip = $letter->{content}; |
94 |
$slip = $letter; |
| 95 |
$is_html = $letter->{is_html}; |
|
|
| 96 |
|
95 |
|
| 97 |
} elsif (my $letter = IssueSlip ($session->param('branch') || $branch, $borrowernumber, $print eq "qslip")) { |
96 |
} elsif (my $letter = IssueSlip ($session->param('branch') || $branch, $borrowernumber, $print eq "qslip")) { |
| 98 |
$slip = $letter->{content}; |
97 |
$slip = $letter; |
| 99 |
$is_html = $letter->{is_html}; |
|
|
| 100 |
} |
98 |
} |
| 101 |
|
99 |
|
| 102 |
$template->param( |
100 |
$template->param( |
| 103 |
slip => $slip, |
101 |
slip => $slip, |
| 104 |
plain => !$is_html, |
|
|
| 105 |
borrowernumber => $borrowernumber, |
102 |
borrowernumber => $borrowernumber, |
| 106 |
caller => 'members', |
103 |
caller => 'members', |
| 107 |
stylesheet => C4::Context->preference("SlipCSS"), |
104 |
stylesheet => C4::Context->preference("SlipCSS"), |
| 108 |
- |
|
|