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: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- 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.