Bug 5607

Summary: Make fields from issues table available in overdues
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: NoticesAssignee: Sophie MEYNIEUX <sophie.meynieux>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: enhancement    
Priority: PATCH-Sent (DO NOT USE) CC: koha.sekjal, paul.poulain, sophie.meynieux
Version: 3.8   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Attachment to Bug 5607 - Make fields from issues table available in overdues
[SIGNED-OFF] BUG 5607 : Adds parsing of issues fields in overdue letters

Description Katrin Fischer 2011-01-11 16:30:48 UTC
The new syntax to print item information in overdue notices (<item></item>) does not work with fields from the issues table. 

The list does not offer these fields to be selected into the notice template and manually adding it will not work. The information is not printed to the overdue notice.

Examples:

Will not work:

<item><<biblio.title>> <<biblio.author>>, Callnumber: <<items.itemcallnumber>> Barcode <<items.barcode>> Due date: <<issues.date_due>> Fine: <fine>EUR</fine></item>


Will display due date using -itemscontent with overdue_notices.pl:

<<items.content>>
Comment 1 Sophie MEYNIEUX 2011-12-19 11:35:48 UTC Comment hidden (obsolete)
Comment 2 Katrin Fischer 2011-12-19 20:40:17 UTC
Created attachment 6873 [details] [review]
[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
Comment 3 Ian Walls 2011-12-21 22:46:36 UTC
Simple patch to add another table worth of parsed tokens.  Itemnumber can be considered key on issues, since an item should never be checked out to two people at once.

Marking Passed QA
Comment 4 Paul Poulain 2011-12-27 17:35:32 UTC
patch pushed, please test