HOME


Mini Shell 1.0
DIR: /home/dhnidqcz/journal.africaprag.org/plugins/generic/webFeed/templates/
Upload File :
Current File : /home/dhnidqcz/journal.africaprag.org/plugins/generic/webFeed/templates/rss2.tpl
{**
 * templates/rss2.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.
 *
 * RSS 2 feed template
 *
 *}
<?xml version="1.0" encoding="{$defaultCharset|escape}"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://web.resource.org/cc/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="{$feedUrl}" rel="self" type="application/rss+xml" />
		{* required elements *}
		<title>{$context->getLocalizedName()|strip|escape:"html"}</title>
		<link>{url context=$context->getPath()}</link>

		{if $context->getLocalizedDescription()}
			{assign var="description" value=$context->getLocalizedDescription()}
		{elseif $context->getLocalizedData('searchDescription')}
			{assign var="description" value=$context->getLocalizedData('searchDescription')}
		{/if}

		<description>{$description|strip|escape:"html"}</description>

		{* optional elements *}
		{if $context->getPrimaryLocale()}
			<language>{$context->getPrimaryLocale()|replace:'_':'-'|strip|escape:"html"}</language>
		{/if}

		{if $context->getLocalizedData('licenseTerms')}
			<copyright>{$context->getLocalizedData('licenseTerms')|strip|escape:"html"}</copyright>
		{/if}

		{if $context->getData('contactEmail')}
			<managingEditor>{$context->getData('contactEmail')|strip|escape:"html"}{if $context->getData('contactName')} ({$context->getData('contactName')|strip|escape:"html"}){/if}</managingEditor>
		{/if}

		{if $context->getData('supportEmail')}
			<webMaster>{$context->getData('supportEmail')|strip|escape:"html"}{if $context->getData('contactName')} ({$context->getData('supportName')|strip|escape:"html"}){/if}</webMaster>
		{/if}

		<pubDate>{$latestDate|date_format:$smarty.const.DATE_RSS}</pubDate>

		{* <lastBuildDate/> *}
		{* <category/> *}
		{* <creativeCommons:license/> *}

		<generator>{$applicationName} {$applicationVersion|escape}</generator>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<ttl>60</ttl>

		{foreach from=$submissions item=item}
			{assign var=submission value=$item.submission}
			{assign var=publication value=$submission->getCurrentPublication()}
			<item>
				{* required elements *}
				<title>{$publication->getLocalizedTitle()|strip|escape:"html"}</title>
				<link>{url page=$publicationPage op=$publicationOp path=$submission->getBestId()}</link>
				{if $publication->getLocalizedData('abstract') || $includeIdentifiers}
					<description>
						{if $includeIdentifiers}
							{foreach from=$item.identifiers item=identifier}
								{$identifier.label|strip|escape:"html"}: {', '|implode:$identifier.values|strip|escape:"html"}&lt;br /&gt;
							{/foreach}{* categories *}
							&lt;br /&gt;
						{/if}
						{$publication->getLocalizedData('abstract')|strip|escape:"html"}
					</description>
				{/if}

				{* optional elements *}
				{* <author/> *}
				{if !empty($publication->getAuthorString($userGroups))}
					<dc:creator>{$publication->getAuthorString($userGroups)|escape:"html"}</dc:creator>
				{/if}

				{foreach from=$item.identifiers item=identifier}
					{foreach from=$identifier.values item=value}
						<category domain="https://pkp.sfu.ca/{$applicationIdentifier}/category/{$identifier.type|strip|escape:"html"}">{$value|strip|escape:"html"}</category>
					{/foreach}
				{/foreach}{* categories *}
				{* <comments/> *}
				{* <source/> *}

				<dc:rights>
					{translate|escape key="submission.copyrightStatement" copyrightYear=$publication->getData('copyrightYear') copyrightHolder=$publication->getLocalizedData('copyrightHolder')}
					{$publication->getData('licenseUrl')|escape}
				</dc:rights>
				<cc:license {if ($openAccess === null || $openAccess === $publication->getData('accessStatus')) && $publication->isCCLicense()}rdf:resource="{$publication->getData('licenseUrl')|escape}"{/if} />
				<guid isPermaLink="true">{url page=$publicationPage op=$publicationOp path=$submission->getBestId()}</guid>
				<pubDate>{$publication->getData('datePublished')|date_format:$smarty.const.DATE_RSS}</pubDate>
			</item>
		{/foreach}{* articles *}
	</channel>
</rss>