Commit 23f6a6e4 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Fix minor bug with access institution.

parent aef96f62
Pipeline #22709 passed with stages
in 5 minutes and 9 seconds
...@@ -76,7 +76,7 @@ class RecordSetSearchDocBuilder(private val elasticSearchWrapper: ElasticSearchW ...@@ -76,7 +76,7 @@ class RecordSetSearchDocBuilder(private val elasticSearchWrapper: ElasticSearchW
relatedDocumentTitles = relatedDocumentTitles.add(it[RICO.title.localName]) relatedDocumentTitles = relatedDocumentTitles.add(it[RICO.title.localName])
} }
} }
it[KEYS.atType] == RICO.RecordResourceHoldingRelation it[KEYS.atType] == RICO.RecordResourceHoldingRelation.uri
&& it[RICO.type.localName] == RICO.Types.RecordResourceHoldingRelation.access -> { && it[RICO.type.localName] == RICO.Types.RecordResourceHoldingRelation.access -> {
val value = it[RICO.recordResourceHoldingRelationHasSource.localName] as String val value = it[RICO.recordResourceHoldingRelationHasSource.localName] as String
val id = value.substringAfterLast("/") val id = value.substringAfterLast("/")
......
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