Bugzilla – Attachment 6873 Details for
Bug 5607
Make fields from issues table available in overdues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] BUG 5607 : Adds parsing of issues fields in overdue letters
SIGNED-OFF-BUG-5607--Adds-parsing-of-issues-fields.patch (text/plain), 1.73 KB, created by
Katrin Fischer
on 2011-12-19 20:40:17 UTC
(
hide
)
Description:
[SIGNED-OFF] BUG 5607 : Adds parsing of issues fields in overdue letters
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2011-12-19 20:40:17 UTC
Size:
1.73 KB
patch
obsolete
>From 8bfae4d6897b663d13983aa4f413d814d536f78e Mon Sep 17 00:00:00 2001 >From: Sophie Meynieux <sophie.meynieux@biblibre.com> >Date: Mon, 19 Dec 2011 12:31:21 +0100 >Subject: [PATCH] [SIGNED-OFF] BUG 5607 : Adds parsing of issues fields in > overdue letters > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Patch makes it possible to add fields from the issues table to overdue notices. > >Template used for testing: ><item>"<<biblio.title>>" by <<biblio.author>>, <<items.itemcallnumber>>, Barcode: <<items.barcode>> , Checkout date: <<issues.issuedate>>, Due date: <<issues.date_due>> Fine: <fine>GBP</fine> Checkout date from items: <<items.onloan>></item> > >Possible improvements: >- Dates are not formatted according to dateformat system preference >--- > misc/cronjobs/overdue_notices.pl | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > >diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl >index 27941da..71e6a05 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>.*<\/item>)/$1\n$item_format/ if scalar(@{$params->{'items'}} > 0); > > } >-- >1.7.5.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 5607
:
6865
| 6873