- {if $announcement->getLocalizedDescription()}
- {$announcement->getLocalizedDescription()|strip_unsafe_html}
+ {if $announcement->getLocalizedData('description')}
+ {$announcement->getLocalizedData('description')|strip_unsafe_html}
{else}
- {$announcement->getLocalizedDescriptionShort()|strip_unsafe_html}
+ {$announcement->getLocalizedData('descriptionShort')|strip_unsafe_html}
{/if}
diff --git a/templates/frontend/objects/announcement_summary.tpl b/templates/frontend/objects/announcement_summary.tpl
index 53eb12e..0607e7e 100644
--- a/templates/frontend/objects/announcement_summary.tpl
+++ b/templates/frontend/objects/announcement_summary.tpl
@@ -1,8 +1,8 @@
{**
* templates/frontend/objects/announcement_summary.tpl
*
- * Copyright (c) 2014-2023 Simon Fraser University Library
- * Copyright (c) 2003-2023 John Willinsky
+ * Copyright (c) 2014-2024 Simon Fraser University Library
+ * Copyright (c) 2003-2024 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @brief Display a summary view of an announcement
@@ -12,14 +12,14 @@
+ {* Indicate if this is only a preview *}
+ {if $publication->getData('status') !== PKP\submission\PKPSubmission::STATUS_PUBLISHED}
+
+ {capture assign="submissionUrl"}{url page="workflow" op="access" path=$article->getId()}{/capture}
+ {translate key="submission.viewingPreview" url=$submissionUrl}
+
+ {/if}
{* Notification that this is an old version *}
{if $currentPublication->getId() !== $publication->getId()}
@@ -166,6 +173,9 @@
{if $author->getLocalizedAffiliation()}
{$author->getLocalizedAffiliation()|escape}
+ {if $author->getData('rorId')}
+
{$rorIdIcon}
+ {/if}
{/if}
{if $author->getOrcid()}
diff --git a/templates/frontend/objects/article_summary.tpl b/templates/frontend/objects/article_summary.tpl
index a911d1a..41498ab 100644
--- a/templates/frontend/objects/article_summary.tpl
+++ b/templates/frontend/objects/article_summary.tpl
@@ -1,8 +1,8 @@
{**
* templates/frontend/objects/article_summary.tpl
*
- * Copyright (c) 2014-2023 Simon Fraser University Library
- * Copyright (c) 2003-2023 John Willinsky
+ * Copyright (c) 2014-2024 Simon Fraser University Library
+ * Copyright (c) 2003-2024 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @brief View of an Article summary which is shown within a list of articles.
@@ -17,7 +17,7 @@
*}
{assign var=publication value=$article->getCurrentPublication()}
{assign var=articlePath value=$article->getBestId($currentJournal)}
-{if (!$section.hideAuthor && $article->getHideAuthor() == \APP\submission\Submission::AUTHOR_TOC_DEFAULT) || $article->getHideAuthor() == \APP\submission\Submission::AUTHOR_TOC_SHOW}
+{if (!$section.hideAuthor && $publication->getData('hideAuthor') == \APP\submission\Submission::AUTHOR_TOC_DEFAULT) || $publication->getData('hideAuthor') == \APP\submission\Submission::AUTHOR_TOC_SHOW}
{assign var="showAuthor" value=true}
{/if}
@@ -34,31 +34,31 @@
- {if $showAuthor || $article->getPages()}
+ {if $showAuthor || $publication->getData('pages')}
{if $showAuthor}
{/if}
{* Page numbers for this article *}
- {if $article->getPages()}
+ {if $publication->getData('pages')}
- {$article->getPages()|escape}
+ {$publication->getData('pages')|escape}
{/if}
@@ -69,7 +69,7 @@
{foreach from=$article->getGalleys() item=galley}
{if $primaryGenreIds}
{assign var="file" value=$galley->getFile()}
- {if !$galley->getRemoteUrl() && !($file && in_array($file->getGenreId(), $primaryGenreIds))}
+ {if !$galley->getData('urlRemote') && !($file && in_array($file->getGenreId(), $primaryGenreIds))}
{continue}
{/if}
{/if}