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

(-)a/opac/opac-showreviews.pl (-12 / +14 lines)
Lines 93-99 for my $result (@$reviews){ Link Here
93
    my $biblioitem = $biblio->biblioitem;
93
    my $biblioitem = $biblio->biblioitem;
94
    my $record = GetMarcBiblio({ biblionumber => $biblionumber });
94
    my $record = GetMarcBiblio({ biblionumber => $biblionumber });
95
    my $frameworkcode = GetFrameworkCode($biblionumber);
95
    my $frameworkcode = GetFrameworkCode($biblionumber);
96
    my $borr = Koha::Patrons->find( $result->{borrowernumber} )->unblessed;
97
	$result->{normalized_upc} = GetNormalizedUPC($record,$marcflavour);
96
	$result->{normalized_upc} = GetNormalizedUPC($record,$marcflavour);
98
	$result->{normalized_ean} = GetNormalizedEAN($record,$marcflavour);
97
	$result->{normalized_ean} = GetNormalizedEAN($record,$marcflavour);
99
	$result->{normalized_oclc} = GetNormalizedOCLCNumber($record,$marcflavour);
98
	$result->{normalized_oclc} = GetNormalizedOCLCNumber($record,$marcflavour);
Lines 108-124 for my $result (@$reviews){ Link Here
108
    $result->{size} = $biblioitem->size;
107
    $result->{size} = $biblioitem->size;
109
    $result->{notes} = $biblioitem->notes;
108
    $result->{notes} = $biblioitem->notes;
110
    $result->{timestamp} = $biblioitem->timestamp;
109
    $result->{timestamp} = $biblioitem->timestamp;
111
    $result->{borrtitle} = $borr->{'title'};
112
	$result->{firstname} = $borr->{'firstname'};
113
	$result->{surname} = $borr->{'surname'};
114
    $result->{userid} = $borr->{'userid'};
115
        if ($libravatar_enabled and $borr->{'email'}) {
116
            $result->{avatarurl} = libravatar_url(email => $borr->{'email'}, size => 40, https => $ENV{HTTPS});
117
        }
118
110
119
    if ($result->{borrowernumber} eq $borrowernumber) {
111
    my $patron = Koha::Patrons->find( $result->{borrowernumber} );
120
		$result->{your_comment} = 1;
112
    if ( $patron ) {
121
	}
113
        $result->{borrtitle} = $patron->title;
114
        $result->{firstname} = $patron->firstname;
115
        $result->{surname} = $patron->surname;
116
        $result->{userid} = $patron->userid;
117
            if ($libravatar_enabled and $patron->email) {
118
                $result->{avatarurl} = libravatar_url(email => $patron->email, size => 40, https => $ENV{HTTPS});
119
            }
120
121
        if ($result->{borrowernumber} eq $borrowernumber) {
122
            $result->{your_comment} = 1;
123
        }
124
    }
122
125
123
    if($format eq "rss"){
126
    if($format eq "rss"){
124
        my $rsstimestamp = eval { dt_from_string( $result->{datereviewed} ); };
127
        my $rsstimestamp = eval { dt_from_string( $result->{datereviewed} ); };
125
- 

Return to bug 19808