Koha-clms/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-news-rss.tt

32 lines
1.3 KiB
Plaintext

[% FILTER collapse %]
[% USE raw -%]
[% PROCESS 'i18n.inc' %]
[% PROCESS 'html_helpers.inc' %]
<?xml version="1.0"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-main.pl" rel="self" type="application/rss+xml" />
<title
><![CDATA[
[% IF ( LibraryNameTitle ) %]
[% tx("News from {library} catalog", { library = LibraryNameTitle }) | html %]
[% ELSE %]
[% t("News from the library") | html %]
[% END %]
]]>
</title>
<!-- prettier-ignore-start -->
<link>[% OPACBaseURL | url %]/cgi-bin/koha/opac-main.pl</link>
<!-- prettier-ignore-end -->
<description></description>
[% FOREACH newsitem IN koha_news %]
<item>
<title>[% newsitem.title | html %]</title>
<description><![CDATA[[% newsitem.content | $raw %]]]></description>
<guid>[% OPACBaseURL | html %]/cgi-bin/koha/opac-main.pl#newsitem[% newsitem.additional_content_id | html %]</guid>
</item>
[% END %]
</channel>
</rss>
[% END %]