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; |