Lines 130-140
if ($do_it) {
Link Here
|
130 |
|
130 |
|
131 |
if ( @modules == 1 && $object_type eq 'biblio' ) { |
131 |
if ( @modules == 1 && $object_type eq 'biblio' ) { |
132 |
# Handle 'Modification log' from cataloguing |
132 |
# Handle 'Modification log' from cataloguing |
133 |
my @itemnumbers = Koha::Items->search({ biblionumber => $object })->get_column('itemnumber'); |
133 |
my $biblio = Koha::Biblios->find( $object ); |
|
|
134 |
my @itemnumbers = $biblio->items->get_column('itemnumber'); |
134 |
$search_params{'-or'} = [ |
135 |
$search_params{'-or'} = [ |
135 |
{ -and => { object => $object, info => { -like => 'biblio%' }}}, |
136 |
{ -and => { object => $object, info => { -like => 'biblio%' }}}, |
136 |
{ -and => { object => \@itemnumbers, info => { -like => 'item%' }}}, |
137 |
{ -and => { object => \@itemnumbers, info => { -like => 'item%' }}}, |
137 |
]; |
138 |
]; |
|
|
139 |
$template->param( biblio => $biblio ); |
138 |
} else { |
140 |
} else { |
139 |
$search_params{info} = { -like => '%' . $info . '%' } if $info; |
141 |
$search_params{info} = { -like => '%' . $info . '%' } if $info; |
140 |
$search_params{object} = $object if $object; |
142 |
$search_params{object} = $object if $object; |
141 |
- |
|
|