Skip to content
Snippets Groups Projects
Commit fca2f66b authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix #1618

parent 35d459ea
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,8 @@ class Research::Hal::Author < ApplicationRecord
end
def import_research_hal_publications!
publications.hal.clear
# HAL author has only HAL publications
publications.clear
# Do not overuse the API if no researcher is concerned
return if researchers.none?
Importers::Hal.import_publications_for_author(self).each do |publication|
......
......@@ -34,7 +34,7 @@ module University::Person::WithResearch
end
def import_research_hal_publications!
publications.hal.clear
publications.delete(publications.hal)
hal_authors.each do |author|
# TODO manage same researcher in different universities
publications.concat author.import_research_hal_publications!
......
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