[Koha-bugs] [Bug 31306] Add Koha::Items->search_ordered method

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 8 16:10:53 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31306

--- Comment #1 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 138806
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=138806&action=edit
Bug 31306: Add search_ordered sub to order items with extra conditions

Commit message from JD:
On bug 27272 we are going to replace C4::Items::GetItemsInfo with Koha::Items
methods, but we need to keep the existing behaviour that is:
Order by publisheddate, enumchron for searisl, or by homebranch.branchname,
enumchron, LPAD( copynumber, 8, '0' ), desc dateaccessioned

Test plan:
Confirm that the code from the new method makes sense
Run t/db_dependent/Koha/Items.t

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list