Closed keithbauer closed 1 year ago
Patch coverage: 100.00%
and project coverage change: -0.01%
:warning:
Comparison is base (
5c1b5d2
) 92.56% compared to head (58bb111
) 92.56%. Report is 5 commits behind head on develop.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
Correctly set the active search facet
Motivation and Context
My previous hacky attempt didn't actually set the
@opds:activeFacet
in the OPDS feed. I thought the URL would pick up on it and do some background magic, but it didn't look like it did.This now builds out a facet link by using
cls.facet_link
to ensure theactiveFacet
property is correctly set. But this generates a.../feed/...
URL and we want a.../search...
URL, so then we replace the href with whatannotator.search_url
builds before adding the facet to the OPDS feed.How Has This Been Tested?
More manual testing and verifying the search OPDS feed for the active facet is set through
+@opds:activeFacet: "true"
Checklist: