Koha/misc/cronjobs/rss/lastAcquired-1.0.tt
Colin Campbell 607b224f00 Bug 13591: Pass OPACBaseURL to rss creation process
Links in rss templates were hardcoded to library.org.nz. Should pass and
use the system's OPACBaseURL.

Tested and verified.

Signed-off-by: Eivin Giske Skaaren <eskaaren@yahoo.no>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2015-05-15 16:11:07 -03:00

39 lines
1.8 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 %]">
<title>[% CHANNELTITLE %]</title>
<link>[% CHANNELLINK %]</link>
<description>[% CHANNELDESC %]</description>
<language>[% CHANNELLANG %]</language>
<lastBuildDate>[% CHANNELLASTBUILD %]</lastBuildDate>
<image rdf:about="[% IMAGEURL %]">
<title>[% IMAGETITLE %]</title>
<url>[% IMAGEURL %]</url>
<link>[% IMAGELINK %]</link>
</image>
<items>
<rdf:Seq>
[% FOREACH i IN ITEMS %]
<rdf:li resource="[% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% ibiblionumber %]"/>
[% END %]
</rdf:Seq>
</items>
</channel>
[% FOREACH i IN ITEMS %]
<item rdf:about="[% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]">
<title>[% i.TITLE %][% IF i.AUTHOR %] by [% i.AUTHOR %][% END %]</title>
<link>[% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]</link>
<description><![CDATA[[% TITLE %][% IF i.AUTHOR %] by [% i.AUTHOR %][% END %]
<br>[% place %] [% i.publishercode %] [% i.publicationyear %]
<br>[% pages %] [% i.illus %] [% i.size %]
[% IF i.notes %]<br><br>[% i.notes %][% END %]<br>
<a href="[% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.biblionumber %]">View Details</a> | <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-reserve.pl?biblionumber=[% i.biblionumber %]">Reserve this Item</a>[% IF i.author %] | <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?marclist=biblio.author&amp;and_or=and&amp;excluding=&amp;operator=contains&amp;value=[% i.author %]&amp;resultsperpage=20&amp;orderby=biblio.title&amp;op=do_search">More by this Author</a>[% END %]
]]></description>
</item>
[% END %]
</rdf:RDF>