Skip to content
Snippets Groups Projects
Unverified Commit 41328a35 authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

Merge branch 'main' into event-store-calendar-urls

parents 246d53ed d7093fff
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