View | Details | Raw Unified | Return to bug 1917
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves-rss.tt (+18 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
3
<rss version="2.0">
4
5
<channel>
6
 <title>[% shelfname %]</title>
7
 <link>[% OPACBaseURL %]/cgi-bin/koha/opac-shelves.pl?rss=1&amp;viewshelf=[% shelfnumber | html %]</link>
8
 <description>RSS feed for public list [% shelfname | html %]</description>
9
10
[% FOREACH i IN itemsloop %]
11
 <item>
12
  <title>[% i.title %] by [% i.author %]</title>
13
  <link>[% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% i.biblionumber %]</link>
14
 </item>
15
[% END %]
16
17
</channel>
18
</rss>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-1 / +7 lines)
Lines 151-157 Link Here
151
                    [% END # / IF paramsloop %]
151
                    [% END # / IF paramsloop %]
152
152
153
                    [% IF ( viewshelf ) %]<!--  Viewing a particular shelf -->
153
                    [% IF ( viewshelf ) %]<!--  Viewing a particular shelf -->
154
                        <h3>[% shelfname |html %]</h3>
154
                        <h3>
155
                            [% shelfname |html %]
156
                            <a href="[% OPACBaseURL %]/cgi-bin/koha/opac-shelves.pl?rss=1&amp;viewshelf=[% shelfnumber | html %]" class="rss-list-link noprint">
157
                                <img src="[% interface %]/[% theme %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" class="rsssearchicon"/>
158
                            </a>
159
                        </h3>
160
155
                        [% IF ( itemsloop ) %]
161
                        [% IF ( itemsloop ) %]
156
                            <div id="toolbar" class="toolbar clearfix">
162
                            <div id="toolbar" class="toolbar clearfix">
157
                                <div class="list-actions">
163
                                <div class="list-actions">
(-)a/opac/opac-shelves.pl (-2 / +3 lines)
Lines 25-32 use C4::Auth; Link Here
25
25
26
my $query = CGI->new();
26
my $query = CGI->new();
27
27
28
my $template_name = $query->param('rss') ? "opac-shelves-rss.tt" : "opac-shelves.tt";
29
28
my ( $template, $loggedinuser, $cookie ) = get_template_and_user({
30
my ( $template, $loggedinuser, $cookie ) = get_template_and_user({
29
        template_name   => "opac-shelves.tt",
31
        template_name   => $template_name,
30
        query           => $query,
32
        query           => $query,
31
        type            => "opac",
33
        type            => "opac",
32
        authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
34
        authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
33
- 

Return to bug 1917