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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 24 May 2021 16:40:14 +0000 (16:40 +0000)
commitb3d900e7ffaa4af7baf5dd20720fda5320fe8482
treef6344b65178c402c976e2ec89f5d78fd75fafb6b
parentc68e2b74fc2e8acd60fcff37386d9df62e3bd9b3
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>
(cherry picked from commit ab6e421152a763270e6d1e0083c433a38c86a277)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Koha/Template/Plugin/KohaPlugins.pm
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt