Bug 10352: Use a new object_type parameter instead of the module's name
To dissociate a search on biblio and item, we pass a new "object_type" parameter to viewlog.pl. If equals 'biblio' we will assume that "object" contains a biblionumber Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
This commit is contained in:
parent
536053d468
commit
346ff47491
|
|
@ -39,7 +39,7 @@
|
|||
<ul>
|
||||
[% IF ( issuehistoryview ) %]<li class="active">[% ELSE %]<li>[% END %]
|
||||
<a href="/cgi-bin/koha/catalogue/issuehistory.pl?biblionumber=[% biblio_object_id | url %]" >Checkout history</a></li>
|
||||
[% IF ( CAN_user_tools_view_system_logs ) %][% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&modules=CATALOGUING&action=MODIFY&object=[% biblio_object_id | url %]">Modification log</a> </li>[% END %]
|
||||
[% IF ( CAN_user_tools_view_system_logs ) %][% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&modules=CATALOGUING&action=MODIFY&object=[% biblio_object_id | url %]&object_type=biblio">Modification log</a> </li>[% END %]
|
||||
[% IF ( CAN_user_stockrotation_manage_rota_items && Koha.Preference('StockRotation') ) %][% IF ( stockrotationview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/catalogue/stockrotation.pl?biblionumber=[% biblio_object_id | uri %]">Rota</a> </li>[% END %]
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ my $user = $input->param("user") // '';
|
|||
my @actions = $input->multi_param("actions");
|
||||
my @interfaces = $input->multi_param("interfaces");
|
||||
my $object = $input->param("object");
|
||||
my $object_type = $input->param("object_type");
|
||||
my $info = $input->param("info");
|
||||
my $datefrom = $input->param("from");
|
||||
my $dateto = $input->param("to");
|
||||
|
|
@ -135,7 +136,7 @@ if ($do_it) {
|
|||
$search_params{interface} = { -in => [ @interfaces ] } if ( defined $interfaces[0] && $interfaces[0] ne '' );
|
||||
|
||||
|
||||
if ( @modules == 1 && $modules[0] eq 'CATALOGUING' ) {
|
||||
if ( @modules == 1 && $object_type eq 'biblio' ) {
|
||||
# Handle 'Modification log' from cataloguing
|
||||
my @itemnumbers = Koha::Items->search({ biblionumber => $object })->get_column('itemnumber');
|
||||
$search_params{'-or'} = [
|
||||
|
|
|
|||
Loading…
Reference in New Issue