Repository navigation
Add a search field to the publications page - #39
Open
medalkilic wants to merge 1 commit into
Open
medalkilic wants to merge 1 commit into
medalkilic wants to merge 1 commit into
Conversation
The filter bar of the publications gets a search field that finds entries by author, title or DOI: every word has to appear in the title, the reference or the DOI, ignoring case and accents. It combines with the category and year filters, shows all hits of a year while it is in use, and is kept in the hash (#q=...) so a search can be linked. Closes #36
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The publications page gets a search field in its filter bar that finds publications by author, title or DOI, without going through the site-wide search.
Closes #36
What
/publikationen/and/en/publications/(_includes/listing-filter.html, only forkind="publications"). Placeholder "Autor*in, Titel oder DOI" / "Author, title or DOI".initListingFilter()inassets/js/main.js): every word has to appear in the entry's title, reference line (all authors, venue) or DOI. Case and accents are ignored, somulleralso finds "Müller". The abstract is not searched, so a name or term that only appears there does not produce hits./publikationen/#q=praschlor#cat=ml&q=krauss.Not verified / assumptions
listing-filter.html, if wanted.mueller) do not match "ü/ö/ä";mullerandmüllerdo.Testing
jekyll servebuilds without errors (only the usual Pagefind 404s locally).praschl→ 57 hits), several words (praschl wildlife→ 12), DOI prefix (10.1007→ 20),mullerwithout umlaut, no hits (0 von 238), clearing the field, a search together with a category, and restoring#cat=ml&q=kraussfrom the URL.Screenshots
Search together with the other filters (
praschl wildlife)Mobile
Closes #36