Bug 33478: Apply formatting to TRANSFERSLIP
To test: 1. Search for an item that was last seen at a library different from your logged in library i.e the holding library is Fairview but your logged in library is Centerville 2. Use the barcode to check in the item 3. When the popup to 'please return this item to <home library>' is triggered, click the Print slip button 4. Confirm your format settings for TRANSFERSLIP are applied Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
34a6450693
commit
e2377d67f4
|
|
@ -45,10 +45,11 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
|
||||
|
||||
my $userenv = C4::Context->userenv;
|
||||
my ($slip, $is_html);
|
||||
my ( $slip, $is_html, $style );
|
||||
if ( my $letter = TransferSlip ($session->param('branch') || $userenv->{branch}, $itemnumber, $barcode, $branchcode) ) {
|
||||
$slip = $letter->{content};
|
||||
$slip = $letter->{content};
|
||||
$is_html = $letter->{is_html};
|
||||
$style = $letter->{style};
|
||||
}
|
||||
else {
|
||||
$slip = "Item not found";
|
||||
|
|
@ -58,6 +59,7 @@ $template->param(
|
|||
plain => !$is_html,
|
||||
caller => 'cud-transfer',
|
||||
stylesheet => C4::Context->preference("SlipCSS"),
|
||||
style => $style,
|
||||
);
|
||||
|
||||
output_html_with_http_headers $input, $cookie, $template->output;
|
||||
|
|
|
|||
Loading…
Reference in New Issue