Commit 30282701 authored by Jonas Waeber's avatar Jonas Waeber

[WIP] Enriched Facet Containers

parent c020242d
......@@ -199,10 +199,14 @@ class DocumentsSearchDocBuilder(private val mediaUrl: String) {
placeFacet = placeFacetBuilder.build(),
rightsHolder = Extract.typedEntityByType(recordRules, "type", "holder", "name"),
memoriavClaim = record["P60451"] != null,
languageCaption = Extract.typedEntityByType(recordLanguages, "type", "caption", "name"),
languageContent = Extract.typedEntityByType(recordLanguages, "type", "content", "name"),
format = format,
language = Extract.facetEntity(recordLanguages, "name"),
genre = Extract.facetEntity(genre, "prefLabel"),
keywords = Extract.facetEntity(subjects, "prefLabel"),
personSubject = subjectPersonBuilder.build(),
......@@ -258,7 +262,6 @@ class DocumentsSearchDocBuilder(private val mediaUrl: String) {
usagePhysical = Extract.typedEntityByType(physicalRules, "type", "usage", "sameAs").flatMap { it.toList() },
callNumber = Extract.typedEntityByType(physicalIdentifiers, "type", "callNumber", "identifier")
.flatMap { it.toList() },
format = format,
published = (record[KEYS.isPublished] as Boolean?) ?: false,
suggest = suggestContainerBuilder.build()[0]
)
......
......@@ -35,3 +35,9 @@ object CarrierType {
}
}
}
object EnrichedFacetContainers {
}
\ No newline at end of file
package org.memobase.model
import com.fasterxml.jackson.annotation.JsonInclude
@JsonInclude(JsonInclude.Include.NON_EMPTY)
data class EnrichedFacetContainer(
val displayLabel: LanguageContainer,
val facetLabel: LanguageContainer,
val type: String?
)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment