Bug 36498

Summary: Allow ability to set display order when adding an item group from item editor
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: CatalogingAssignee: Lucas Gass (lukeg) <lucas>
Status: Needs documenting --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: david, fridolin.somers, m.de.rooy
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
This enhancement to item groups allows you to set the order for item groups created when adding a new item. To do this: 1. Scroll down to the 'Add to item group section' at the bottom of the add item form. 2. For the options field, select 'Create new item group'. 3. Add a new group name. 4. Add a number to the new 'Display order' field to set the order. Previously, the order of the groups could only be changed from the item groups tab on the record details page. (To use the item groups feature, enable the EnableItemGroups system preference.)
Version(s) released in:
24.11.00,24.05.02
Circulation function:
Bug Depends on: 33639    
Bug Blocks:    
Attachments: Bug 36498: Add ability to set item group display order from additem.tt
Bug 36498: Add ability to set item group display order from additem.tt
Bug 36498: Add ability to set item group display order from additem.tt
Bug 36498: Tidy cataloguing/additem.pl

Description Lucas Gass (lukeg) 2024-04-02 22:20:18 UTC
Currently you can make an item group from the add item screen but you cannot set the display order.
Comment 1 Lucas Gass (lukeg) 2024-04-02 22:40:19 UTC
Created attachment 164303 [details] [review]
Bug 36498: Add ability to set item group display order from additem.tt

To test:
1. Apply patch, restart_all
2. System preferences -> EnableItemGroups, set to 'Enable'.
3. Find a record and create at least 1 item group.
4. Go to Add item
5. Scroll to the bottom and look for 'Options' underneath 'Add to item group'
6. In the dropdown select 'Create new item group'
7. There should be fields for 'Name' and 'Display order'.
8. Make sure you can add a new item group with and without a display order set. If no display order is set it should default to 0.
9. Try to add a non numerical display order, you should not be able to.
Comment 2 David Nind 2024-04-03 07:40:59 UTC
Created attachment 164357 [details] [review]
Bug 36498: Add ability to set item group display order from additem.tt

To test:
1. Apply patch, restart_all
2. System preferences -> EnableItemGroups, set to 'Enable'.
3. Find a record and create at least 1 item group.
4. Go to Add item
5. Scroll to the bottom and look for 'Options' underneath 'Add to item group'
6. In the dropdown select 'Create new item group'
7. There should be fields for 'Name' and 'Display order'.
8. Make sure you can add a new item group with and without a display order set. If no display order is set it should default to 0.
9. Try to add a non numerical display order, you should not be able to.

Signed-off-by: David Nind <david@davidnind.com>
Comment 3 Kyle M Hall (khall) 2024-05-17 10:34:18 UTC
Created attachment 166883 [details] [review]
Bug 36498: Add ability to set item group display order from additem.tt

To test:
1. Apply patch, restart_all
2. System preferences -> EnableItemGroups, set to 'Enable'.
3. Find a record and create at least 1 item group.
4. Go to Add item
5. Scroll to the bottom and look for 'Options' underneath 'Add to item group'
6. In the dropdown select 'Create new item group'
7. There should be fields for 'Name' and 'Display order'.
8. Make sure you can add a new item group with and without a display order set. If no display order is set it should default to 0.
9. Try to add a non numerical display order, you should not be able to.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 4 Kyle M Hall (khall) 2024-05-17 10:34:40 UTC
Created attachment 166884 [details] [review]
Bug 36498: Tidy cataloguing/additem.pl

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 5 Katrin Fischer 2024-06-27 12:06:31 UTC
Pushed for 24.11!

Well done everyone, thank you!
Comment 6 Lucas Gass (lukeg) 2024-07-19 15:25:51 UTC
Backported to 24.05.x for upcoming 24.05.02
Comment 7 Fridolin Somers 2024-07-22 09:52:05 UTC
I prefere not to add to oldstable 23.11.x