From e6b0eba92fcbe9581cf54adab8aa2d6ca2605f48 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Sun, 12 Nov 2023 21:26:42 +0000 Subject: [PATCH] Bug 33478: Apply formatting to AR_SLIP To test: 1. Enable ArticleRequests system preference in Koha Administration -> Global system preferences 2. Log into the OPAC 3. Do a catalogue search 4. Click the 'Request article' button for a record 5. Fill in some information and submit 6. Go to the staff interface 7. Go to Circulation -> Article Requests 8. Click the Actions menu next to your article request and choose Print slip 9. Confirm your format settings for AR_SLIP are applied Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer --- circ/article-request-slip.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/circ/article-request-slip.pl b/circ/article-request-slip.pl index f31eac72d0..5ab59576c9 100755 --- a/circ/article-request-slip.pl +++ b/circ/article-request-slip.pl @@ -44,6 +44,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( my $ars = Koha::ArticleRequests->search( { id => { '-in' => \@ids } } ); my $slipContent = ''; my $first = 1; +my $style; while ( my $ar = $ars->next ) { if ( !$first ) { $slipContent .= "
"; @@ -71,12 +72,15 @@ while ( my $ar = $ars->next ) { $slip->{is_html} ? $slip->{content} : '
' . $slip->{content} . '
'; + + $style = $slip->{style}; } $template->param( - slip => $slipContent, + slip => $slipContent, caller => 'article-request', plain => 0, + style => $style, ); output_html_with_http_headers $cgi, $cookie, $template->output; -- 2.39.5