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.