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

(-)a/catalogue/detail.pl (-1 / +16 lines)
Lines 69-76 if ( C4::Context->preference('UseKohaPlugins') && Link Here
69
    my @plugins = Koha::Plugins->new()->GetPlugins({
69
    my @plugins = Koha::Plugins->new()->GetPlugins({
70
        method => 'intranet_catalog_biblio_enhancements_toolbar_button'
70
        method => 'intranet_catalog_biblio_enhancements_toolbar_button'
71
    });
71
    });
72
73
    my @tab_plugins = Koha::Plugins->new()->GetPlugins({
74
        method => 'intranet_catalog_biblio_tab',
75
    });
76
    my @tabs;
77
    foreach my $tab_plugin (@tab_plugins) {
78
        my @biblio_tabs = $tab_plugin->intranet_catalog_biblio_tab();
79
        foreach my $tab (@biblio_tabs) {
80
            $tab->{id} = $tab->{title};
81
            $tab->{id} =~ s/[^\w]+/-/g;
82
            push @tabs, $tab,
83
        }
84
    }
85
72
    $template->param(
86
    $template->param(
73
        plugins => \@plugins
87
        plugins => \@plugins,
88
        tabs => \@tabs,
74
    );
89
    );
75
}
90
}
76
91
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +9 lines)
Lines 191-196 Link Here
191
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
191
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
192
    <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
192
    <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
193
[% END %]
193
[% END %]
194
[% FOREACH tab IN tabs %]
195
    <li><a href="#[% tab.id %]">[% tab.title %]</a></li>
196
[% END %]
194
</ul>
197
</ul>
195
198
196
[% items_table_block_iter = 0 %]
199
[% items_table_block_iter = 0 %]
Lines 722-727 Link Here
722
    </div>
725
    </div>
723
[% END %]
726
[% END %]
724
727
728
[% FOREACH tab IN tabs %]
729
    <div id="[% tab.id | html %]">
730
        [% tab.content | $raw %]
731
    </div>
732
[% END %]
733
725
</div><!-- /bibliodetails -->
734
</div><!-- /bibliodetails -->
726
735
727
<div id="export" style="margin-top: 1em;">
736
<div id="export" style="margin-top: 1em;">
728
- 

Return to bug 23050