Koha/t/db_dependent/api/v1
Tomas Cohen Arazi 21ebede0de
Bug 33974: Make biblioitem columns searchable in a generic way
This patch makes biblioitem attributes be searchable on the biblios
endpoint. It does so by using the new method in Koha::Biblios, and by
adjusting objects.search(_rs) to accept a $query_fixer arrayref of
functions to be applied to each query or order_by parameters.

The result is cleaner code to write, but complex internals.

To test:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/biblios.t
=> SUCCESS: Tests pass! Searching for biblioitem attributes works on the
API!
3. Sign off :-D

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 353f328ad3)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2023-07-17 16:21:30 +01:00
..
acquisitions_baskets.t
acquisitions_funds.t
acquisitions_orders.t
acquisitions_vendors.t
advanced_editor_macros.t
article_requests.t
auth.t
auth_authenticate_api_request.t
auth_basic.t
authorised_values.t
authorities.t Bug 33996: Add missing authority objects mapping 2023-07-17 15:45:59 +01:00
biblios.t Bug 33974: Make biblioitem columns searchable in a generic way 2023-07-17 16:21:30 +01:00
cashups.t
checkouts.t
cities.t
clubs_holds.t
erm_agreements.t
erm_documents.t
erm_eholdings_packages.t
erm_eholdings_resources.t
erm_eholdings_titles.t
erm_licenses.t
erm_users.t
holds.t
idp.t
ill_backends.t
ill_requests.t
import_batch_profiles.t
import_record_matches.t
item_groups.t
items.t
jobs.t Bug 33852: Add one more test 2023-07-12 08:10:01 +01:00
libraries.t
oauth.t
pagination.t
password_validation.t
patrons.t
patrons_accounts.t
patrons_extended_attributes.t
patrons_holds.t Bug 33573: Unit tests 2023-07-17 15:56:46 +01:00
patrons_password.t
patrons_password_expiration.t
query.t
return_claims.t
search_filters.t
smtp_servers.t
stockrotationstage.t
suggestions.t
ticket_updates.t
tickets.t
transfer_limits.t
two_factor_auth.t
unhandled_exceptions.t