Skip to content

Commit

Permalink
Update ill_table_actions hook implementatio
Browse files Browse the repository at this point in the history
  • Loading branch information
ammopt committed Nov 15, 2023
1 parent d3c4bb2 commit b8f0cbe
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions Koha/Plugin/Com/PTFSEurope/IllActions.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use File::Basename qw( dirname );
use Koha::Libraries;
use Koha::Patrons;

our $VERSION = "1.0.0";
our $VERSION = "1.0.1";

our $metadata = {
name => 'IllActions',
Expand Down Expand Up @@ -100,14 +100,17 @@ Define ILL table actions
=cut

sub ill_table_actions {
my ( $self ) = @_;

return {
button_class => 'btn btn-default btn-sm',
button_link => '/api/v1/contrib/ill_actions/new_request_for_patron/',
append_column_data_to_link => 1,
button_link_text => 'New request for this user'
};
my ( $self, $table_actions ) = @_;

push(
@{$$table_actions},
{
button_class => 'btn btn-default btn-sm',
button_link => '/api/v1/contrib/ill_actions/new_request_for_patron/',
append_column_data_to_link => 1,
button_link_text => 'New request for this user'
}
);
}

sub intranet_js {
Expand Down
Binary file removed koha-plugin-ill-actions-v1.0.0.kpz
Binary file not shown.
Binary file added koha-plugin-ill-actions-v1.0.1.kpz
Binary file not shown.

0 comments on commit b8f0cbe

Please sign in to comment.