Add a button to choose to query inventaire from search

This commit is contained in:
2026-01-29 18:25:16 +01:00
parent 9b90565b95
commit 27a9faf704
9 changed files with 63 additions and 21 deletions

View File

@@ -41,8 +41,8 @@ export function getMyBooks(data, error, arg, limit, offset) {
return useFetch(data, error, baseUrl + '/mybooks/' + arg + "?" + queryParams.toString());
}
export function getSearchBooks(data, error, searchterm, lang, limit, offset) {
const queryParams = new URLSearchParams({lang: lang, limit: limit, offset: offset});
export function getSearchBooks(data, error, searchterm, lang, searchInventaire, limit, offset) {
const queryParams = new URLSearchParams({lang: lang, inventaire: searchInventaire, limit: limit, offset: offset});
return useFetch(data, error, baseUrl + '/search/' + encodeURIComponent(searchterm) + "?" + queryParams.toString());
}