Bug 19686: (follow-up) Add to_api param for completeness
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 17 Jan 2018 17:33:33 +0000 (14:33 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 16 Feb 2018 17:05:20 +0000 (14:05 -0300)
commitae7f0ae4b51ec1b9cba2643a580d4bb622cd60b9
treeae4db2c39da4e8875dcc4f1705cc903a9756a94b
parent4bd62d0a8c5f78d31ef12fdca856af76bdf13809
Bug 19686: (follow-up) Add to_api param for completeness

This patch adds (yet) another param to objects.search: a reference
to a to_api function to be applied when processing the search results
for output.

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/REST/Plugin/Objects.t
=> SUCCESS: Test count raised, and tests pass!
- Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/Plugin/Objects.pm
t/db_dependent/Koha/REST/Plugin/Objects.t