Commit 37c8c7ab authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Add teaser text field.

parent b9bee7ec
Pipeline #22701 failed with stages
in 2 minutes and 29 seconds
......@@ -34,7 +34,7 @@ ext {
dependencies {
compile group: 'org.elasticsearch.client', name: 'elasticsearch-rest-high-level-client', version: '7.6.1'
implementation 'org.memobase:memobase-service-utilities:2.0.14'
implementation 'org.memobase:memobase-service-utilities:2.0.15'
implementation 'org.apache.jena:apache-jena:3.14.0'
// Logging Framework
......
......@@ -19,6 +19,7 @@
package org.memobase
import ch.memobase.rdf.DC
import ch.memobase.rdf.MB
import ch.memobase.rdf.NS
import ch.memobase.rdf.RDA
import ch.memobase.rdf.RICO
......@@ -126,6 +127,7 @@ class RecordSetSearchDocBuilder(private val elasticSearchWrapper: ElasticSearchW
val scopeAndContent = extractLanguageContainer(recordSet[RICO.scopeAndContent.localName], "")
val conformsTo = extractLanguageContainer(recordSet[DC.conformsTo.localName], "")
val dataImport = extractLanguageContainer(recordSet[RICO.descriptiveNote.localName], "")
val teaserText = extractLanguageContainer(recordSet[MB.recordSetProcessedTeaserText.localName], "")
return RecordSetSearchDoc(
recordSetId = id,
......@@ -174,7 +176,8 @@ class RecordSetSearchDocBuilder(private val elasticSearchWrapper: ElasticSearchW
relatedPublications = publicationTitles,
relatedDocuments = relatedDocumentTitles,
dataImport = dataImport,
accessInstitution = accessInstitutions
accessInstitution = accessInstitutions,
teaserTest = teaserText
)
}
......
......@@ -31,6 +31,7 @@ data class RecordSetSearchDoc(
// Display
val keyVisualLink: String,
val numberOfDocuments: Int,
val teaserTest: LanguageContainer,
// Facets
val documentType: List<FacetContainer>,
val periodOfTimeAsYear: IntegerRange?,
......@@ -109,7 +110,8 @@ data class RecordSetSearchDoc(
relatedPublications = LanguageContainer.placeholder(placeholderTitle),
relatedDocuments = LanguageContainer.placeholder(placeholderTitle),
dataImport = LanguageContainer.placeholder(lorem),
accessInstitution = emptyList()
accessInstitution = emptyList(),
teaserTest = LanguageContainer.placeholder(lorem)
)
......
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