Lines 43-48
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
Link Here
|
43 |
|
43 |
|
44 |
my $ars = Koha::ArticleRequests->search( { id => { '-in' => \@ids } } ); |
44 |
my $ars = Koha::ArticleRequests->search( { id => { '-in' => \@ids } } ); |
45 |
my $slipContent = ''; |
45 |
my $slipContent = ''; |
|
|
46 |
my $joined_slip = (); |
46 |
my $first = 1; |
47 |
my $first = 1; |
47 |
while ( my $ar = $ars->next ) { |
48 |
while ( my $ar = $ars->next ) { |
48 |
if ( !$first ) { |
49 |
if ( !$first ) { |
Lines 71-82
while ( my $ar = $ars->next ) {
Link Here
|
71 |
$slip->{is_html} |
72 |
$slip->{is_html} |
72 |
? $slip->{content} |
73 |
? $slip->{content} |
73 |
: '<pre>' . $slip->{content} . '</pre>'; |
74 |
: '<pre>' . $slip->{content} . '</pre>'; |
|
|
75 |
$joined_slip = $slip; |
74 |
} |
76 |
} |
|
|
77 |
$joined_slip->{content} = $slipContent; |
78 |
$joined_slip->{is_html} = 1; |
75 |
|
79 |
|
76 |
$template->param( |
80 |
$template->param( |
77 |
slip => $slipContent, |
81 |
slip => $joined_slip, |
78 |
caller => 'article-request', |
82 |
caller => 'article-request', |
79 |
plain => 0, |
|
|
80 |
); |
83 |
); |
81 |
|
84 |
|
82 |
output_html_with_http_headers $cgi, $cookie, $template->output; |
85 |
output_html_with_http_headers $cgi, $cookie, $template->output; |
83 |
- |
|
|