Bug 6029

Summary: Date processing not done to all dates in overdue mails
Product: Koha Reporter: Chris Cormack <chris>
Component: PatronsAssignee: Stéphane Delaune <stephane.delaune>
Status: RESOLVED DUPLICATE QA Contact: Bugs List <koha-bugs>
Severity: enhancement    
Priority: PATCH-Sent (DO NOT USE) CC: gmcharlt, paul.poulain
Version: 3.4   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 5992    
Attachments: Proposed Patch

Description Chris Cormack 2011-03-31 21:56:17 UTC

    
Comment 1 Chris Cormack 2011-03-31 21:57:25 UTC
Created attachment 3594 [details] [review]
Proposed Patch
Comment 2 Katrin Fischer 2011-07-17 22:06:55 UTC
I tested this with following ODUE template:

copyrightdate <<biblio.copyrightdate>>
datecreated <<biblio.datecreated>>
publicationyear <<biblioitems.publicationyear>>

itemscontent
<<items.content>>

./misc/cronjobs/overdue_notices.pl -v -itemscontent dateaccessioned, replacementpricedate, datelastborrowed, datelastseen, onloan

Result:
Illegal Date '1990-09-23' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534
Illegal Date '2020-12-31' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534
Illegal Date '1958-05-30' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534
Use of uninitialized value $fine in string at ./misc/cronjobs/overdue_notices.pl line 676.
Illegal Date '1973' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534
Illegal Date '2011-07-17' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534
Illegal Date '2011-07-17' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534
Illegal Date '2011-07-17' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534
Illegal Date '2011-07-17' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534
Illegal Date '2011-07-17' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534

Message created:
copyrightdate 

datecreated 

publicationyear 



itemscontent

07/17/2011

For comparison, output BEFORE applying patch:
copyrightdate 1973

datecreated 2011-07-17

publicationyear 



itemscontent

07/17/2011
Comment 3 Katrin Fischer 2014-11-21 06:54:35 UTC

*** This bug has been marked as a duplicate of bug 11244 ***