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

            Bug ID: 31734
           Summary: Hooks for account, recall, indexing and more actions
                    for holds.
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Plugin architecture
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

This patch adds a few more hooks and extensions to an existing hook.

The existing hook "after_hold_action" has been extended with the following
actions:
* "transfer" for when a Hold calls "set_transfer()".
* "waiting" for when a Hold calls "set_waiting()".
* "processing" for when a Hold calls "set_processing()".

A new hook "after_account_action" is added with action "add_credit" for when
credit is added via for example PAYMENT or WRITEOFF. This is consistent with
when UpdateStats is called so that a plugin can be used to log the same kind of
data as the normal statistics.

Another new hook "after_recall_action" with action "add_recall" is also added.
Also to stay consistent with the UpdateStats usage.

Lastly a hook "before_index_action" with action "update" is added for the
Elasticsearch::Indexer function "update_index()" so that the records being
indexed can be modified before indexing. This allows for a plugin to add
metadata to index or tweak or change it to provide better search results
without changing the actual records (something that might be prohibited or
discouraged due to centralised cataloging).

Tests are provided in the patch.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to