]> git.koha-community.org Git - koha.git/commit
Bug 13622: Display a datetime without time in a notice
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 26 Jan 2015 16:24:36 +0000 (17:24 +0100)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Wed, 16 Sep 2015 13:49:54 +0000 (10:49 -0300)
commitcef7cd40ce5b2fe1505245cf232d4338b10eba3e
tree25583e27ec1565552641b542cdbed041519c758b
parentd671b8661cf02d8b039eb5230ab732fd1fde2301
Bug 13622: Display a datetime without time in a notice

For some needs, a librarian would like to display a datetime or
timestamp field without the time.

This patch adds filter logic in the notice/letter parsing process.

Test plan:
1/ Defined a notice using a datetime or timestamp DB field
(biblio.timestamp for instance).
2/ Generate the notice
3/ Verify that the letter is generated with the time
4/ Use the "dateonly" filter like:
  <<your_table.your_field | dateonly>>
  <<biblio.timestamp | dateonly>>
5/ Generate the notice
6/ Confirm the the letter is generated without the time for this field.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg@gmail.com>
Updated the count of tests to 64 for t/db_dependent/Letters.t to pass
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
C4/Letters.pm
t/db_dependent/Letters.t