@@ -, +, @@
calls to GetNormalizedUPC
---
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 9 +++++----
opac/opac-readingrecord.pl | 2 +-
opac/opac-user.pl | 4 +++-
3 files changed, 9 insertions(+), 6 deletions(-)
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
@@ -170,7 +170,7 @@
[% IF ( bt_id ) %]
[% ELSE %]
- No cover image available
+ No cover image available
[% END %]
[% END %]
@@ -410,10 +410,11 @@
[% END %]
[% IF ( BakerTaylorEnabled ) %]
- [% IF ( OVERDUE.normalized_isbn ) %]
-
+ [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
+ [% IF ( bt_id ) %]
+
[% ELSE %]
- No cover image available
+ No cover image available
[% END %]
[% END %]
--- a/opac/opac-readingrecord.pl
+++ a/opac/opac-readingrecord.pl
@@ -97,7 +97,7 @@ foreach my $issue ( @{$issues} ) {
C4::Context->preference('marcflavour') );
$issue->{subtitle} =
GetRecordValue( 'subtitle', $marc_rec, $issue->{frameworkcode} );
- $issue->{normalized_upc} = GetNormalizedUPC( $marc_rec, $issue->{frameworkcode} );
+ $issue->{normalized_upc} = GetNormalizedUPC( $marc_rec, C4::Context->preference('marcflavour') );
}
# My Summary HTML
if ($opac_summary_html) {
--- a/opac/opac-user.pl
+++ a/opac/opac-user.pl
@@ -185,7 +185,8 @@ if ($issues){
}
}
$issue->{'charges'} = $charges;
- $issue->{'subtitle'} = GetRecordValue('subtitle', GetMarcBiblio($issue->{'biblionumber'}), GetFrameworkCode($issue->{'biblionumber'}));
+ my $marcrecord = GetMarcBiblio( $issue->{'biblionumber'} );
+ $issue->{'subtitle'} = GetRecordValue('subtitle', $marcrecord, GetFrameworkCode($issue->{'biblionumber'}));
# check if item is renewable
my ($status,$renewerror) = CanBookBeRenewed( $borrowernumber, $issue->{'itemnumber'} );
($issue->{'renewcount'},$issue->{'renewsallowed'},$issue->{'renewsleft'}) = GetRenewCount($borrowernumber, $issue->{'itemnumber'});
@@ -231,6 +232,7 @@ if ($issues){
my $isbn = GetNormalizedISBN($issue->{'isbn'});
$issue->{normalized_isbn} = $isbn;
+ $issue->{normalized_upc} = GetNormalizedUPC( $marcrecord, C4::Context->preference('marcflavour') );
# My Summary HTML
if (my $my_summary_html = C4::Context->preference('OPACMySummaryHTML')){
--