Commit 235805bb authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Record Set isPublished renamed to published

parent 85197517
Pipeline #24659 passed with stages
in 5 minutes and 8 seconds
......@@ -22,7 +22,6 @@ import ch.memobase.rdf.DC
import ch.memobase.rdf.MB
import ch.memobase.rdf.NS
import ch.memobase.rdf.RDA
import ch.memobase.rdf.RDF
import ch.memobase.rdf.RICO
import ch.memobase.rdf.RICO.Types.RecordSet
import com.beust.klaxon.JsonArray
......@@ -164,7 +163,7 @@ class RecordSetSearchDocBuilder(private val elasticSearchWrapper: ElasticSearchW
return RecordSetSearchDoc(
recordSetId = id,
isPublished = recordSet[KEYS.isPublished].let {
published = recordSet[KEYS.isPublished].let {
when (it) {
is Boolean -> it
is String -> it.toBoolean()
......
......@@ -25,7 +25,7 @@ import com.fasterxml.jackson.annotation.JsonInclude
data class RecordSetSearchDoc(
@JsonIgnore
val recordSetId: String,
val isPublished: Boolean,
val published: Boolean,
val name: LanguageContainer,
// Display
......@@ -74,7 +74,7 @@ data class RecordSetSearchDoc(
val DEFAULT = RecordSetSearchDoc(
recordSetId = "NoRecordSetId",
name = LanguageContainer.placeholder("TEST_RECORD_SET"),
isPublished = false,
published = false,
documentType = listOf(
FacetContainer(
LanguageContainer.placeholder("TEST DOCUMENT TYPE"),
......
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