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

Fix [skip ci]

parent 387474f6
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ class Admin::Research::Hal::PublicationsController < Admin::Research::Hal::Appli ...@@ -12,7 +12,7 @@ class Admin::Research::Hal::PublicationsController < Admin::Research::Hal::Appli
def static def static
@about = @publication @about = @publication
@website = @publication.websites&.first @website = @publication.websites&.first || current_university.websites.first
render layout: false render layout: false
end end
......
...@@ -91,7 +91,7 @@ class Research::Hal::Publication < ApplicationRecord ...@@ -91,7 +91,7 @@ class Research::Hal::Publication < ApplicationRecord
end end
def git_path(website) def git_path(website)
"#{git_path_content_prefix(website)}publications/#{created_at.year}/#{slug}.html" if for_website?(website) "#{git_path_content_prefix(website)}publications/#{publication_date.year}/#{slug}.html" if for_website?(website)
end end
def doi_url def doi_url
......
--- ---
title: "<%= @about.title %>" title: >-
<%= @about.title %>
date: "<%= @about.publication_date&.iso8601 %>" date: "<%= @about.publication_date&.iso8601 %>"
slug: "<%= @about.slug %>" slug: "<%= @about.slug %>"
docid: "<%= @about.docid %>" docid: "<%= @about.docid %>"
......
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