Skip to content
Snippets Groups Projects
Commit 844db381 authored by Israel Barreto Sant'Anna's avatar Israel Barreto Sant'Anna
Browse files

Fixed empty author error in learning object OAI import

parent e8d6a18e
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,7 @@ class LearningObjectBuilder
lo.language = language
lo.author = lo.get_metadata_values_of('dc.contributor.author').join(', ')
lo.author = publisher.name if lo.author.blank?
lo.description = lo.get_metadata_value_of('dc.description')
lo.state = LearningObject.states[:published]
......
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