Bug 31451

Summary: Can the display order be applied incrementally for item groups
Product: Koha Reporter: Kelly McElligott <kelly>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: hebah, lucas, m.de.rooy, mnero
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Kelly McElligott 2022-08-24 15:30:03 UTC
When creating an item group, we can assign the display order.  When assigning the display order, could Koha add the display order incrementally?  If a library has Item Group A, Display order 1, Item Group B, Display order 2. When the library creates a new group, Koha will incrementally add display 3 automatically would be nice.
Comment 1 Lucas Gass (lukeg) 2024-04-02 22:54:59 UTC
Incrementally, as in find the highest current display order for that particular record and increment by 1? 

Right now I can set this to any number. So I can have:

Item Group A, Display Order 1
Item Group B, Display Order 44

In which case, if a Display Order is not explicitly set, the next one should be Display Order 45?
Comment 2 Miranda Nero 2024-04-03 20:45:09 UTC
I would like to see it go +1 from the highest display order set. My initial thought was to take the number of item groups and add 1, but in a case where we've deleted some of the earlier issues of a periodical, the earliest item group remaining might start at display order 20 and go to 40. The number of item groups would be 21 and that would put the next display order at 22 in the middle of the existing ones.