Bug 21343: Respect patron language preference in automtic renewals
authorBjörn Nylén <bjorn.nylen@ub.lu.se>
Fri, 14 Sep 2018 06:19:46 +0000 (08:19 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 7 Oct 2019 11:21:12 +0000 (12:21 +0100)
To test:
1) Set up different automatic renewal notices for Default and one other language
2) Make sure you have checkouts due for auto-renewal to patrons with non-Default language pref
3) Run automatic_renewals.pl . All patrons will get the default-language notice
4) Apply patch.
5) Repeat 2)
6) Run automatic_renewals.pl . Patrons will receive notices according to their language preference.

Sponsored-by: Lund University Library
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

misc/cronjobs/automatic_renewals.pl

index 8162472..fb1cf03 100755 (executable)
@@ -112,6 +112,7 @@ if ( $send_notices ) {
                     items     => $issue->itemnumber,
                     biblio    => $item->biblionumber,
                 },
+                lang => $patron->lang,
             );
 
             my $library = Koha::Libraries->find( $patron->branchcode );