]> git.koha-community.org Git - koha.git/commit
Bug 25961: Add hooks for plugins to inject variables to OPAC XSLT
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 8 Jul 2020 19:54:51 +0000 (16:54 -0300)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 31 Jul 2020 21:26:51 +0000 (21:26 +0000)
commit55a24f880d69ed6627e8dc4cbc429d0eb167c96e
tree607a8b6a39e5af90e5e4509abe629f49f7b00441
parent7d67e541e752a561e04f3682abf9f8471aa4c3fb
Bug 25961: Add hooks for plugins to inject variables to OPAC XSLT

This patch adds the following plugin hooks:
- opac_results_xslt_variables
- opac_detail_xslt_variables

This hooks will inject variables returned by the plugin in the form of a
hashref, into the ones that are passed to the XSLT processing code.

To test:
1. Apply the 'DO NOT PUSH' commit
2. Install the Kitchensink plugin
3. Restart all
4. Search biblios in the OPAC
=> SUCCESS: A text is injected in front of the biblio title
5. Enter the detail page of any of the results
=> SUCCESS: A text is injected in front of the biblio title
6. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 9676f537a448d50770c90d9d5a8b420a1f302444)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
opac/opac-detail.pl
opac/opac-search.pl