Skip to content

Commit

Permalink
Merge branch 'originalDocumentCitation-735' into 'main'
Browse files Browse the repository at this point in the history
Exibe citação do documento original na landing page

See merge request softwares-pkp/temas/scielo!12
  • Loading branch information
JhonathanLepidus committed Jan 10, 2025
2 parents 043c025 + e724b9f commit c4bbb06
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 1 deletion.
6 changes: 6 additions & 0 deletions locale/en/locale.po
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,9 @@ msgstr " (as of yesterday)"

msgid "plugins.themes.scielo.translation"
msgstr "Translation"

msgid "plugins.themes.scielo.translationOfDocument"
msgstr "This is a translation of the following document:"

msgid "plugins.themes.scielo.originalDocumentDoi"
msgstr "Original document DOI"
6 changes: 6 additions & 0 deletions locale/es/locale.po
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,9 @@ msgstr " (hasta ayer)"

msgid "plugins.themes.scielo.translation"
msgstr "Traducción"

msgid "plugins.themes.scielo.translationOfDocument"
msgstr "Esta es una traducción del siguiente documento:"

msgid "plugins.themes.scielo.originalDocumentDoi"
msgstr "DOI del documento original"
6 changes: 6 additions & 0 deletions locale/pt_BR/locale.po
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,9 @@ msgstr " (até ontem)"

msgid "plugins.themes.scielo.translation"
msgstr "Tradução"

msgid "plugins.themes.scielo.translationOfDocument"
msgstr "Esta é uma tradução do seguinte documento:"

msgid "plugins.themes.scielo.originalDocumentDoi"
msgstr "DOI do documento original"
18 changes: 18 additions & 0 deletions templates/frontend/objects/preprint_details.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,24 @@
</div>
{/if}

{if $publication->getData('originalDocumentDoi')}
<div class="cmp_notification notice">
{translate key="plugins.themes.scielo.translationOfDocument"}
<br><br>
<span>{$publication->getData('originalDocumentCitation')}</span>
<br><br>
{assign var="originalDocumentDoi" value=$publication->getData('originalDocumentDoi')|escape}
<strong>
{translate key="plugins.themes.scielo.originalDocumentDoi"}:
</strong>
<span>
<a href="https://doi.org/{$originalDocumentDoi}">
https://doi.org/{$originalDocumentDoi}
</a>
</span>
</div>
{/if}

{* Crossref requirements: The landing page must be labeled as not formally published (e.g. “preprint”, “unpublished manuscript”). This label must appear above the scroll. *}
<span class="preprint_label">{translate key="common.publication"}</span>
<span class="separator">{translate key="navigation.breadcrumbSeparator"}</span>
Expand Down
2 changes: 1 addition & 1 deletion version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<version>
<application>scieloTheme</application>
<type>plugins.themes</type>
<release>2.1.0.0</release>
<release>2.2.0.0</release>
<date>2025-01-10</date>
<lazy-load>1</lazy-load>
<class>ScieloThemePlugin</class>
Expand Down

0 comments on commit c4bbb06

Please sign in to comment.