[Koha-bugs] [Bug 24502] Add a query language and param (q=) to the API

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 21 08:21:56 CET 2020


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

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #99252|0                           |1
        is obsolete|                            |

--- Comment #30 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 99351
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99351&action=edit
Bug 24502: object.search also filter by prefetched columns

This patch adds the possibility to object.search helper, to also filter by
prefetched columns.

In order to dynamically add filter parameters, they must be coded as json and
placed in the body of the request, coded as string in 'q' query parameter or as
string in 'x-koha-query' header.

The coded json, is in fact dbix syntax.

To test:
1. apply this patch
2. prove t/Koha/REST/Plugin/Query.t t/db_dependent/Koha/REST/Plugin/Objects.t
3. Sign off

Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

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


More information about the Koha-bugs mailing list