]> git.koha-community.org Git - koha.git/commit
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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 22 Apr 2021 12:37:14 +0000 (14:37 +0200)
commit3e4d37b03158aa24c5bd01a13a7acd53df8e2213
tree44592455d79004c6030d1f74a546b4d32a557649
parentb385e1f529a26e1c592355b9f7c2cec3259812df
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>
Koha/Template/Plugin/KohaPlugins.pm
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt