From 3872ee0ebc4a08860b9c27eed42d4b679d58a1be Mon Sep 17 00:00:00 2001 From: Viktor Sarge Date: Mon, 2 Jun 2014 11:07:07 +0100 Subject: [PATCH] Fix for author of reserved book not displaying in Opac 12336 This patch adds a line in opac-user.pl passing author info to opac-user.tt Thanks to cait for helping me out and showing me how to solve this with half the amount of code. Test plan: * Reserve a book. * Go to the opac and log in as the patron you reserved the book for. * Apply the patch with change to opac-user.pl * Revisit the opac and refresh it. * See if author now shows up --- opac/opac-user.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opac/opac-user.pl b/opac/opac-user.pl index ea363b1..beba580 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -279,6 +279,8 @@ foreach my $res (@reserves) { $res->{'branch'} = $branches->{ $res->{'branchcode'} }->{'branchname'}; my $biblioData = GetBiblioData($res->{'biblionumber'}); $res->{'reserves_title'} = $biblioData->{'title'}; + $res->{'author'} = $biblioData->{'author'}; + if ($show_priority) { $res->{'priority'} ||= ''; } -- 1.7.10.4