From 512e4d9fcf965ae0d839ceb79da9aebfccb20419 Mon Sep 17 00:00:00 2001
From: George Katsikas <giorgakis.katsikas@gmail.com>
Date: Mon, 5 Aug 2024 12:14:06 +0200
Subject: [PATCH] remove metadata update promise for non-arXiv paper

fixes #87
---
 scipost_django/journals/utils.py | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/scipost_django/journals/utils.py b/scipost_django/journals/utils.py
index ffa81b056..6aecde08d 100644
--- a/scipost_django/journals/utils.py
+++ b/scipost_django/journals/utils.py
@@ -32,10 +32,14 @@ class JournalUtils(BaseMailUtil):
             "\n\nThe permanent DOI for your publication is 10.21468/"
             + cls.publication.doi_label
             + "."
-            "\n\nTo facilitate dissemination of your paper, we will also automatically "
-            "update the arXiv Journal-ref with this information (this update usually "
-            "takes place within one week; you do not need to take action)."
-            "\n\nWe warmly congratulate you on this achievement and thank you "
+            + (
+                "\n\nTo facilitate dissemination of your paper, we will also automatically "
+                "update the arXiv Journal-ref with this information (this update usually "
+                "takes place within one week; you do not need to take action)."
+                if cls.publication.accepted_submission.preprint.is_arXiv
+                else ""
+            )
+            + "\n\nWe warmly congratulate you on this achievement and thank you "
             "for entrusting us with the task of publishing your research. "
             "\n\nSincerely," + "\n\nThe SciPost Team."
         )
-- 
GitLab