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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-4 / +5 lines)
Lines 170-176 Link Here
170
                                                        [% IF ( bt_id ) %]
170
                                                        [% IF ( bt_id ) %]
171
                                                            <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
171
                                                            <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
172
                                                        [% ELSE %]
172
                                                        [% ELSE %]
173
                                                            <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_isbn! -->
173
                                                            <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
174
                                                        [% END %]
174
                                                        [% END %]
175
                                                    [% END %]
175
                                                    [% END %]
176
176
Lines 410-419 Link Here
410
                                                    [% END %]
410
                                                    [% END %]
411
411
412
                                                    [% IF ( BakerTaylorEnabled ) %]
412
                                                    [% IF ( BakerTaylorEnabled ) %]
413
                                                        [% IF ( OVERDUE.normalized_isbn ) %]
413
                                                        [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
414
                                                            <a href="https://[% BakerTaylorBookstoreURL |html %][% OVERDUE.normalized_isbn %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% OVERDUE.normalized_isbn %]" /></a>
414
                                                        [% IF ( bt_id ) %]
415
                                                            <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
415
                                                        [% ELSE %]
416
                                                        [% ELSE %]
416
                                                            <!-- BakerTaylor needs normalized_isbn! --><span class="no-image">No cover image available</span>
417
                                                            <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
417
                                                        [% END %]
418
                                                        [% END %]
418
                                                    [% END %]
419
                                                    [% END %]
419
420
(-)a/opac/opac-readingrecord.pl (-1 / +1 lines)
Lines 97-103 foreach my $issue ( @{$issues} ) { Link Here
97
            C4::Context->preference('marcflavour') );
97
            C4::Context->preference('marcflavour') );
98
        $issue->{subtitle} =
98
        $issue->{subtitle} =
99
          GetRecordValue( 'subtitle', $marc_rec, $issue->{frameworkcode} );
99
          GetRecordValue( 'subtitle', $marc_rec, $issue->{frameworkcode} );
100
        $issue->{normalized_upc} = GetNormalizedUPC( $marc_rec, $issue->{frameworkcode} );
100
        $issue->{normalized_upc} = GetNormalizedUPC( $marc_rec, C4::Context->preference('marcflavour') );
101
    }
101
    }
102
    # My Summary HTML
102
    # My Summary HTML
103
    if ($opac_summary_html) {
103
    if ($opac_summary_html) {
(-)a/opac/opac-user.pl (-2 / +3 lines)
Lines 185-191 if ($issues){ Link Here
185
            }
185
            }
186
        }
186
        }
187
        $issue->{'charges'} = $charges;
187
        $issue->{'charges'} = $charges;
188
        $issue->{'subtitle'} = GetRecordValue('subtitle', GetMarcBiblio($issue->{'biblionumber'}), GetFrameworkCode($issue->{'biblionumber'}));
188
        my $marcrecord = GetMarcBiblio( $issue->{'biblionumber'} );
189
        $issue->{'subtitle'} = GetRecordValue('subtitle', $marcrecord, GetFrameworkCode($issue->{'biblionumber'}));
189
        # check if item is renewable
190
        # check if item is renewable
190
        my ($status,$renewerror) = CanBookBeRenewed( $borrowernumber, $issue->{'itemnumber'} );
191
        my ($status,$renewerror) = CanBookBeRenewed( $borrowernumber, $issue->{'itemnumber'} );
191
        ($issue->{'renewcount'},$issue->{'renewsallowed'},$issue->{'renewsleft'}) = GetRenewCount($borrowernumber, $issue->{'itemnumber'});
192
        ($issue->{'renewcount'},$issue->{'renewsallowed'},$issue->{'renewsleft'}) = GetRenewCount($borrowernumber, $issue->{'itemnumber'});
Lines 231-236 if ($issues){ Link Here
231
232
232
        my $isbn = GetNormalizedISBN($issue->{'isbn'});
233
        my $isbn = GetNormalizedISBN($issue->{'isbn'});
233
        $issue->{normalized_isbn} = $isbn;
234
        $issue->{normalized_isbn} = $isbn;
235
        $issue->{normalized_upc} = GetNormalizedUPC( $marcrecord, C4::Context->preference('marcflavour') );
234
236
235
                # My Summary HTML
237
                # My Summary HTML
236
                if (my $my_summary_html = C4::Context->preference('OPACMySummaryHTML')){
238
                if (my $my_summary_html = C4::Context->preference('OPACMySummaryHTML')){
237
- 

Return to bug 14607