From c3e808baf68a10be948d92f7810c0eef92d5ddbf Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Fri, 26 Mar 2010 11:25:41 +0100 Subject: [PATCH] Bug Fixing opac/opac-readingrecord.pl There was some rebase issues on this script Fixing Error 500 two calls to $issues as an array ref where it is now a hash ref Signed-off-by: Henri-Damien LAURENT Signed-off-by: Galen Charlton --- opac/opac-readingrecord.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opac/opac-readingrecord.pl b/opac/opac-readingrecord.pl index e6550a50ca..7a77f59ad3 100755 --- a/opac/opac-readingrecord.pl +++ b/opac/opac-readingrecord.pl @@ -83,7 +83,7 @@ my @loop_reading; foreach my $issue (@{$issues} ) { my %line; - my $record = GetMarcBiblio($issues->[$i]->{'biblionumber'}); + my $record = GetMarcBiblio($issue->{'biblionumber'}); # XISBN Stuff my $isbn = GetNormalizedISBN($issue->{'isbn'}); @@ -95,12 +95,12 @@ foreach my $issue (@{$issues} ) { $line{date_due} = format_date( $issue->{'date_due'} ); $line{returndate} = format_date( $issue->{'returndate'} ); $line{volumeddesc} = $issue->{'volumeddesc'}; - if($issue{'itemtype'}) { + if($issue->{'itemtype'}) { $line{'description'} = $itemtypes->{ $issue->{'itemtype'} }->{'description'}; $line{imageurl} = getitemtypeimagelocation( 'opac', $itemtypes->{ $issue->{'itemtype'} }->{'imageurl'} ); } push( @loop_reading, \%line ); - $line{subtitle} = GetRecordValue('subtitle', $record, GetFrameworkCode($issues->[$i]->{'biblionumber'})); + $line{subtitle} = GetRecordValue('subtitle', $record, GetFrameworkCode($issue->{'biblionumber'})); } if (C4::Context->preference('BakerTaylorEnabled')) { -- 2.39.5