From a78dac3cfb5f61f3eff7bb9149d5b6e22afe19de Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Mon, 5 Feb 2024 15:40:54 +0100
Subject: [PATCH] fix

---
 app/models/communication/website/permalink/publication.rb | 2 +-
 app/models/university/person/researcher.rb                | 2 +-
 app/views/admin/research/researchers/index.html.erb       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/models/communication/website/permalink/publication.rb b/app/models/communication/website/permalink/publication.rb
index b4e4b193e..884f889d5 100644
--- a/app/models/communication/website/permalink/publication.rb
+++ b/app/models/communication/website/permalink/publication.rb
@@ -1,6 +1,6 @@
 class Communication::Website::Permalink::Publication < Communication::Website::Permalink
   def self.required_in_config?(website)
-    website.connected_hal_publications.any?
+    website.connected_publications.any?
   end
 
   def self.static_config_key
diff --git a/app/models/university/person/researcher.rb b/app/models/university/person/researcher.rb
index 65dd88256..fe2aa0076 100644
--- a/app/models/university/person/researcher.rb
+++ b/app/models/university/person/researcher.rb
@@ -13,7 +13,7 @@ class University::Person::Researcher < University::Person
 
   def dependencies
     [person] +
-    research_hal_publications
+    research_publications
   end
 
   def references
diff --git a/app/views/admin/research/researchers/index.html.erb b/app/views/admin/research/researchers/index.html.erb
index 3873fce41..5d1861a29 100644
--- a/app/views/admin/research/researchers/index.html.erb
+++ b/app/views/admin/research/researchers/index.html.erb
@@ -25,7 +25,7 @@
               <%= kamifusen_tag researcher.best_picture, width: 80 %>
             <% end %>
           </td>
-          <td><%= researcher.hal_publications.count %></td>
+          <td><%= researcher.publications.count %></td>
           <td><%= researcher.research_journal_papers.count %></td>
           <td></td>
         </tr>
-- 
GitLab