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 169-174 Link Here
169
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
169
[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectStaffProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %]
170
    <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
170
    <li class="NovelistSelect" style="display:none;"><a href="#NovelistSelect">NoveList Select</a></li>
171
[% END %]
171
[% END %]
172
[% FOREACH tab IN tabs %]
173
    <li><a href="#[% tab.id %]">[% tab.title %]</a></li>
174
[% END %]
172
</ul>
175
</ul>
173
176
174
[% items_table_block_iter = 0 %]
177
[% items_table_block_iter = 0 %]
Lines 698-703 Link Here
698
    </div>
701
    </div>
699
[% END %]
702
[% END %]
700
703
704
[% FOREACH tab IN tabs %]
705
    <div id="[% tab.id | html %]">
706
        [% tab.content | $raw %]
707
    </div>
708
[% END %]
709
701
</div><!-- /bibliodetails -->
710
</div><!-- /bibliodetails -->
702
711
703
<div id="export" style="margin-top: 1em;">
712
<div id="export" style="margin-top: 1em;">
704
- 

Return to bug 23050