[Koha] Template toolkit puzzle 1.

Raymund Delahunty r.delahunty at arts.ac.uk
Fri Dec 2 19:31:31 NZDT 2022


We have a TT rule working perfectly in MEMBERSHIP_EXPIRY where staff receive one email wording, while students receive different wording, more appropriate for them.
[% IF (borrower.categorycode == 'STAFF') %]
  <staff email wording>
[% ELSE %]
  <student email wording>
[% END %]

But when I try to use a TT rule in the ODUE message, no email is sent at all- there appears to be an error:
[% IF (borrower.dateexpiry == CURDATE() %]
  <leavers are told to bring all their items back as their account has expired>
[% ELSE %]
  <other users are told to return their overdue items>
[% END %]

Any ideas? Is CURDATE() correct?

This email and any attachments are intended solely for the addressee and may contain confidential information. If you are not the intended recipient of this email and/or its attachments you must not take any action based upon them and you must not copy or show them to anyone. Please send the email back to us and immediately and permanently delete it and its attachments. Where this email is unrelated to the business of University of the Arts London or of any of its group companies the opinions expressed in it are the opinions of the sender and do not necessarily constitute those of University of the Arts London (or the relevant group company). Where the sender's signature indicates that the email is sent on behalf of UAL Short Courses Limited the following also applies: UAL Short Courses Limited is a company registered in England and Wales under company number 02361261. Registered Office: University of the Arts London, 272 High Holborn, London WC1V 7EY


More information about the Koha mailing list