From c16c58633f439d50073d77821b5ae78a3cb016c9 Mon Sep 17 00:00:00 2001
From: George Katsikas <giorgakis.katsikas@gmail.com>
Date: Mon, 23 Sep 2024 12:14:07 +0200
Subject: [PATCH] add doi_data to issues

related to #165
---
 .../journals/templates/xml/publication_crossref.html      | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/scipost_django/journals/templates/xml/publication_crossref.html b/scipost_django/journals/templates/xml/publication_crossref.html
index e60192788..77b8a684e 100644
--- a/scipost_django/journals/templates/xml/publication_crossref.html
+++ b/scipost_django/journals/templates/xml/publication_crossref.html
@@ -30,6 +30,10 @@
                         <volume>{{ publication.in_issue.in_volume.number }}</volume>
                     </journal_volume>
                     <issue>{{ publication.in_issue.number }}</issue>
+                    <doi_data>
+                        <doi>{{ publication.in_issue.doi_string }}</doi>
+                        <resource>https://{{ domain }}{{ publication.in_issue.get_absolute_url }}</resource>
+                    </doi_data>
                 </journal_issue>
             {% elif publication.in_issue.in_journal %}
                 <journal_metadata>
@@ -46,6 +50,10 @@
                         <year>{{ publication.publication_date|date:'Y' }}</year>
                     </publication_date>
                     <issue>{{ publication.in_issue.number }}</issue>
+                    <doi_data>
+                        <doi>{{ publication.in_issue.doi_string }}</doi>
+                        <resource>https://{{ domain }}{{ publication.in_issue.get_absolute_url }}</resource>
+                    </doi_data>
                 </journal_issue>
             {% else %}
                 <journal_metadata>
-- 
GitLab