Skip to content

Add a search field to the publications page - #39

Open
medalkilic wants to merge 1 commit into
mainfrom
issue-36-publication-search
Open

medalkilic wants to merge 1 commit into
mainfrom
issue-36-publication-search

Conversation

@medalkilic

Copy link
Copy Markdown
Contributor

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

  • Search field at the start of the filter bar on /publikationen/ and /en/publications/ (_includes/listing-filter.html, only for kind="publications"). Placeholder "Autor*in, Titel oder DOI" / "Author, title or DOI".
  • Matching (initListingFilter() in assets/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, so muller also finds "Müller". The abstract is not searched, so a name or term that only appears there does not produce hits.
  • Combines with the existing filters: category and year still apply, and the counter shows "n von 238 Publikationen".
  • All hits visible: while a search is active, every year shows all its hits instead of two entries plus "show more"; clearing the field brings the usual view back.
  • Linkable: the search is kept in the URL hash like the other filters, e.g. /publikationen/#q=praschl or #cat=ml&q=krauss.
  • Mobile: the field sits on top of the stacked filter bar at full width.
  • README (Publications) and CLAUDE.md mention the search field.

Not verified / assumptions

  • Only the publications page gets the field, as the issue asks. The theses page could use the same field (search by student or title) with one line in listing-filter.html, if wanted.
  • Umlauts typed as "ue/oe/ae" (e.g. mueller) do not match "ü/ö/ä"; muller and müller do.
  • The site-wide Pagefind search is unchanged.

Testing

  • jekyll serve builds without errors (only the usual Pagefind 404s locally).
  • Checked on both language pages: author (praschl → 57 hits), several words (praschl wildlife → 12), DOI prefix (10.1007 → 20), muller without umlaut, no hits (0 von 238), clearing the field, a search together with a category, and restoring #cat=ml&q=krauss from the URL.
  • Desktop and mobile (375 px), no horizontal scrolling; the theses page has no search field and behaves as before. No console errors.

Screenshots

Search together with the other filters (praschl wildlife)

Publications page with a search for praschl wildlife

Mobile

Search field on mobile

Closes #36

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
@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.2

QR code for preview link

🚀 View preview at
https://aist.fh-hagenberg.at/pr-preview/pr-39/

Built to branch gh-pages at 2026-10-30 12:18 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

This branch has not been deployed

No deployments
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.

Publication page search bar

1 participant