]> git.koha-community.org Git - koha.git/commit
Bug 10727: Replace carriage return with <br /> when printing hold notices
authorSophie Meynieux <sophie.meynieux@biblibre.com>
Wed, 14 Aug 2013 13:51:10 +0000 (15:51 +0200)
committerBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Sat, 12 Oct 2013 02:59:54 +0000 (23:59 -0300)
commit8b9759e6574132b3b87e6a4a4ad768fc6621087d
tree4ea9b0bb088b75afde361b8df099dd50fac8f4b0
parente581785e64e94346febc692dec7a487f588b2b54
Bug 10727: Replace carriage return with <br /> when printing hold notices

This patch replaces carriage return with <br /> in the content of
hold notices for printing. This is necessary to convert html file
into well formatted pdf file.

Test plan :
  - check in an item reserved by a borrower
    that has not activated email notification
  - verify in message_queue table that you've got a
    new HOLD_PRINT notice with status 'pending'
  - run gather_print_notices.pl <directory>

Without the patch, the script generates a html file without <br /> tags.
If you run printoverdues.sh <directory>, the text in the resulting PDF
file is all on one line

With the patch, the script generates a html file with <br/> tags and
the PDF file created by printoverdues.sh is well formatted.

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 30b32d99381a8296e41e6843c440cd9e3594eb8a)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit c806cc8e1998bd9c134f9839f7975d1fffbceef3)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit c806cc8e1998bd9c134f9839f7975d1fffbceef3)
misc/cronjobs/gather_print_notices.pl