[Koha-bugs] [Bug 23050] Plugins: Add hook to add a tab in intranet biblio details page

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 6 21:21:17 CEST 2019


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

Tomás Cohen Arazi <tomascohen at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tomascohen at gmail.com
         QA Contact|testopia at bugs.koha-communit |tomascohen at gmail.com
                   |y.org                       |

--- Comment #8 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Julian, I think this is a pretty cool idea.
I don't like it that you generate content on the .pl (tab id, title, etc). It
feels like all that could be done on the templates if we pass the plugins like:

Why not just:

    my @tab_plugins = Koha::Plugins->new()->GetPlugins({
        method => 'intranet_catalog_biblio_tab',
    });
     $template->param(
        plugins     => \@plugins,
        tab_plugins => \@tab_pluginss,
     );

Also, (for a later enhancement) there should be a way to define the order in
which the tabs will be placed. Not sure how/where.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list