Koha/misc/cronjobs/rss/lastAcquired-1.0.tt
Jonathan Druart 5825026448 Bug 21526: uri escape TT variables when used in 'a href'
This patch has been generated with the script provided on bug 21576.
It only affects variable used in the href attribute of a link *when*
href it the first attribute of the node (grep "a href")

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-10-26 17:09:57 +00:00

39 lines
2.1 KiB
XML

<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<channel rdf:about="[% CHANNELLINK | html %]">
<title>[% CHANNELTITLE | html %]</title>
<link>[% CHANNELLINK | html %]</link>
<description>[% CHANNELDESC | html %]</description>
<language>[% CHANNELLANG | html %]</language>
<lastBuildDate>[% CHANNELLASTBUILD | html %]</lastBuildDate>
<image rdf:about="[% IMAGEURL | html %]">
<title>[% IMAGETITLE | html %]</title>
<url>[% IMAGEURL | html %]</url>
<link>[% IMAGELINK | html %]</link>
</image>
<items>
<rdf:Seq>
[% FOREACH i IN ITEMS %]
<rdf:li resource="[% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% ibiblionumber | html %]"/>
[% END %]
</rdf:Seq>
</items>
</channel>
[% FOREACH i IN ITEMS %]
<item rdf:about="[% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | html %]">
<title>[% i.TITLE | html %][% IF i.AUTHOR %] by [% i.AUTHOR | html %][% END %]</title>
<link>[% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | html %]</link>
<description><![CDATA[[% TITLE | html %][% IF i.AUTHOR %] by [% i.AUTHOR | html %][% END %]
<br>[% place | html %] [% i.publishercode | html %] [% i.publicationyear | html %]
<br>[% pages | html %] [% i.illus | html %] [% i.size | html %]
[% IF i.notes %]<br><br>[% i.notes | html %][% END %]<br>
<a href="[% OPACBaseURL | uri %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.biblionumber | uri %]">View Details</a> | <a href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-reserve.pl?biblionumber=[% i.biblionumber | html %]">Reserve this Item</a>[% IF i.author %] | <a href="[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?marclist=biblio.author&amp;and_or=and&amp;excluding=&amp;operator=contains&amp;value=[% i.author | html %]&amp;resultsperpage=20&amp;orderby=biblio.title&amp;op=do_search">More by this Author</a>[% END %]
]]></description>
</item>
[% END %]
</rdf:RDF>