diff --git a/jdhapi/utils/doi.py b/jdhapi/utils/doi.py index b283fb6..5b9e6da 100644 --- a/jdhapi/utils/doi.py +++ b/jdhapi/utils/doi.py @@ -58,7 +58,7 @@ def get_doi_url_formatted(doi): # http://www.wiki.degruyter.de/production/files/dg_variables_and_id.xhtml#elocation-id def get_elocation_id(publisher_id): # PublisherId: jdh-2021-1000 - elocation_id = publisher_id.replace("-", "").replace("JDH", "") + elocation_id = publisher_id.replace("-", "").replace("jdh", "") return elocation_id diff --git a/jdhseo/templates/jdhseo/article_detail.html b/jdhseo/templates/jdhseo/article_detail.html index d5d76a5..deb27a6 100644 --- a/jdhseo/templates/jdhseo/article_detail.html +++ b/jdhseo/templates/jdhseo/article_detail.html @@ -190,23 +190,26 @@ .email a:link, a:visited, a:focus { } - /* Add this CSS to style the watermark on all pages */ - @media print { - body::after { - content: "PEER-REVIEW"; - position: fixed; - transform: rotate(-45deg); - opacity: 0.2; - font-size: 50pt; - color: black; - top: 50%; - left: 50%; - transform-origin: center; /* Center the transform origin */ - transform: translate(-50%, -50%) rotate(-45deg); /* Center the watermark using transform and translate */ - z-index: -1; - white-space: nowrap; - pointer-events: none; + {% if article.status != "PUBLISHED" %} + /* Add this CSS to style the watermark on all pages */ + @media print { + body::after { + content: "{{ article.status }}"; + position: fixed; + transform: rotate(-45deg); + opacity: 0.2; + font-size: 50pt; + color: black; + top: 50%; + left: 50%; + transform-origin: center; /* Center the transform origin */ + transform: translate(-50%, -50%) rotate(-45deg); /* Center the watermark using transform and translate */ + z-index: -1; + white-space: nowrap; + pointer-events: none; + } } + {% endif %} } } diff --git a/jdhseo/templates/jdhseo/article_dg.xml b/jdhseo/templates/jdhseo/article_dg.xml index e23d1f8..5f88468 100644 --- a/jdhseo/templates/jdhseo/article_dg.xml +++ b/jdhseo/templates/jdhseo/article_dg.xml @@ -23,7 +23,9 @@ {% for contrib in articleXml.authors %} - {{ contrib.orcid }} + {% if contrib.orcid %} + {{ contrib.orcid }} + {% endif %} {{ contrib.surname }} {{ contrib.given_names }} @@ -49,7 +51,7 @@ {{ articleXml.issue_date|date:"m"}} {{ articleXml.issue_date|date:"Y" }} - {{ articleXml.volume }} + {{ articleXml.volume }} {{ articleXml.issue }} {{ articleXml.elocation_id }} diff --git a/jdhseo/templates/jdhseo/issue_dg.xml b/jdhseo/templates/jdhseo/issue_dg.xml index ba8163a..3c7ce2b 100644 --- a/jdhseo/templates/jdhseo/issue_dg.xml +++ b/jdhseo/templates/jdhseo/issue_dg.xml @@ -24,7 +24,7 @@ 09 2021 - 1 + 1 1 jdh.2021.1.issue-1 diff --git a/peer_review_L2gBr3BzwH8Z.pdf b/peer_review_L2gBr3BzwH8Z.pdf deleted file mode 100644 index 07f7fea..0000000 Binary files a/peer_review_L2gBr3BzwH8Z.pdf and /dev/null differ