From a7a15ce737b60dd1ca16f5e98b7beef7335a4aa5 Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Thu, 28 Dec 2023 15:08:20 +0200 Subject: [PATCH] add preprint related object to publication metadata --- .../journals/templates/xml/publication_crossref.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scipost_django/journals/templates/xml/publication_crossref.html b/scipost_django/journals/templates/xml/publication_crossref.html index 1720eff0c..6cfb45d79 100644 --- a/scipost_django/journals/templates/xml/publication_crossref.html +++ b/scipost_django/journals/templates/xml/publication_crossref.html @@ -133,6 +133,13 @@ </ai:program> </custom_metadata> </crossmark> + <program xmlns="http://www.crossref.org/relations.xsd"> + {% for preprint_sub in publication.accepted_submission.thread_full %} + <related_item> + <intra_work_relation relationship-type="hasPreprint" identifier-type="uri">https://{{ domain }}{{ preprint_sub.get_absolute_url }}</intra_work_relation> + </related_item> + {% endfor %} + </program> <archive_locations> <archive name="CLOCKSS"></archive> </archive_locations> -- GitLab