Skip to content
Snippets Groups Projects
Commit e5647d67 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

send curator as dc.curator metadata to dspace

parent dac7cad5
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ class LearningObjectBuilder
metadata: dspace_metadata_to_hash(item.metadata)
)
lo.curator = lo.get_metadata_value_of('dc.curator')
institution = lo.get_metadata_value_of('dc.creator')
institution = 'Desconhecido' if institution.blank?
lo.publisher = Institution.where(name: institution).first_or_create
......
......@@ -68,7 +68,8 @@ class LearningObjectPublisher
'dc.type' => object.object_type.try(:name),
'dc.rights.license' => object.license.try(:name),
# 'dc.subject.category' => object.subjects,
'dc.date.submitted' => object.created_at.to_s
'dc.date.submitted' => object.created_at.to_s,
'dc.curator' => object.curator
}
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment