From 3ab343b67e358eda8e9b0e07d9ebc2dfd12b3b22 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 7 Oct 2024 15:26:35 +0100 Subject: [PATCH] Bug 38089: (follow-up) More fixes for errors in original submission The original submission missed a number of slip types that are print on demand without queueing. These all need an "id" passing in to the template and in some cases we were also missing passing in the new style parameter too (preservation) Signed-off-by: Katrin Fischer --- circ/article-request-slip.pl | 1 + circ/hold-transfer-slip.pl | 1 + circ/transfer-slip.pl | 1 + members/print_overdues.pl | 1 + preservation/print_slip.pl | 3 +++ recalls/recall_pickup_slip.pl | 1 + 6 files changed, 8 insertions(+) diff --git a/circ/article-request-slip.pl b/circ/article-request-slip.pl index 5ab59576c9..ed8bf8aa4e 100755 --- a/circ/article-request-slip.pl +++ b/circ/article-request-slip.pl @@ -81,6 +81,7 @@ $template->param( caller => 'article-request', plain => 0, style => $style, + id => 'ar_slip', ); output_html_with_http_headers $cgi, $cookie, $template->output; diff --git a/circ/hold-transfer-slip.pl b/circ/hold-transfer-slip.pl index 435d1c14e0..dab16202d0 100755 --- a/circ/hold-transfer-slip.pl +++ b/circ/hold-transfer-slip.pl @@ -54,6 +54,7 @@ $template->param( slip => $slip ) if ($slip); $template->param( caller => 'hold-transfer' ); $template->param( plain => !$is_html ); $template->param( style => $style ); +$template->param( id => 'reserve_slip' ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/circ/transfer-slip.pl b/circ/transfer-slip.pl index 5282bbe44e..b8f8a5031f 100755 --- a/circ/transfer-slip.pl +++ b/circ/transfer-slip.pl @@ -60,6 +60,7 @@ $template->param( caller => 'cud-transfer', stylesheet => C4::Context->preference("SlipCSS"), style => $style, + id => 'transfer_slip', ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/members/print_overdues.pl b/members/print_overdues.pl index 135e1df39d..d5bb612e15 100755 --- a/members/print_overdues.pl +++ b/members/print_overdues.pl @@ -68,6 +68,7 @@ $template->param( plain => !$letter->{is_html}, borrowernumber => $borrowernumber, style => $letter->{style}, + id => 'overdues_slip', ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/preservation/print_slip.pl b/preservation/print_slip.pl index 285319e036..153508c3d6 100755 --- a/preservation/print_slip.pl +++ b/preservation/print_slip.pl @@ -40,6 +40,7 @@ my $logged_in_user = Koha::Patrons->find($loggedinuser); my $branch = C4::Context->userenv->{'branch'}; my @slips; +my $count = 0; for my $train_item_id (@train_item_ids) { my $train_item = Koha::Preservation::Train::Items->find($train_item_id); my $letter = C4::Letters::GetPreparedLetter( @@ -55,6 +56,8 @@ for my $train_item_id (@train_item_ids) { push @slips, { content => $letter->{content}, is_html => $letter->{is_html}, + style => $letter->{style}, + id => ++$count, }; } diff --git a/recalls/recall_pickup_slip.pl b/recalls/recall_pickup_slip.pl index 19e439ce29..247e03686b 100755 --- a/recalls/recall_pickup_slip.pl +++ b/recalls/recall_pickup_slip.pl @@ -70,6 +70,7 @@ $template->param( plain => !$is_html, caller => 'recall', style => $style, + id => 'recall_request_det', ); output_html_with_http_headers $input, $cookie, $template->output; -- 2.39.5