From ca37e45e2c8b1572a89655ef29e88103c33e50b6 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Wed, 15 Feb 2023 20:51:35 +0100
Subject: [PATCH] publication date

---
 app/views/admin/university/people/static.html.erb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/views/admin/university/people/static.html.erb b/app/views/admin/university/people/static.html.erb
index 48da801d9..0a9a5352e 100644
--- a/app/views/admin/university/people/static.html.erb
+++ b/app/views/admin/university/people/static.html.erb
@@ -76,11 +76,12 @@ administrative_missions:
 <% end %>
 <% if @about.publications.any? %>
 publications:
-<% @about.publications.each do |publication| %>
+<% @about.publications.ordered.each do |publication| %>
   - title: >
       <%= prepare_text_for_static publication.title %>
     ref: >
       <%= prepare_html_for_static publication.ref, @website.university %>
+    date: "<%= publication.publication_date&.iso8601 %>"
     url: >
       <%= prepare_text_for_static publication.url %>
     hal_url: >
-- 
GitLab