]> git.koha-community.org Git - koha.git/commit
Bug 31306: Add search_ordered sub to order items with extra conditions
authorPetro Vashchuk <stalkernoid@gmail.com>
Mon, 18 Jul 2022 09:47:21 +0000 (12:47 +0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 9 Aug 2022 14:59:30 +0000 (11:59 -0300)
commit999014d3e84d1489049be21193e55609362c6200
tree302b9093a657d04efee743e7c5dbb08e4db3a406
parent4b9179b0d59065992b15c2438cf50465dae0f3f8
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

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Items.pm