Lines 29-35
use C4::Output;
Link Here
|
29 |
use C4::Items; |
29 |
use C4::Items; |
30 |
use C4::Serials; |
30 |
use C4::Serials; |
31 |
use C4::Debug; |
31 |
use C4::Debug; |
32 |
use C4::Search; # enabled_staff_search_views |
|
|
33 |
|
32 |
|
34 |
use Koha::ActionLogs; |
33 |
use Koha::ActionLogs; |
35 |
use Koha::Database; |
34 |
use Koha::Database; |
Lines 54-60
my $user = $input->param("user") // '';
Link Here
|
54 |
my @actions = $input->multi_param("actions"); |
53 |
my @actions = $input->multi_param("actions"); |
55 |
my @interfaces = $input->multi_param("interfaces"); |
54 |
my @interfaces = $input->multi_param("interfaces"); |
56 |
my $object = $input->param("object"); |
55 |
my $object = $input->param("object"); |
57 |
my $object_type = $input->param("object_type"); |
56 |
my $object_type = $input->param("object_type") // ''; |
58 |
my $info = $input->param("info"); |
57 |
my $info = $input->param("info"); |
59 |
my $datefrom = $input->param("from"); |
58 |
my $datefrom = $input->param("from"); |
60 |
my $dateto = $input->param("to"); |
59 |
my $dateto = $input->param("to"); |
Lines 90-96
if ( $src eq 'circ' ) {
Link Here
|
90 |
|
89 |
|
91 |
$template->param( |
90 |
$template->param( |
92 |
debug => $debug, |
91 |
debug => $debug, |
93 |
C4::Search::enabled_staff_search_views, |
|
|
94 |
subscriptionsnumber => CountSubscriptionFromBiblionumber(scalar $input->param('object')), |
92 |
subscriptionsnumber => CountSubscriptionFromBiblionumber(scalar $input->param('object')), |
95 |
object => $object, |
93 |
object => $object, |
96 |
); |
94 |
); |
Lines 135-141
if ($do_it) {
Link Here
|
135 |
$search_params{action} = { -in => [ @actions ] } if ( defined $actions[0] && $actions[0] ne '' ); |
133 |
$search_params{action} = { -in => [ @actions ] } if ( defined $actions[0] && $actions[0] ne '' ); |
136 |
$search_params{interface} = { -in => [ @interfaces ] } if ( defined $interfaces[0] && $interfaces[0] ne '' ); |
134 |
$search_params{interface} = { -in => [ @interfaces ] } if ( defined $interfaces[0] && $interfaces[0] ne '' ); |
137 |
|
135 |
|
138 |
|
|
|
139 |
if ( @modules == 1 && $object_type eq 'biblio' ) { |
136 |
if ( @modules == 1 && $object_type eq 'biblio' ) { |
140 |
# Handle 'Modification log' from cataloguing |
137 |
# Handle 'Modification log' from cataloguing |
141 |
my @itemnumbers = Koha::Items->search({ biblionumber => $object })->get_column('itemnumber'); |
138 |
my @itemnumbers = Koha::Items->search({ biblionumber => $object })->get_column('itemnumber'); |
Lines 144-151
if ($do_it) {
Link Here
|
144 |
{ -and => { object => \@itemnumbers, info => { -like => 'item%' }}}, |
141 |
{ -and => { object => \@itemnumbers, info => { -like => 'item%' }}}, |
145 |
]; |
142 |
]; |
146 |
} else { |
143 |
} else { |
147 |
$search_params{info} = $info if $info; |
144 |
$search_params{info} = { -like => '%' . $info . '%' } if $info; |
148 |
$search_params{object} = $object if $object; |
145 |
$search_params{object} = { -like => '%' . $object . '%'} if $object; |
149 |
} |
146 |
} |
150 |
|
147 |
|
151 |
my @logs = Koha::ActionLogs->search(\%search_params); |
148 |
my @logs = Koha::ActionLogs->search(\%search_params); |
152 |
- |
|
|