Bug 9016: Create a message for each transport type.
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 6 Sep 2013 08:27:04 +0000 (10:27 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 2 May 2014 20:29:16 +0000 (20:29 +0000)
commit82145411141c29c6c4b8849a1ae11fefb65ceabc
tree203e3e682e1cbcd8422b1916ad05d01b07de171e
parent160ed321bee5806d9f58b064a27b1c31c9ae3fe4
Bug 9016: Create a message for each transport type.

This patch adds:
- a new jquery plugin : insertatcaret.
- the ability to define a notice template for each transport type.
- a new routine C4::Letters::GetMessageTransportTypes.

Test plan:
- Go on tools/letter.pl and check that all existing notices are still
  there.
- Modify one. A new empty message is present for sms, print, etc. The
  email message is filled with the existant value.
- Add a message for sms for example (don't forget the subject) and save.
- edit again and verify the sms message has been saved.

Signed-off-by: Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Letters.pm
koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.insertatcaret.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt
t/db_dependent/Letters.t
tools/letter.pl