diff --git a/app/models/concerns/with_citations.rb b/app/models/concerns/with_citations.rb index f235a72b2f597b71d7635821ab9dd5f9b15a0d2a..3e768d49533d2e1cf061b7096e88382de305228f 100644 --- a/app/models/concerns/with_citations.rb +++ b/app/models/concerns/with_citations.rb @@ -13,6 +13,14 @@ module WithCitations citation_for("modern-language-association", website: website, locale: locale) end + def citation_chicago(website: nil, locale: nil) + citation_for("chicago-author-date", website: website, locale: locale) + end + + def citation_harvard(website: nil, locale: nil) + citation_for("harvard-cite-them-right", website: website, locale: locale) + end + protected def citation_for(style, website: nil, locale: nil) diff --git a/app/views/admin/research/hal/publications/static.html.erb b/app/views/admin/research/hal/publications/static.html.erb index 7fdece81101846d3606e10f4b25c55812918b2da..4bd8b531c89cd9b253c64b1e719d9f81c6423465 100644 --- a/app/views/admin/research/hal/publications/static.html.erb +++ b/app/views/admin/research/hal/publications/static.html.erb @@ -32,7 +32,15 @@ citations: - label: "MLA" content: >- <%= prepare_html_for_static @about.citation_mla, @website.university %> + - label: "Chicago" + content: >- + <%= prepare_html_for_static @about.citation_chicago, @website.university %> + - label: "Harvard" + content: >- + <%= prepare_html_for_static @about.citation_harvard, @website.university %> + <% if @website.default_language.iso_code == "fr" %> - label: "ISO 690" content: >- <%= prepare_html_for_static @about.citation_iso690, @website.university %> + <% end %> --- \ No newline at end of file