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

Fix issue with unpacking.

Fix tests.
parent 60a98660
Pipeline #21282 passed with stage
in 2 minutes and 25 seconds
......@@ -123,7 +123,7 @@ sealed class ConfigField {
languagePair.sources.forEach { field ->
when (field) {
is MappedAnnotationField ->
FieldParsers.unpackSource(key, source).let { value ->
FieldParsers.unpackSource(field.field, source).let { value ->
when (value) {
is SimpleString ->
if (resultList.size == 1) {
......
{"digitalFieldMappers" : [{"field" : {"directField" : "MainID", "directKey" : "main", "field" : "MainID", "key" : "main"}, "rdfType" : "identifiers", "type" : "rico-concept"}], "physicalFieldMappers" : [{"field" : {"directField" : "MainID", "directKey" : "main", "field" : "MainID", "key" : "main"}, "rdfType" : "identifiers", "type" : "rico-concept"}], "recordFieldMappers" : [{"field" : {"directField" : "MainID", "directKey" : "main", "field" : "MainID", "key" : "main"}, "rdfType" : "identifiers", "type" : "rico-concept"}], "recordType" : {"constant" : "Foto", "key" : "type"}, "sponsoredByMemoriav" : true, "uri" : "TestField"}
\ No newline at end of file
{"digitalFieldMappers" : [{"field" : {"directField" : "MainID", "directKey" : "main", "field" : "MainID", "key" : "main"}}], "physicalFieldMappers" : [{"field" : {"directField" : "MainID", "directKey" : "main", "field" : "MainID", "key" : "main"}}], "recordFieldMappers" : [{"field" : {"directField" : "MainID", "directKey" : "main", "field" : "MainID", "key" : "main"}}], "recordType" : {"constant" : "Foto", "key" : "type"}, "sponsoredByMemoriav" : true, "uri" : "TestField"}
\ No newline at end of file
{"digitalFieldMappers" : [], "physicalFieldMappers" : [], "recordFieldMappers" : [{"agentClassType" : "subject", "fields" : [{"fields" : [{"sources" : [{"directField" : "Schlagworte", "directKey" : "prefLabel", "field" : "Schlagworte", "key" : "prefLabel"}], "tag" : "fr"}], "key" : "prefLabel"}, {"constant" : "Ursprungsfeld: Mots clés", "key" : "editorialNote"}], "type" : "skos-concept"}, {"agentClassType" : "genre", "fields" : [{"fields" : [{"sources" : [{"directField" : "Genre", "directKey" : "prefLabel", "field" : "Genre", "key" : "prefLabel"}], "tag" : "fr"}], "key" : "prefLabel"}, {"constant" : "Ursprungsfeld: Genre", "key" : "editorialNote"}], "type" : "skos-concept"}], "recordType" : {"constant" : "Foto", "key" : "type"}, "sponsoredByMemoriav" : false, "uri" : "id"}
\ No newline at end of file
{"digitalFieldMappers" : [], "physicalFieldMappers" : [], "recordFieldMappers" : [{"agentClassType" : "subject", "fields" : [{"fields" : [{"sources" : [{"directField" : "Schlagworte", "directKey" : "prefLabel", "field" : "Schlagworte", "key" : "prefLabel"}], "tag" : "fr"}], "key" : "prefLabel"}, {"constant" : "Ursprungsfeld: Mots clés", "key" : "editorialNote"}]}, {"agentClassType" : "genre", "fields" : [{"fields" : [{"sources" : [{"directField" : "Genre", "directKey" : "prefLabel", "field" : "Genre", "key" : "prefLabel"}], "tag" : "fr"}], "key" : "prefLabel"}, {"constant" : "Ursprungsfeld: Genre", "key" : "editorialNote"}]}], "recordType" : {"constant" : "Foto", "key" : "type"}, "sponsoredByMemoriav" : false, "uri" : "id"}
\ No newline at end of file
......@@ -5,15 +5,6 @@
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
_:b0 a rico:CreationRelation ;
rico:creationRelationHasSource <https://memobase.ch/record/rs1-1> ;
rico:creationRelationHasTarget [ a rico:Person ;
rico:agentIsTargetOfCreationRelation
_:b0 ;
rico:name "Hans Zimmer"
] ;
rico:type "creator" .
<https://memobase.ch/record/rs1-1>
a rico:Record ;
rdau:P60451 <https://memobase.ch/institution/mrv> ;
......@@ -28,3 +19,12 @@ _:b0 a rico:CreationRelation ;
rico:recordResourceOrInstantiationIsSourceOfCreationRelation
_:b0 ;
rico:type "Foto" .
_:b0 a rico:CreationRelation ;
rico:creationRelationHasSource <https://memobase.ch/record/rs1-1> ;
rico:creationRelationHasTarget [ a rico:Person ;
rico:agentIsTargetOfCreationRelation
_:b0 ;
rico:name "Hans Zimmer"
] ;
rico:type "creator" .
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