v0.2.13: Collection-scoped search and routable browse slugs
Collection-scoped search and routable browse slugs
Completes the browse-to-search workflow: browse_collections slugs now round-trip to their LOC routes, and search can scope to one collection.
Added:
collection_slugonlibofcongress_search— scopes a search to one curated collection via the LOC/collections/{slug}/endpoint, which takes the same query string and returns the same envelope;enrichment.effectiveCollectionSlugechoes the applied scope (#35)incompatible_filtersrejectsformat+collection_slugbefore any request — each selects a different LOC base pathcollection_not_foundnames an unrecognized slug and points recovery atlibofcongress_browse_collections
Fixed:
libofcongress_browse_collectionsreturns the routable slug — extraction takes the first path segment after/collections/rather than anchoring to the end of the URL, which missed the/about-this-collection/subpath LOC returns on every browse result and fell back to a title-derived slug (#37)libofcongress_browse_collectionspopulatesitem_countfrom the upstream top-levelcount, typeof-guarded so a genuinecount: 0survives (#32)normalizePaginationfalls back toresultsonly when it is numeric — LOC sends a display range ("1 - 3") under that numeric-sounding key- README and
docs/design.mddescribecollection_slugin place of apartoffacet, which returns zero results
190 tests pass; bun run devcheck clean.