From f2adf05026fc9532efa9bf2144d7abcf3b04eb3d Mon Sep 17 00:00:00 2001 From: Sophie Meynieux Date: Mon, 19 Dec 2011 12:31:21 +0100 Subject: [PATCH] BUG 5607 : Adds parsing of issues fields in overdue letters Signed-off-by: Katrin Fischer Patch makes it possible to add fields from the issues table to overdue notices. Template used for testing: "<>" by <>, <>, Barcode: <> , Checkout date: <>, Due date: <> Fine: GBP Checkout date from items: <> Possible improvements: - Dates are not formatted according to dateformat system preference Signed-off-by: Paul Poulain (cherry picked from commit 940652a6c7ac45b255d4d9b89bf90ccfca568ccd) Signed-off-by: Chris Nighswonger --- misc/cronjobs/overdue_notices.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl index be86aaa566..f9fbae7fa5 100755 --- a/misc/cronjobs/overdue_notices.pl +++ b/misc/cronjobs/overdue_notices.pl @@ -684,6 +684,7 @@ sub parse_letter { # FIXME: this code should probably be moved to C4::Letters:pa $params->{'letter'} = C4::Letters::parseletter( $params->{'letter'}, 'biblio', $item->{'biblionumber'} ); $params->{'letter'} = C4::Letters::parseletter( $params->{'letter'}, 'biblioitems', $item->{'biblionumber'} ); $params->{'letter'} = C4::Letters::parseletter( $params->{'letter'}, 'items', $item->{'itemnumber'} ); + $params->{'letter'} = C4::Letters::parseletter( $params->{'letter'}, 'issues', $item->{'itemnumber'} ); $params->{'letter'}->{'content'} =~ s/(.*<\/item>)/$1\n$item_format/ if scalar(@{$params->{'items'}} > 0); } -- 2.39.5