feat(facets): closed vocabularies with synonyms, declared on the Resources page #59
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/52-facet-vocabularies"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #52 (step 2 of 3)
Facet vocabularies (
src/lib/facets.ts)values: canonical values, given as texts or as{ value, synonyms }. Limits: 500 values, 20 synonyms each, 80 characters.canonicalFacetValue(facet, raw): a synonym gives its value, an unknown value of a closed vocabulary givesundefined; an open facet gives the value trimmed.canonicalFacetValues(source, facets)→{ values, rejected }: what ingestion and curation write, and what they show the curator as set aside.facetVocabularies(facets): the closed vocabularies, forwriteStudioDocument(document, { vocabularies }).Resources page
north: northern, N).facetswith the rest, whole: the facets already declared are loaded into it, so saving keeps them.Docs: Facets section in
docs/DOCUMENT-PROFILE.md(EN, FR), thefacetssetting indocs/MULTI-TENANCY.md(EN, FR), README.Not in this PR: calling
canonicalFacetValuesin the curation route and the ingestion queue (rewritten for tenants in 4a and 4b).Checks:
yarn test216/216 (10 new).yarn buildpasses.tsc --noEmit: the same 11 errors as ondevelop. The page was not tried in a browser.🤖 Generated with Claude Code