[Bug 42306] New: After editing an item the redirect to the add item form is unintuitive
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42306 Bug ID: 42306 Summary: After editing an item the redirect to the add item form is unintuitive 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 To recreate: - Go to a record detail page - Click 'Edit' on any item on the record - Edit the item and click 'Save changes' - You are redirected to a 'Add item' page for that record: additem.pl?biblionumber=1 Should the button act like a 'Save and continue' button and take me back to the edit page of that particular item? additem.pl?op=edititem&biblionumber=1&itemnumber=1#edititem Editing a bib record takes you back to the Details page for the record like? detail?biblionumber=x So I could also see it could making sense to take users to the details page for that item like: moredetail.pl?biblionumber=1#item1 Or possibly a split button where Save takes you to the view of the item record but there is also an option to Save and continue, which would keep you on the item's editing page. This would be consistent with the save button on bib records and also the design pattern mentioned in bug 40191 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42306 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42306 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |michaela.sieber@kit.edu -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42306 Eileen Chandler <echandler@clamsnet.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |echandler@clamsnet.org --- Comment #1 from Eileen Chandler <echandler@clamsnet.org> --- This glitch is causing a lot of confusion here at the CLAMS consortium for all staff who create and edit items. The view should default back to the Bibliographic record with the options listed in the bug description. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42306 Michelle Spinney <mspinney@clamsnet.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mspinney@clamsnet.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42306 Brendan Lawlor <blawlor@clamsnet.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |blawlor@clamsnet.org |ity.org | Status|NEW |Needs Signoff Comma delimited| |CLAMS list of Sponsors| | Patch complexity|--- |Small patch Sponsorship status|--- |Sponsored -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42306 --- Comment #2 from Brendan Lawlor <blawlor@clamsnet.org> --- Created attachment 212326 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212326&action=edit Bug 42306: Add split save button when editing an item Adding items and editing items share additem.pl and additem.tt After editing an existing item and clicking 'Save changes', you would end up on the 'Add item form' which was confusing. This patch replaces 'Save changes' with a split 'Save' button, like the one in the bibliographic record editor and the pattern from bug 40191: - Save (Default) => go to catalogue/detail.pl for the record - Save and view record => same as default - Save and view item => go to catalogue/moredetail.pl for the item - Save and continue editing => go to 1. Go to a bib record's detail page and click 'Edit' on any item 2. Make a change (e.g. public note) and click 'Save changes' 3. Note you land on the 'Add item' form for the record (additem.pl?biblionumber=X), not on the item you just edited 4. Apply patch, restart_all 5. Edit the item again => Note the 'Save changes' button is now a split 'Save' button 6. Make a change and click 'Save' => You are taken to the record's detail page (detail.pl), holdings tab, and the change is shown in the holdings table 7. Edit the item again, make a change, open the dropdown next to 'Save' and choose 'Save and continue editing' => You stay on the 'Edit item #N' form for the same item, and the change is shown in the form 8. Refresh the page => The browser does not ask to resubmit the form and the change is still there 9. Make a change and choose 'Save and view record' => Same as step 6 10. Edit the item again, make a change, and choose 'Save and view item' from the dropdown => You are taken to the item details page (moredetail.pl), scrolled to the item you edited, and the change is shown 11. Edit the item, leave a mandatory subfield empty and try each save option => The usual 'mandatory fields' alert appears and nothing is saved 12. Error handling: edit the item and enter a barcode that already exists on another item, then click 'Save' => 'Barcode must be unique' warning is shown and you remain on the 'Edit item #N' form (previously the form switched to 'Add item') 13. Serials: enable 'Create an item record when receiving this serial' on a subscription, receive an issue so it has a linked item, then edit that item from the record a. Click 'Save' => The 'Edit serial issue' modal appears b. Click 'Save item without editing serial issue' => You are taken to the record's detail page c. Edit again, choose 'Save and continue editing', then 'Save item without editing serial issue' => You stay on the item edit form d. Edit again, click 'Save', then 'Edit serial issue' => You are taken to serials-edit.pl as before 14. Run the Cypress tests: yarn cypress run --spec t/cypress/integration/Cataloguing/EditItemSave_spec.ts => All tests pass 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=42306 --- Comment #3 from Brendan Lawlor <blawlor@clamsnet.org> --- Created attachment 212327 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212327&action=edit Bug 42306: Add Cypress tests for item editor split save button Run yarn cypress run --spec t/cypress/integration/Cataloguing/EditItemSave_spec.ts 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=42306 --- Comment #4 from Brendan Lawlor <blawlor@clamsnet.org> --- Posting this for feedback about the split Save button default and options. # Notes: - A successful save now redirects to a new page (post/redirect/get) instead of rendering the page in the POST response, so refreshing no longer re-submits the form. - On a save error (for example duplicate barcode), the form now stays in 'Edit item #N' mode. Before, it switched to 'Add item' and kept the edited item's values in it. - Cypress spec run in KTD: 5/5 passing (Save, Save and view item, Save and continue editing, error path stays in edit mode, Save and view record). - The serial-linked item path (step 13) is not covered by Cypress; test it by hand. - Question: is there a screen that opens the item editor with `popup=1`? If so, add a step to check that it isn't broken. # Possible follow-up bugs to file: - Move the 'Add a new item' button out of the edit form's action fieldset and into a toolbar above the items table on additem.pl. Where it is now, it looks like another way to save, and it throws away unsaved edits (and pops up a confirm dialog). There is no toolbar there yet, not consistent with other pages. - After 'Save' / 'Save and view record', detail.pl could scroll to or highlight the edited item in the holdings table. That would help on records with many items. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org