{** * plugins/generic/webFeed/templates/rss2.tpl * * Copyright (c) 2014-2021 Simon Fraser University * Copyright (c) 2003-2021 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * RSS 2 feed template * *} {* required elements *} {$journal->getLocalizedName()|strip|escape:"html"} {url journal=$journal->getPath()} {if $journal->getLocalizedDescription()} {assign var="description" value=$journal->getLocalizedDescription()} {elseif $journal->getLocalizedData('searchDescription')} {assign var="description" value=$journal->getLocalizedData('searchDescription')} {/if} {$description|strip|escape:"html"} {* optional elements *} {if $journal->getPrimaryLocale()} {$journal->getPrimaryLocale()|replace:'_':'-'|strip|escape:"html"} {/if} {if $journal->getLocalizedData('licenseTerms')} {$journal->getLocalizedData('licenseTerms')|strip|escape:"html"} {/if} {if $journal->getData('contactEmail')} {$journal->getData('contactEmail')|strip|escape:"html"}{if $journal->getData('contactName')} ({$journal->getData('contactName')|strip|escape:"html"}){/if} {/if} {if $journal->getData('supportEmail')} {$journal->getData('supportEmail')|strip|escape:"html"}{if $journal->getData('contactName')} ({$journal->getData('supportName')|strip|escape:"html"}){/if} {/if} {if $issue->getDatePublished()} {capture assign="datePublished"}{$issue->getDatePublished()|strtotime}{/capture} {$smarty.const.DATE_RSS|date:$datePublished} {/if} {* *} {* *} {* *} OJS {$ojsVersion|escape} http://blogs.law.harvard.edu/tech/rss 60 {foreach name=sections from=$publishedSubmissions item=section key=sectionId} {foreach from=$section.articles item=article} {assign var=publication value=$article->getCurrentPublication()} {* required elements *} {$article->getLocalizedTitle()|strip|escape:"html"} {url page="article" op="view" path=$article->getBestId()} {$article->getLocalizedAbstract()|strip|escape:"html"} {* optional elements *} {* *} {$article->getAuthorString(false)|escape:"html"} {* *} {* *} {* *} {translate|escape key="submission.copyrightStatement" copyrightYear=$article->getCopyrightYear() copyrightHolder=$article->getLocalizedCopyrightHolder()} {$article->getLicenseURL()|escape} {if ($publication->getData('accessStatus') == $smarty.const.ARTICLE_ACCESS_OPEN || ($publication->getData('accessStatus') == $smarty.const.ARTICLE_ACCESS_ISSUE_DEFAULT && $issue->getAccessStatus() == $smarty.const.ISSUE_ACCESS_OPEN)) && $article->isCCLicense()} {else} {/if} {url page="article" op="view" path=$article->getBestId()} {if $article->getDatePublished()} {capture assign="datePublished"}{$article->getDatePublished()|strtotime}{/capture} {$smarty.const.DATE_RSS|date:$datePublished} {/if} {/foreach}{* articles *} {/foreach}{* sections *}