{**
* templates/atom.tpl
*
* Copyright (c) 2014-2023 Simon Fraser University
* Copyright (c) 2003-2023 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Atom feed template
*
*}
<?xml version="1.0" encoding="{$defaultCharset|escape}"?>
<feed xmlns="http://www.w3.org/2005/Atom">
{* required elements *}
<id>{$feedUrl}</id>
<title>{$context->getLocalizedName()|escape:"html"|strip}</title>
<updated>{$latestDate|date_format:"Y-m-d\TH:i:sP"}</updated>
{* recommended elements *}
{if $context->getData('contactName')}
<author>
<name>{$context->getData('contactName')|strip|escape:"html"}</name>
{if $context->getData('contactEmail')}
<email>{$context->getData('contactEmail')|strip|escape:"html"}</email>
{/if}
</author>
{/if}
<link rel="alternate" href="{url context=$context->getPath()}" />
<link rel="self" type="application/atom+xml" href="{$feedUrl}" />
{* optional elements *}
{* <category/> *}
{* <contributor/> *}
<generator uri="https://pkp.sfu.ca/{$applicationIdentifier}/" version="{$applicationVersion|escape}">{$applicationName}</generator>
{if $context->getLocalizedDescription()}
{assign var="description" value=$context->getLocalizedDescription()}
{elseif $context->getLocalizedData('searchDescription')}
{assign var="description" value=$context->getLocalizedData('searchDescription')}
{/if}
<subtitle type="html">{$description|strip|escape:"html"}</subtitle>
{foreach from=$submissions item=item}
{assign var=submission value=$item.submission}
{assign var=publication value=$submission->getCurrentPublication()}
<entry>
{* required elements *}
<id>{url page=$publicationPage op=$publicationOp path=$submission->getBestId()}</id>
<title>{$publication->getLocalizedTitle()|strip|escape:"html"}</title>
<updated>{$publication->getData('lastModified')|date_format:"Y-m-d\TH:i:sP"}</updated>
{* recommended elements *}
{foreach from=$publication->getData('authors') item=author}
<author>
<name>{$author->getFullName(false)|strip|escape:"html"}</name>
</author>
{/foreach}{* authors *}
<link rel="alternate" href="{url page=$publicationPage op=$publicationOp path=$submission->getBestId()}" />
{if $publication->getLocalizedData('abstract') || $includeIdentifiers}
<summary type="html" xml:base="{url page=$publicationPage op=$publicationOp path=$submission->getBestId()}">
{if $includeIdentifiers}
{foreach from=$item.identifiers item=identifier}
{$identifier.label|strip|escape:"html"}: {', '|implode:$identifier.values|strip|escape:"html"}<br />
{/foreach}{* summary identifiers *}
<br />
{/if}
{$publication->getLocalizedData('abstract')|strip|escape:"html"}
</summary>
{/if}
{* optional elements *}
{foreach from=$item.identifiers item=identifier}
{foreach from=$identifier.values item=value}
<category term="{$value|strip|escape:"html"}" label="{$identifier.label|strip|escape:"html"}" scheme="https://pkp.sfu.ca/{$applicationIdentifier}/category/{$identifier.type|strip|escape:"html"}"/>
{/foreach}
{/foreach}{* categories *}
{* <contributor/> *}
<published>{$publication->getData('datePublished')|date_format:"Y-m-d\TH:i:sP"}</published>
{* <source/> *}
<rights>{translate|escape key="submission.copyrightStatement" copyrightYear=$publication->getData('copyrightYear') copyrightHolder=$publication->getLocalizedData('copyrightHolder')}</rights>
</entry>
{/foreach}{* submissions *}
</feed>
|