[Koha-bugs] [Bug 19234] Add query parameters handling helpers

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Sep 26 16:57:23 CEST 2017


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

--- Comment #17 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Kyle, Martin, I have simplified this plugin, making it only extract reserved
params from the query, and providing a 'cleaned up' attributes hash.

The commit message should be clear on how this is supposed to be used.

New helpers could be added in order to:
- Merge pagination params into $filter (for DBIC's ->search)
- Generate DBI'c search query based on _match and the received params.
- Handle order_by, this is important because we could add some reflection to
Koha::Objects (or DBIC in order to have them say what columns can be used for
sorting)

Please give this a try ASAP so I move on on top of this.
Thanks in advance!

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


More information about the Koha-bugs mailing list