Bug 9348 - Format dates in HOLD notices consistently
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 4 Jan 2013 13:04:25 +0000 (08:04 -0500)
committerChris Cormack <chris@bigballofwax.co.nz>
Fri, 1 Feb 2013 08:11:28 +0000 (21:11 +1300)
commit1928119e3b3681c6f73e97bd6d4e692cb48b312c
tree257c365214ae5390c1faa752cf729f5b3511cbc0
parent188ac0a8c97259c927096fcb917b356e6edbb0b9
Bug 9348 - Format dates in HOLD notices consistently

Right now notices for holds awaiting pickup read something like this:

You have a hold available for pickup as of 2011-02-12.
This hold will expire if it is not picked up before: 02/22/2011.
If you no longer need this item or have any questions please contact us

Both dates should be formatting based on the dateformat system preference.

Test Plan:
1) Apply patch
2) Set the HOLD notice to the following:
    <<reserves.waitingdate>> / <<reserves.expirationdate>>
3) Place a hold for a patron
4) Enable the HOLD notice via email for that patron ( requires EnhancedMessaging )
5) Check the item in
6) Go to the borrower's Notices tab, check the body of the new HOLD notice,
   it should have two dates separated by a '/' in the format set by the dateformat
   system preference.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Patch works as advertised according to the test plan.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Tested also with the HOLD_PRINT notice.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
C4/Letters.pm