[Koha-bugs] [Bug 19014] New: Limit auto-renewal notice to item due immediately. Template Toolkit change ?

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 1 13:27:35 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19014

            Bug ID: 19014
           Summary: Limit auto-renewal notice to item due immediately.
                    Template Toolkit change?
 Change sponsored?: ---
           Product: Koha
           Version: 17.05
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Notices
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: r.delahunty at arts.ac.uk
        QA Contact: testopia at bugs.koha-community.org

Current functionality in 17.05:
All copies of an item with auto-renewal enabled, reserved at the title level.
Due dates of copies on loan include today, and various dates into the future,
some many weeks ahead.
When the auto-renewal job runs,  Koha is sending an AUTO_RENEWAL email to ALL
the users warning them ALL of renewal failure, using the [% ELSIF
checkout.auto_renew_error == 'on_reserve' %]

Desired functionality in 17.05:
When the auto-renewal job runs,  Koha should only send an AUTO_RENEWAL email to
the user (or possibly users) whose copy is due back today, on the day the
auto-renewal job runs. Other people who have copies on loan but which are not
yet due back yet should not be contacted by the AUTO_RENEWAL email. Users
contacted in this way are being very puzzled and confused.

Could this be achieved by an edit to the condition in the template toolkit? So
rather this:
[% ELSIF checkout.auto_renew_error == 'on_reserve' %]
This item has been reserved by another reader.
… we have something like this:
[% ELSIF checkout.auto_renew_error == 'on_reserve'  && checkout.date_due
%==today %]
This item has been reserved by another reader.

Would that work? Is a second condition permissible? How should it be worded?

Ray Delahunty
University of the Arts London

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list