[Bug 44266] New: Include "Add" actions by default in the record's Modification log link
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44266 Bug ID: 44266 Summary: Include "Add" actions by default in the record's Modification log link 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: --- The "Modification log" link in the record view sidebar passes only actions=MODIFY and actions=RESTORE. Creating the record and adding items to it are only visible if the user then checks "Add" and resubmits, which also triggers the bug 44264. Including &actions=ADD by would make sense for the log viewer link from the bib record where &object_type=biblio is included. Then items added would be included in the first page load. Test plan 1. Create a new record and add an item to it. 2. Click "Modification log" on the record's detail page. 3. The record creation and the item addition are not shown. 4. Apply the patch. 5. Repeat step 2. The ADD entries for both the record and the item are listed, and the "Add" checkbox is checked. Proposed change: In biblio-view-menu.inc, add &actions=ADD to the Modification log link. Workaround until this is fixed (IntranetUserJS): $(document).ready(function () { $('a[href*="viewlog.pl"][href*="object_type=biblio"]').each(function () { var href = $(this).attr("href"); if (href.indexOf("actions=ADD") === -1) { $(this).attr("href", href + "&actions=ADD"); } }); if ($("#tools_viewlog").length) { var objectType = new URLSearchParams(window.location.search).get("object_type"); if (objectType) { $('#tools_viewlog form[action*="viewlog.pl"]').each(function () { if (!$(this).find('input[name="object_type"]').length) { $("<input>", { type: "hidden", name: "object_type", value: objectType }).appendTo(this); } }); } } }); -- 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=44266 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=44266 Brendan Lawlor <blawlor@clamsnet.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Comma delimited| |CLAMS list of Sponsors| | Status|NEW |Needs Signoff Patch complexity|--- |Trivial patch Sponsorship status|--- |Sponsored -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44266 --- Comment #1 from Brendan Lawlor <blawlor@clamsnet.org> --- Created attachment 212564 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212564&action=edit Bug 44266: Add action=ADD to bib record modification log link This patch makes it so add actions for bibs and items are loaded when viewing the modification log from the link in a bib record Test plan 1. Create a new record and add an item to it 2. Click "Modification log" on the record's detail page 3. The add actions for the bib and item are not shown 4. Apply the patch 5. Repeat step 2 => The ADD actions for both the bib and item are listed, and the "Add" checkbox is checked Sponsored-by: CLAMS -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44266 Brendan Lawlor <blawlor@clamsnet.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=44268 -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org