Commit f0b1bed8 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Fix related documents transformation.

parent 19589574
Pipeline #21838 failed with stages
in 1 minute and 47 seconds
......@@ -284,13 +284,13 @@ class RdfTransformer(properties: Properties) {
// Currently each record link is added as a separate entity.
// 5.7 Dokumente (Titel)
// 5.8 Dokumente (Link)
input.field_publications_de.forEach { link ->
input.field_documents_de.forEach { link ->
addRelatedRecord(resource, model, link, "de", RICO.isRecordResourceAssociatedWithRecordResource)
}
input.field_publications_fr.forEach { link ->
input.field_documents_fr.forEach { link ->
addRelatedRecord(resource, model, link, "fr", RICO.isRecordResourceAssociatedWithRecordResource)
}
input.field_publications_it.forEach { link ->
input.field_documents_it.forEach { link ->
addRelatedRecord(resource, model, link, "it", RICO.isRecordResourceAssociatedWithRecordResource)
}
// 6.1 Datenübernahme
......
......@@ -106,9 +106,9 @@ data class RecordSet(
val field_publications_it: List<Link>,
/* 5.7 Verwandte Dokumente (Titel) */
/* 5.8 Verwandte Dokumente (Link) */
val field_documents_de: Link?,
val field_documents_fr: Link?,
val field_documents_it: Link?,
val field_documents_de: List<Link>,
val field_documents_fr: List<Link>,
val field_documents_it: List<Link>,
/* 6.1 Datenübernahme */
val field_data_transfer_de: RichText?,
val field_data_transfer_fr: RichText?,
......
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