Bug 10352: Display the correct modification logs for bibliographic records
commit91122f420524b64fcbf7e112e6692963cc4f1f05
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 13 May 2019 15:36:14 +0000 (13 10:36 -0500)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 5 Feb 2020 21:44:24 +0000 (5 21:44 +0000)
treef32ad0a7c3ba3f0d54f7f93df6e9d2d24e5e9fb0
parent8bcafbe3cfa15974b34c8bb8dc9d10f72205283e
Bug 10352: Display the correct modification logs for bibliographic records

The 'Modification log" link in the cataloguing module returns confusing
results. The 'object' parameter is the biblionumber, but the all log
from itemnumber=biblionumber will be displayed as well.
Since bug 11473 we have the action_logs.info column that is prefixed by
'item ' or 'biblio ' to disociated an item modification from a biblio
modif.
This patch suggests a quick and dirty approach, use this column to make
sure we are searching for the correct logs.
/!\ As bug 11473 did not update the existing rows, we will no longer display
the logs created prior to this change.

Test plan:
Make sure you have at least 2 bibliographic records with some items
Make sure you have the biblionumbers of those records that match
existing itemnumbers
Edit them (no matter what you change)
Go to the bibliographic detail page (staff) and click "Modification log"
You should see the correct changes.

Signed-off-by: hc <hc@interleaf.ie>
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>
(cherry picked from commit 536053d468d87a94544eb013cb7d4d9effae9445)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
tools/viewlog.pl