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

Adds genres to gloabl search #3185

Merged
merged 5 commits into from
Jul 21, 2024
Merged

Adds genres to gloabl search #3185

merged 5 commits into from
Jul 21, 2024

Conversation

mikiher
Copy link
Contributor

@mikiher mikiher commented Jul 21, 2024

Fixes #2937

This adds genres to the global search dropdown (for both Books and Podcast libraries).

Since the number of results in the dropdown is limited, I also added "ORDER By numItems DESC" to the tags and genres search queries, so we return the most useful ones first.

I chose "category" from the material symbols to denote genres. Please feel free to replace this with anything else.

@mikiher mikiher marked this pull request as ready for review July 21, 2024 08:17
@mikiher
Copy link
Contributor Author

mikiher commented Jul 21, 2024

Also fixed missing encodeURIComponent on the query (which caused ampersand in query not to be handled correctly), in both GlobalSearch.vue and pages/.../_library/search.vue

@advplyr
Copy link
Owner

advplyr commented Jul 21, 2024

Thanks! I think that icon makes sense for genres

@advplyr advplyr merged commit 604ae08 into advplyr:master Jul 21, 2024
5 checks passed
@mikiher mikiher deleted the genre-search branch July 21, 2024 18:05
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

Successfully merging this pull request may close these issues.

[Enhancement] Include Genre in global library search
2 participants