Bug 33545

Summary: Adding faceting to API result sets
Product: Koha Reporter: Martin Renvoize <martin.renvoize>
Component: REST APIAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P5 - low CC: dcook, pedro.amorim, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 22440    
Bug Blocks:    

Description Martin Renvoize 2023-04-17 15:01:02 UTC
Sometimes it would be great to have some additional data about the overall results returned by an api resultset query.

For example, if an API query returns a list of things that include a library they're attached to, it might be nice to be able to get a list of all libraries that appear in the resultset. (not just the current page).  This way, we could display a select filter of just the libraries associated with the current api request to allow further filtering.. i.e. facetting.

We floated the idea of x-koha-facets for requesting this, but we haven't yet come up with a good way to get this data or return it.
Comment 1 Martin Renvoize 2023-05-05 11:09:52 UTC
The `status+strings` embed option in ILLBackends as actually really a facet.. we should move it to a new syntax once we've agreed upon it asap.