Bug 17964: Add old_issues
If it's a CHECKIN, C4::Circulation::SendCirculationAlert set a "old_issues" key instead of "issues". Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
580b8febe3
commit
b2b4be996a
2 changed files with 12 additions and 6 deletions
|
@ -1545,6 +1545,12 @@ sub _get_tt_params {
|
|||
plural => 'checkouts',
|
||||
fk => 'itemnumber',
|
||||
},
|
||||
old_issues => {
|
||||
module => 'Koha::Old::Checkouts',
|
||||
singular => 'old_checkout',
|
||||
plural => 'old_checkouts',
|
||||
fk => 'itemnumber',
|
||||
},
|
||||
borrower_modifications => {
|
||||
module => 'Koha::Patron::Modifications',
|
||||
singular => 'patron_modification',
|
||||
|
|
|
@ -417,13 +417,13 @@ The following items have been checked out:
|
|||
Thank you for visiting <<branches.branchname>>.
|
||||
|;
|
||||
reset_template( { template => $checkout_template, code => $checkout_code, module => 'circulation' } );
|
||||
my $checkin_template = q|
|
||||
my $checkin_template = q[
|
||||
The following items have been checkin out:
|
||||
----
|
||||
<<biblio.title>>
|
||||
<<biblio.title>> was due on <<old_issues.date_due | dateonly>>
|
||||
----
|
||||
Thank you for visiting <<branches.branchname>>.
|
||||
|;
|
||||
];
|
||||
reset_template( { template => $checkin_template, code => $checkin_code, module => 'circulation' } );
|
||||
|
||||
C4::Circulation::AddIssue( $patron, $item1->{barcode} );
|
||||
|
@ -447,13 +447,13 @@ The following items have been checked out:
|
|||
Thank you for visiting [% branch.branchname %].
|
||||
|;
|
||||
reset_template( { template => $checkout_template, code => $checkout_code, module => 'circulation' } );
|
||||
$checkin_template = q|
|
||||
$checkin_template = q[
|
||||
The following items have been checkin out:
|
||||
----
|
||||
[% biblio.title %]
|
||||
[% biblio.title %] was due on [% old_checkout.date_due | $KohaDates %]
|
||||
----
|
||||
Thank you for visiting [% branch.branchname %].
|
||||
|;
|
||||
];
|
||||
reset_template( { template => $checkin_template, code => $checkin_code, module => 'circulation' } );
|
||||
|
||||
C4::Circulation::AddIssue( $patron, $item1->{barcode} );
|
||||
|
|
Loading…
Reference in a new issue