Bug 10352: Display the correct modification logs for bibliographic records
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 13 May 2019 15:36:14 +0000 (10:36 -0500)
committerJoy Nelson <joy@bywatersolutions.com>
Thu, 30 Jan 2020 23:34:26 +0000 (23:34 +0000)
commit536053d468d87a94544eb013cb7d4d9effae9445
tree50eb599ab95f25ab5c598c87461f5ac807018898
parente91ca8b75e73296b442722d60481034a3dda331e
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>
tools/viewlog.pl