Commit 494951fb authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Remove obsolete update institution name

parent bc48006a
...@@ -25,19 +25,6 @@ class UpdateQueryBuilder { ...@@ -25,19 +25,6 @@ class UpdateQueryBuilder {
private val institutionFacetTerm = "institution.facet" private val institutionFacetTerm = "institution.facet"
private val recordSetFacetTerm = "recordSet.facet" private val recordSetFacetTerm = "recordSet.facet"
fun updateInstitutionName(institution: String, names: LanguageContainer): UpdateQuery {
return UpdateQuery(
institutionFacetTerm,
institution,
"ctx._source['institution'][0]['name']['de'] = params.de; ctx._source['institution'][0]['name']['fr'] = params.fr; ctx._source['institution'][0]['name']['it'] = params.it",
mapOf(
Pair("de", names.de[0]),
Pair("fr", names.fr[0]),
Pair("it", names.it[0])
)
)
}
fun updateRecordSetName(recordSet: String, names: LanguageContainer): UpdateQuery { fun updateRecordSetName(recordSet: String, names: LanguageContainer): UpdateQuery {
return UpdateQuery( return UpdateQuery(
recordSetFacetTerm, recordSetFacetTerm,
......
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