Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
290 changes: 258 additions & 32 deletions source/vocab/display.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"@base": "https://id.kb.se/vocab/display",
"@vocab": "https://id.kb.se/vocab/",
"marc": "https://id.kb.se/marc/",
"librissearch": "https://id.kb.se/ns/librissearch/",
"lensGroups": {"@id": "@graph", "@container": "@index"},
"lenses": {"@reverse": "fresnel:group", "@container": "@index"},
"showProperties": {"@id": "fresnel:showProperties", "@container": "@list", "@type": "@vocab"},
Expand Down Expand Up @@ -795,7 +796,6 @@
"summary",
"immediateAcquisition",
"availability",
"shelfLabel",
{ "inverseOf": "itemUsed" },
{ "inverseOf": "hasComponent" }
]
Expand Down Expand Up @@ -1457,43 +1457,151 @@
"@id": "search-tokens",
"@type": "fresnel:Group",
"lenses": {
"Creation": {
"bibdb:Organization": {
"@type": "fresnel:Lens",
"classLensDomain": "Creation",
"classLensDomain": "bibdb:Organization",
"showProperties": [ "name", "code" ]
},
"Bibliography": {
"@type": "fresnel:Lens",
"classLensDomain": "Bibliography",
"showProperties": [ "name", "qualifier", "sigel" ]
},
"Concept": {
"@type": "fresnel:Lens",
"classLensDomain": "Concept",
"showProperties": [
{"alternateProperties": ["prefLabel", "singularLabel", "label", "termComponentList", "code"]}
]
},
"Instance": {
"@type": "fresnel:Lens",
"classLensDomain": "Instance",
"showProperties": [
"hasTitle",
{
"alternateProperties": [
{
"@type": "fresnel:fslselector",
"@value": "hasTitle/KeyTitle/mainTitle"
},
{
"@type": "fresnel:fslselector",
"@value": "hasTitle/Title/mainTitle"
},
{
"@type": "fresnel:fslselector",
"@value": "hasTitle/*/mainTitle"
}
]
"@type": "fresnel:fslselector",
"@value": "identifiedBy/*/value"
},
{
"@type": "fresnel:fslselector",
"@value": "describedBy/*/controlNumber"
}
]
},
"Work": {
"@type": "fresnel:Lens",
"classLensDomain": "Work",
"showProperties": [
"hasTitle"
]
},
"Language": {
"@type": "fresnel:Lens",
"classLensDomain": "Language",
"showProperties": [
"prefLabel",
"label",
"code"
]
},
"Library": {
"@type": "fresnel:Lens",
"classLensDomain": "Library",
"showProperties": [ "name", "qualifier", "sigel" ]
},
"Family": {
"@type": "fresnel:Lens",
"classLensDomain": "Family",
"showProperties": [ "name", "marc:titlesAndOtherWordsAssociatedWithAName", "lifeSpan" ]
},
"Jurisdiction": {
"@type": "fresnel:Lens",
"classLensDomain": "Jurisdiction",
"showProperties": [ "name", "isPartOf", "marc:subordinateUnit" ]
},
"Meeting": {
"@type": "fresnel:Lens",
"classLensDomain": "Meeting",
"showProperties": [
"name",
"marc:numeration",
"date",
{
"@type": "fresnel:fslselector",
"@value": "place/*/label"
}
]
},
"Organization": {
"@type": "fresnel:Lens",
"classLensDomain": "Organization",
"showProperties": [ "name", "isPartOf", "marc:subordinateUnit" ]
},
"Person": {
"@type": "fresnel:Lens",
"classLensDomain": "Person",
"showProperties": [
"givenName",
"familyName",
"name"
"name",
"marc:numeration",
"lifeSpan",
"marc:titlesAndOtherWordsAssociatedWithAName",
"fullerFormOfName"
]
},
"Library": {
"SeriesMembership": {
"@type": "fresnel:Lens",
"classLensDomain": "Library",
"classLensDomain": "SeriesMembership",
"showProperties": [
"name",
"qualifier"
"inSeries",
{
"@type": "fresnel:fslselector",
"@value": "inSeries/*/instanceOf/*/hasTitle"
},
"seriesStatement",
"seriesEnumeration"
]
},
"TableOfContents": {
"classLensDomain": "TableOfContents",
"showProperties": [
"label",
{
"fresnel:property": "hasPart",
"fresnel:subLens": {
"showProperties": [
"label",
"responsibilityStatement",
"comment"
]
}
}
]
},
"Title": {
"@type": "fresnel:Lens",
"classLensDomain": "Title",
"showProperties": [
"mainTitle",
"qualifier",
"title",
"subtitle",
"titleRemainder",
"partNumber",
"partName",
"hasPart",
{
"fresnel:property": "hasPart",
"fresnel:subLens": {
"showProperties": [
"partNumber",
"partName"
]
}
},
"marc:parallelTitle"
]
}
}
Expand All @@ -1502,20 +1610,64 @@
"@id": "search-chips",
"@type": "fresnel:Group",
"lenses": {
"Record": {
"fresnel:extends": {"@id": "Record-chips"},
"showProperties": [ "fresnel:super", "bibliography", "created" ]
},
"Item": {
"fresnel:extends": {"@id": "Item-chips"},
"showProperties": [
"fresnel:super",
"subject",
"summary",
"hasComponent",
"availability",
"physicalLocation",
"shelfLabel"
{
"fresnel:mergeProperties": [
"cataloguersNote",
"custodialHistory",
{
"@type": "fresnel:fslselector",
"@value": "summary/*/label"
},
{
"@type": "fresnel:fslselector",
"@value": "hasNote/*/label"
},
{
"@type": "fresnel:fslselector",
"@value": "marc:hasCopyAndVersionIdentificationNote/*/marc:itemCondition"
},
{
"@type": "fresnel:fslselector",
"@value": "marc:hasBindingInformation/*/label"
},
{
"@type": "fresnel:fslselector",
"@value": "marc:hasTextualHoldingsBasicBibliographicUnit/*/marc:cataloguersNote"
},
{
"@type": "fresnel:fslselector",
"@value": "marc:hasTextualHoldingsBasicBibliographicUnit/*/marc:publicNote"
}
],
"fresnel:use": "librissearch:itemNote"
},
{
"fresnel:mergeProperties": [
"shelfLabel",
"physicalLocation",
"shelfControlNumber",
{
"@type": "fresnel:fslselector",
"@value": "shelfMark/*/label"
},
{
"@type": "fresnel:fslselector",
"@value": "availability/*/label"
}
],
"fresnel:use": "librissearch:shelf"
},
{
"@type": "fresnel:fslselector",
"@value": "meta/*/created"
}
]
},
"Person": {
Expand Down Expand Up @@ -1561,6 +1713,20 @@
"classLensDomain": "ToCEntry",
"fresnel:extends": {"@id": "ToCEntry-chips"},
"showProperties": [ "fresnel:super", "responsibilityStatement" ]
},
"Publication": {
"classLensDomain": "Publication",
"fresnel:extends": {"@id": "Publication-chips"},
"showProperties": [
"fresnel:super",
{
"fresnel:mergeProperties": [
"year",
"startYear"
],
"fresnel:use": "librissearch:year"
}
]
}
}
},
Expand All @@ -1573,7 +1739,7 @@
"showProperties": [
"fresnel:super",
"appliedMaterial",
"basematerial",
"baseMaterial",
"bookFormat",
"colorContent",
"hasNote",
Expand All @@ -1587,7 +1753,11 @@
"summary",
"tableOfContents",
"videoCharacteristic",
"image"
"image",
{
"@type": "fresnel:fslselector",
"@value": "meta/*/bibliography"
}
]
},
"Item": {
Expand Down Expand Up @@ -1633,6 +1803,62 @@
}
}
},
"top-search-tokens": {
"@id": "top-search-tokens",
"@type": "fresnel:Group",
"lenses": {
"Agent": {
"@type": "fresnel:Lens",
"classLensDomain": "Agent",
"showProperties": [
{
"alternateProperties": [
"name",
"label"
]
}
]
},
"Person": {
"@type": "fresnel:Lens",
"classLensDomain": "Person",
"showProperties": [
"givenName",
"familyName",
"name"
]
},
"Creation": {
"@type": "fresnel:Lens",
"classLensDomain": "Creation",
"showProperties": [
{
"alternateProperties": [
{
"@type": "fresnel:fslselector",
"@value": "hasTitle/KeyTitle/mainTitle"
},
{
"@type": "fresnel:fslselector",
"@value": "hasTitle/Title/mainTitle"
},
{
"@type": "fresnel:fslselector",
"@value": "hasTitle/*/mainTitle"
}
]
}
]
},
"Language": {
"@type": "fresnel:Lens",
"classLensDomain": "Language",
"showProperties": [
{ "alternateProperties": ["prefLabel", "label", "code"] }
]
}
}
},
"formatters": {
"termComponentList-format": {
"TODO": "fix vue-client and remove me",
Expand Down Expand Up @@ -2101,4 +2327,4 @@
}
}
}
}
}
Loading