Skip to content

Commit

Permalink
v3.0.1 (#221)
Browse files Browse the repository at this point in the history
* #205

* Feature/pdf (#213)

New Celery task allowing to generate the pdf of an article
Use of nbconvert --to pdf
Use of citeproc to insert reference

* subprocess- stderr - #209

* add pandoc / #209

* remove extra line

* Update Dockerfile

* add debug + texlive

* FROM pandoc/core:latest

* comment lxml / psycopg2-binary

* revert changes

* #209

* #209

* #209

* Update notebook_with_ref.ipynb

* check json

* #209

tag hermeneutics for markdown cell / code cell

* jdh_statistics

* jdh stats

* Update jdh_statistics.ipynb

* #216

* add filter API / #19

* ordering pid / #19

* addition article_status in watermak only if not published yet / #220

* condition on contrib-id-type="orcid" / #193

* remove journal code in the elocation ID / #192

* addition open-issue attribute / #191
  • Loading branch information
eliselavy authored Apr 18, 2024
1 parent 4ce6efb commit 3ca1dc3
Showing 5 changed files with 25 additions and 20 deletions.
2 changes: 1 addition & 1 deletion jdhapi/utils/doi.py
Original file line number Diff line number Diff line change
@@ -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


35 changes: 19 additions & 16 deletions jdhseo/templates/jdhseo/article_detail.html
Original file line number Diff line number Diff line change
@@ -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 %}
}
}
</style>
6 changes: 4 additions & 2 deletions jdhseo/templates/jdhseo/article_dg.xml
Original file line number Diff line number Diff line change
@@ -23,7 +23,9 @@
</title-group>
<contrib-group>{% for contrib in articleXml.authors %}
<contrib contrib-type="author">
<contrib-id contrib-id-type="orcid">{{ contrib.orcid }}</contrib-id>
{% if contrib.orcid %}
<contrib-id contrib-id-type="orcid">{{ contrib.orcid }}</contrib-id>
{% endif %}
<name>
<surname>{{ contrib.surname }}</surname>
<given-names>{{ contrib.given_names }}</given-names>
@@ -49,7 +51,7 @@
<month>{{ articleXml.issue_date|date:"m"}}</month>
<year>{{ articleXml.issue_date|date:"Y" }}</year>
</pub-date>
<volume>{{ articleXml.volume }}</volume>
<volume content-type="open-issue">{{ articleXml.volume }}</volume>
<issue>{{ articleXml.issue }}</issue>
<elocation-id seq="{{ articleXml.seq }}">{{ articleXml.elocation_id }}</elocation-id>
<permissions>
2 changes: 1 addition & 1 deletion jdhseo/templates/jdhseo/issue_dg.xml
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
<month>09</month>
<year>2021</year>
</pub-date>
<volume>1</volume>
<volume content-type="open-issue">1</volume>
<issue>1</issue>
<issue-id pub-id-type="publisher-id">jdh.2021.1.issue-1</issue-id>
</issue-meta>
Binary file removed peer_review_L2gBr3BzwH8Z.pdf
Binary file not shown.

0 comments on commit 3ca1dc3

Please sign in to comment.