ocoins => GetCOinSBiblio($biblionumber),
);
-my $libravatar_available = 0;
-
+my $libravatar_enabled = 0;
eval 'use Libravatar::URL';
-if (! $@) {
- $libravatar_available = 1;
+if (!$@ and C4::Context->preference('ShowReviewer')) {
+ $libravatar_enabled = 1;
}
my $reviews = getreviews( $biblionumber, 1 );
$_->{title} = $borrowerData->{'title'};
$_->{surname} = $borrowerData->{'surname'};
$_->{firstname} = $borrowerData->{'firstname'};
- if ($libravatar_available and $borrowerData->{'email'}) {
+ if ($libravatar_enabled and $borrowerData->{'email'}) {
$_->{avatarurl} = libravatar_url(email => $borrowerData->{'email'}, https => $ENV{HTTPS});
}
$_->{userid} = $borrowerData->{'userid'};
);
}
-my $libravatar_available = 0;
-
+my $libravatar_enabled = 0;
eval 'use Libravatar::URL';
-if (! $@) {
- $libravatar_available = 1;
+if (!$@ and C4::Context->preference('ShowReviewer')) {
+ $libravatar_enabled = 1;
}
my $reviews = getallreviews(1,$offset,$results_per_page);
$result->{timestamp} = $bib->{'timestamp'};
$result->{firstname} = $borr->{'firstname'};
$result->{surname} = $borr->{'surname'};
- if ($libravatar_available and $borr->{'email'}) {
+ if ($libravatar_enabled and $borr->{'email'}) {
$result->{avatarurl} = libravatar_url(email => $borr->{'email'}, size => 40, https => $ENV{HTTPS});
}