Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app-rdm: overwrite /search endpoint to view dublin-core/search instead #2

Open
utnapischtim opened this issue Sep 27, 2023 · 0 comments

Comments

@utnapischtim
Copy link
Contributor

utnapischtim commented Sep 27, 2023

The global search makes it possible to search over all data model (rdm, marc21, lom) and maybe others (communities) too. app-rdm creates per default the /search as the rdm-records search. Which is normally perfect, but for that special case not good. The global search should be on /search and the special searches on special enpoints

/search -> global search (which is dublin-core)
/rdm/search -> rdm-records
/marc21/search-> marc21
/lom/search-> lom

Solution:

overwrite SEARCH_UI_SEARCH_TEMPLATE and create a new endpoint for rdm/search which uses the original value for SEARCH_UI_SEARCH_TEMPLATE

an overwriting of /records is maybe not necessary. this has to be tested. because it exists /search could then get the response from /api/dublin-coreand /rdm/search gets the response from /api/records

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant