Skip to content

Search books

Yannis Barlas requested to merge search-books into develop

This adds search functionality to the books & collections tab in the dashboard.
That is only for the page after you've selected an org, as the one before you've selected an org doesn't seem to respond to my changes. (it is probably a different component? 😢)

Search will look for either the title or the BCMS id.
For the BCMS id 1 and bcms1 (in any form of capitalization) are equivalent.

Filter for books without chapters does not work in this MR, as it doesn't seem to be an explicit type and therefore needs some extra discussion. Filtering by book or collection otherwise works as expected.

Changes to the search service:

  • You can add a criterion with an or key, which accepts an array of criteria (of the same structure as before)
  • It is otherwise 100% compatible with how it worked before this MR and none of the existing queries should need changes

Merge request reports