Skip to content

Commit b8f0cbe

Browse files
committed
Update ill_table_actions hook implementatio
1 parent d3c4bb2 commit b8f0cbe

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

Koha/Plugin/Com/PTFSEurope/IllActions.pm

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use File::Basename qw( dirname );
1616
use Koha::Libraries;
1717
use Koha::Patrons;
1818

19-
our $VERSION = "1.0.0";
19+
our $VERSION = "1.0.1";
2020

2121
our $metadata = {
2222
name => 'IllActions',
@@ -100,14 +100,17 @@ Define ILL table actions
100100
=cut
101101

102102
sub ill_table_actions {
103-
my ( $self ) = @_;
104-
105-
return {
106-
button_class => 'btn btn-default btn-sm',
107-
button_link => '/api/v1/contrib/ill_actions/new_request_for_patron/',
108-
append_column_data_to_link => 1,
109-
button_link_text => 'New request for this user'
110-
};
103+
my ( $self, $table_actions ) = @_;
104+
105+
push(
106+
@{$$table_actions},
107+
{
108+
button_class => 'btn btn-default btn-sm',
109+
button_link => '/api/v1/contrib/ill_actions/new_request_for_patron/',
110+
append_column_data_to_link => 1,
111+
button_link_text => 'New request for this user'
112+
}
113+
);
111114
}
112115

113116
sub intranet_js {

koha-plugin-ill-actions-v1.0.0.kpz

-4.1 KB
Binary file not shown.

koha-plugin-ill-actions-v1.0.1.kpz

4.12 KB
Binary file not shown.

0 commit comments

Comments
 (0)