From bd15de08e3b2e2925c16d52ee390461084a98c7c Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Tue, 6 Feb 2024 12:02:32 +0100 Subject: [PATCH] fix source --- app/services/importers/hal.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/importers/hal.rb b/app/services/importers/hal.rb index 1780d7fb4..34cb06a99 100644 --- a/app/services/importers/hal.rb +++ b/app/services/importers/hal.rb @@ -33,6 +33,7 @@ module Importers def self.create_publication_from(doc) publication = Research::Publication.where(hal_docid: doc.docid).first_or_create puts "HAL sync publication #{doc.docid}" + publication.source = :hal publication.title = Osuny::Sanitizer.sanitize doc.title_s.first, 'string' publication.ref = doc.attributes['citationRef_s'] publication.citation_full = doc.attributes['citationFull_s'] -- GitLab