Bug 13774 Add the unique anchors of news as links in the RSS for news in Opac
authorViktor Sarge <viktor.sarge@regionhalland.se>
Mon, 2 Mar 2015 13:27:01 +0000 (13:27 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 4 Jan 2016 12:45:53 +0000 (12:45 +0000)
This patch adds the unique anchors of bugs from bug13729 into the rss stream of the news in opac from bug7843.
Since 7843 is already passed QA and I'm new to Git and mess things up I chose to post this update in a separate patch even if it's a tiny change.

The addition of a unique guid tag both help users and keeps validators happy.

Test plan:
* Make sure you are on master in order to get the anchors from bug 13729 (or you could apply it manually).
* Apply bug 7843
* Apply this patch.
* Make shure you have enough news to make the Opac main page scroll.
* Find the RSS link at the bottom om opac main and klick it.
* Verify that the link displayed for each newsitem takes you to the right anchor.

Followed test plan, works as expected. Signed-off-by: Marc VĂ©ron
<veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-news-rss.tt

index 2602226..ac952f5 100644 (file)
@@ -9,6 +9,7 @@
       <item>
         <title>[% newsitem.title |html %]</title>
         <description>[% newsitem.new |html %]</description>
+        <guid>[% OPACBaseURL %]/cgi-bin/koha/opac-main.pl#newsitem[% newsitem.idnew |html %]</guid>
       </item>
       [% END %]
    </channel>