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