{** * plugins/generic/webFeed/templates/atom.tpl * * Copyright (c) 2014-2018 Simon Fraser University * Copyright (c) 2003-2018 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Atom feed template * *} {* required elements *} {url page="issue" op="feed"} {$journal->getLocalizedName()|escape:"html"|strip} {* Figure out feed updated date *} {assign var=latestDate value=$issue->getDatePublished()} {foreach name=sections from=$publishedArticles item=section} {foreach from=$section.articles item=article} {if $article->getLastModified() > $latestDate} {assign var=latestDate value=$article->getLastModified()} {/if} {/foreach} {/foreach} {$latestDate|date_format:"%Y-%m-%dT%T%z"|regex_replace:"/00$/":":00"} {* recommended elements *} {if $journal->getSetting('contactName')} {$journal->getSetting('contactName')|strip|escape:"html"} {if $journal->getSetting('contactEmail')} {$journal->getSetting('contactEmail')|strip|escape:"html"} {/if} {/if} {* optional elements *} {* *} {* *} Open Journal Systems {if $journal->getLocalizedDescription()} {assign var="description" value=$journal->getLocalizedDescription()} {elseif $journal->getLocalizedSetting('searchDescription')} {assign var="description" value=$journal->getLocalizedSetting('searchDescription')} {/if} {$description|strip|escape:"html"} {foreach name=sections from=$publishedArticles item=section key=sectionId} {foreach from=$section.articles item=article} {* required elements *} {url page="article" op="view" path=$article->getBestArticleId()} {$article->getLocalizedTitle()|strip|escape:"html"} {$article->getLastModified()|date_format:"%Y-%m-%dT%T%z"|regex_replace:"/00$/":":00"} {* recommended elements *} {foreach from=$article->getAuthors() item=author name=authorList} {$author->getFullName()|strip|escape:"html"} {if $author->getEmail()} {$author->getEmail()|strip|escape:"html"} {/if} {/foreach}{* authors *} getBestArticleId()}" /> {if $article->getLocalizedAbstract()} getBestArticleId()}">{$article->getLocalizedAbstract()|strip|escape:"html"} {/if} {* optional elements *} {* *} {* *} {if $article->getDatePublished()} {$article->getDatePublished()|date_format:"%Y-%m-%dT%T%z"|regex_replace:"/00$/":":00"} {/if} {* *} {translate|escape key="submission.copyrightStatement" copyrightYear=$article->getCopyrightYear() copyrightHolder=$article->getLocalizedCopyrightHolder()} {/foreach}{* articles *} {/foreach}{* sections *}