[Koha-bugs] [Bug 35568] New: Add a plugin hook to allow modification of notices created via GetPreparedLetter

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 14 12:58:25 CET 2023


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

            Bug ID: 35568
           Summary: Add a plugin hook to allow modification of notices
                    created via GetPreparedLetter
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Plugin architecture
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: kyle at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

A plugin hook for GetPreparedLetter would be very useful. It could be used to
add universal headers and/or footers to messages, attach news, and modify
notices in other ways in whole or in part. It could even be used for call
webhooks when certain types of notices are sent.

For example, the MessageBee ( https://uniquelibrary.com/messagebee/ ) plugin
for Koha generates YAML based notice content, which is then further processed
by the before_send_messages hook. This process is unreliable due to the
possible changes in data between the creation of the yaml and the reading of
that yaml and transforming it into JSON with much more data. For example, the
yaml may contain an issue_id, but that checkout may have been returned in the
meantime. A hook like this would allow the MessageBee plugin to skip the yaml
step and create the json data directly which is then sent to MessageBee for
transmission to the patron.

-- 
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