[Bug 44268] New: Cataloging modification log for a record does not show logs for deleted items
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44268 Bug ID: 44268 Summary: Cataloging modification log for a record does not show logs for deleted items Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Cataloging Assignee: koha-bugs@lists.koha-community.org Reporter: blawlor@clamsnet.org QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl Target Milestone: --- When the log viewer is opened from a bib record's 'Modification log' link (object_type=biblio), it includes item-level CATALOGUING logs for the record's items. It builds that list of items from the record's current items only, so once an item is deleted, all of its logs disappear from the record's history: its addition, its modifications and its deletion. The deletion is still logged, and can be found by searching with the item's itemnumber as the Object. It can't be found from the record, which is where staff would expect to look for "what happened to this record's items". Proposed fix - In tools/viewlog.pl, include itemnumbers from items and deleteditems when building the item list for object_type=biblio - Add actions=DELETE to the Modification log link in biblio-view-menu.inc so that item deletions are shown on the first page load by default -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44268 Brendan Lawlor <blawlor@clamsnet.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |blawlor@clamsnet.org |ity.org | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44268 Brendan Lawlor <blawlor@clamsnet.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Comma delimited| |CLAMS list of Sponsors| | Patch complexity|--- |Small patch Sponsorship status|--- |Sponsored Depends on| |44264 Status|NEW |Needs Signoff Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44264 [Bug 44264] Log viewer loses item-level results for a record when the search form is resubmitted -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44268 --- Comment #1 from Brendan Lawlor <blawlor@clamsnet.org> --- Created attachment 212571 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212571&action=edit Bug 44268: Show logs for deleted items in a record's modification log When the log viewer is opened with object_type=biblio, it includes item-level CATALOGUING logs for the record's items. The list of itemnumbers was built from the record's current items only, so once an item was deleted, all of its logs (add, modify and delete) disappeared from the record's modification log. This patch: - Adds a helper in tools/viewlog.pl that collects itemnumbers from both items and deleteditems, used by both the screen and CSV output - Adds the Delete action to the record's "Modification log" link so deletions are shown by default Test plan: 1. Enable the CataloguingLog system preference 2. Find a record with at least two items and edit one of them 3. Delete that item 4. On the record's detail page, click "Modification log" 5. Note the deleted item's modification is not listed, and the Delete action is not checked 6. Check Delete and click Submit (depends on bug 44264) 7. Note the item's modification and deletion are still not listed 8. Apply patch 9. Repeat step 4 10. Note the Delete action is checked and the deleted item's modification and deletion are both listed 11. Export the log as CSV and confirm the same entries are included 12. Search with the deleted item's itemnumber as Object and confirm its logs are still found as before Sponsored-by: CLAMS Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44268 Brendan Lawlor <blawlor@clamsnet.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44268 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44268 --- Comment #2 from David Nind <david@davidnind.com> --- Created attachment 212590 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212590&action=edit Bug 44268: Show logs for deleted items in a record's modification log When the log viewer is opened with object_type=biblio, it includes item-level CATALOGUING logs for the record's items. The list of itemnumbers was built from the record's current items only, so once an item was deleted, all of its logs (add, modify and delete) disappeared from the record's modification log. This patch: - Adds a helper in tools/viewlog.pl that collects itemnumbers from both items and deleteditems, used by both the screen and CSV output - Adds the Delete action to the record's "Modification log" link so deletions are shown by default Test plan: 1. Enable the CataloguingLog system preference 2. Find a record with at least two items and edit one of them 3. Delete that item 4. On the record's detail page, click "Modification log" 5. Note the deleted item's modification is not listed, and the Delete action is not checked 6. Check Delete and click Submit (depends on bug 44264) 7. Note the item's modification and deletion are still not listed 8. Apply patch 9. Repeat step 4 10. Note the Delete action is checked and the deleted item's modification and deletion are both listed 11. Export the log as CSV and confirm the same entries are included 12. Search with the deleted item's itemnumber as Object and confirm its logs are still found as before Sponsored-by: CLAMS Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44268 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com Attachment #212571|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44268 --- Comment #3 from David Nind <david@davidnind.com> --- Testing notes (using KTD): 1. Step 6: before doing this I applied the dependent bug 2. Step 12: Used the log viewer tool: Tools > Additional tools > Log viewer -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44268 Brendan Lawlor <blawlor@clamsnet.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=44266 --- Comment #4 from Brendan Lawlor <blawlor@clamsnet.org> --- Thanks for testing David! -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org