]> git.koha-community.org Git - koha.git/commit
Bug 14757 - Allow the use of Template Toolkit syntax for slips and notices
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 2 Dec 2015 13:32:44 +0000 (13:32 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 8 Jul 2016 13:47:42 +0000 (13:47 +0000)
commit7276a38c2b67b7ef48b85f544527648b358efa6d
tree818f428fb01779905f7cb16b64ba767914161d5a
parent9e1542eb84a0c8b02eae6ca3ff3616d0a5d412da
Bug 14757 - Allow the use of Template Toolkit syntax for slips and notices

This bug is the beginning of a conversion from our current bespoke
syntax for slips and notices to Template Toolkit syntax.

This patch is the initial seed which will evolve over time.
With this addition, we can take advantage of our Koha Objects
to greatly simplify the processing of Slips and Notices over time.

Test Plan:
1) Apply this patch
2) Ensure you have the default CHECKOUT notice
3) Check out and return an item for a patron
4) Note the text of the CHECKOUT notice
5) Replace your CHECKOUT notice with the following:

The following items have been checked out:
----
[% biblio.title %]
----
Thank you for visiting [% branch.branchname %].

6) Repeat step 3
7) Note the CHECKOUT notice text matches the previous CHECKOUT notice text

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
New notice syntax works, no koha-qa errors

Signed-off-by: Sean McGarvey <seanm@pascolibraries.org>
Bug 14757 [QA Followup] - Change method type() to _type() for Koha objects

Signed-off-by: Sean McGarvey <seanm@pascolibraries.org>
Bug 14757 [QA Followup] - Change all references to Koha::Borrower to Koha::Patron

Signed-off-by: Sean McGarvey <seanm@pascolibraries.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Letters.pm
Koha/Checkout.pm [new file with mode: 0644]
Koha/Checkouts.pm [new file with mode: 0644]
Koha/News.pm [new file with mode: 0644]
Koha/NewsItem.pm [new file with mode: 0644]
Koha/Patron/Modification.pm [new file with mode: 0644]
Koha/Patron/Modifications.pm
Koha/Suggestion.pm [new file with mode: 0644]
Koha/Suggestions.pm [new file with mode: 0644]
tools/letter.pl