Bug 21526: Use the 'url' filter when needed
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-news-rss.tt
1 [% USE raw %]
2 <?xml version="1.0"?>
3 <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
4    <channel>
5       <atom:link href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-main.pl" rel="self" type="application/rss+xml" />
6       <title>News from [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]the library[% END %]</title>
7       <link>[% OPACBaseURL | html %]/cgi-bin/koha/opac-main.pl</link>
8       <description></description>
9       [% FOREACH newsitem IN koha_news %]
10       <item>
11         <title>[% newsitem.title | html %]</title>
12         <description>[% newsitem.content | $raw %]</description>
13         <guid>[% OPACBaseURL | html %]/cgi-bin/koha/opac-main.pl#newsitem[% newsitem.idnew | html %]</guid>
14       </item>
15       [% END %]
16    </channel>
17 </rss>