From b2d3bdbaf5ba151a598fb581ea34c254331d4138 Mon Sep 17 00:00:00 2001
From: Mark Tompsett <mtompset@hotmail.com>
Date: Tue, 9 May 2017 00:15:23 -0400
Subject: [PATCH] Bug 18560: RSS link in opac shelves is broken
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
TEST PLAN
---------
1) have books entered
2) log in create a list
3) add books to list
4) display list
5) click the RSS link button.
-- bad HASH error.
6) apply patch
7) repeat steps 4&5
-- readble junk without error messages.
8) run koha qa test tools
Signed-off-by: Marc Véron <veron@veron.ch>
---
opac/opac-shelves.pl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl
index 3240506..02052de 100755
--- a/opac/opac-shelves.pl
+++ b/opac/opac-shelves.pl
@@ -316,8 +316,8 @@ if ( $op eq 'view' ) {
}
if ( $query->param('rss') ) {
- $this_item->{title} = $content->biblionumber->title;
- $this_item->{author} = $content->biblionumber->author;
+ $this_item->{title} = $content->_result('biblionumber')->biblionumber->title;
+ $this_item->{author} = $content->_result('biblionumber')->biblionumber->author;
}
$this_item->{biblionumber} = $biblionumber;
--
2.1.4