Bug 27120: Send biblio to Koha plugins hook 'intranet_catalog_biblio_tab'
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 1 Dec 2020 08:27:01 +0000 (09:27 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 29 Apr 2021 13:48:46 +0000 (15:48 +0200)
commitab6e421152a763270e6d1e0083c433a38c86a277
tree30a87f72f442aaa47b6f6fb3cc9930f812d5a0e5
parentf05e6296bd49cc97b3b1c427966bdc432d7348a2
Bug 27120: Send biblio to Koha plugins hook 'intranet_catalog_biblio_tab'

Koha plugins hook 'intranet_catalog_biblio_tab' should have the datas of the current biblio record.
Koha::Biblio is aleady in template, send it with hooks call.

This will be very usefull to be able to fetch external datas
(wikipedia, youtube, ...) depending on current biblio record.

Test plan :
1) Enable Koha plugins
2) Install plugin attached to this bug
3) Go to staff interface on a biblio record details page
4) Check you see tab 1 containing 'Tab for record {title}'
5) Check you see tab 2 containing 'Tab for record {isbn}'

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 3e4d37b03158aa24c5bd01a13a7acd53df8e2213)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Template/Plugin/KohaPlugins.pm
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt