View | Details | Raw Unified | Return to bug 27120
Collapse All | Expand All

(-)a/Koha/Template/Plugin/KohaPlugins.pm (-2 / +2 lines)
Lines 160-166 method to output to the list of extra cataloguing tabs on intranet pages. Link Here
160
=cut
160
=cut
161
161
162
sub get_plugins_intranet_catalog_biblio_tab {
162
sub get_plugins_intranet_catalog_biblio_tab {
163
163
    my ( $self, $params ) = @_;
164
    my $tabs = [];
164
    my $tabs = [];
165
165
166
    return $tabs unless C4::Context->config("enable_plugins");
166
    return $tabs unless C4::Context->config("enable_plugins");
Lines 176-182 sub get_plugins_intranet_catalog_biblio_tab { Link Here
176
176
177
    foreach my $plugin (@plugins) {
177
    foreach my $plugin (@plugins) {
178
        try {
178
        try {
179
            my @newtabs = $plugin->intranet_catalog_biblio_tab();
179
            my @newtabs = $plugin->intranet_catalog_biblio_tab($params);
180
            foreach my $newtab (@newtabs) {
180
            foreach my $newtab (@newtabs) {
181
                # Add a unique HTML id
181
                # Add a unique HTML id
182
                my $html_id = 'tab-'. $plugin->{class} . '-' . $newtab->title;
182
                my $html_id = 'tab-'. $plugin->{class} . '-' . $newtab->title;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +1 lines)
Lines 31-37 Link Here
31
    [% END %]
31
    [% END %]
32
[% END %]
32
[% END %]
33
33
34
[% SET plugins_intranet_catalog_biblio_tabs = KohaPlugins.get_plugins_intranet_catalog_biblio_tab %]
34
[% SET plugins_intranet_catalog_biblio_tabs = KohaPlugins.get_plugins_intranet_catalog_biblio_tab({ biblio => biblio }) %]
35
35
36
[% SET footerjs = 1 %]
36
[% SET footerjs = 1 %]
37
[% INCLUDE 'doc-head-open.inc' %]
37
[% INCLUDE 'doc-head-open.inc' %]
38
- 

Return to bug 27120