Bug 41108

Summary: Scroll to form when using "Add and duplicate" button to duplicate the item
Product: Koha Reporter: Peter Vashchuk <stalkernoid>
Component: CirculationAssignee: Peter Vashchuk <stalkernoid>
Status: Failed QA --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: aleisha, gmcharlt, kyle, miapaisnel
Version: unspecifiedKeywords: Academy
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 41108: Scroll to form on use of "Add and duplicate" button

Description Peter Vashchuk 2025-10-27 14:45:56 UTC
One of our customers wants to access the "Add item" form directly after clicking "Add and duplicate" without having to use "Jump to form" repeatedly.
Comment 1 Peter Vashchuk 2025-10-27 14:47:53 UTC
Created attachment 188477 [details] [review]
Bug 41108: Scroll to form on use of "Add and duplicate" button

This patch gets you to the Add item form directly after you press "Add and duplicate" button to duplicate the item.

Steps to reproduce:
1. Find a biblio with many items or make one yourself.
2. Use the "New" dropdown and go to the add item interface.
3. Use "Add and duplicate" button to duplicate the item.
4. Apply the patch.
5. Reload the page and use "Add and duplicate" button to duplicate the item again. It should take you to the Add item form directly.
Comment 2 Mia 2026-01-21 20:58:14 UTC
It didn't scroll me down to the form when I press the add and duplicate on the bottom of the page. If I press on the duplicate button (actions->duplicate on item) it does scroll.