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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt (-5 / +5 lines)
Lines 139-145 Link Here
139
                    </td>
139
                    </td>
140
                    <td>
140
                    <td>
141
                        [% SET normalized_isbn = biblio.normalized_isbn %]
141
                        [% SET normalized_isbn = biblio.normalized_isbn %]
142
                        [% IF OPACAmazonCoverImages %]
142
                        [% IF Koha.Preference('OPACAmazonCoverImages') %]
143
                            [% IF normalized_isbn %]
143
                            [% IF normalized_isbn %]
144
                                <a href="http://www.amazon.com/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"
144
                                <a href="http://www.amazon.com/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"
145
                                    ><img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.THUMBZZZ.jpg" alt="" class="item-thumbnail"
145
                                    ><img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.THUMBZZZ.jpg" alt="" class="item-thumbnail"
Lines 149-155 Link Here
149
                            [% END %]
149
                            [% END %]
150
                        [% END %]
150
                        [% END %]
151
151
152
                        [% IF GoogleJackets %]
152
                        [% IF Koha.Preference( "GoogleJackets" ) %]
153
                            [% IF normalized_isbn %]
153
                            [% IF normalized_isbn %]
154
                                <div title="[% biblio.biblionumber |url %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
154
                                <div title="[% biblio.biblionumber |url %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
155
                            [% ELSE %]
155
                            [% ELSE %]
Lines 157-169 Link Here
157
                            [% END %]
157
                            [% END %]
158
                        [% END %]
158
                        [% END %]
159
159
160
                        [% IF BakerTaylorEnabled || SyndeticsEnabled && SyndeticsCoverImages %]
160
                        [% IF Koha.Preference( "BakerTaylorEnabled" ) || Koha.Preference( "SyndeticsEnabled" ) && Koha.Preference( "SyndeticsCoverImages" ) %]
161
                            [% SET normalized_upc = biblio.normalized_upc %]
161
                            [% SET normalized_upc = biblio.normalized_upc %]
162
                        [% END %]
162
                        [% END %]
163
                        [% IF BakerTaylorEnabled %]
163
                        [% IF Koha.Preference( "BakerTaylorEnabled" ) %]
164
                            [% bt_id = ( normalized_upc || normalized_isbn ) %]
164
                            [% bt_id = ( normalized_upc || normalized_isbn ) %]
165
                            [% IF ( bt_id ) %]
165
                            [% IF ( bt_id ) %]
166
                                <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
166
                                <a href="https://[% Koha.Preference( "BakerTaylorBookstoreURL" ) | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
167
                            [% ELSE %]
167
                            [% ELSE %]
168
                                <span class="no-image">No cover image available</span>
168
                                <span class="no-image">No cover image available</span>
169
                            [% END %]
169
                            [% END %]
(-)a/opac/opac-readingrecord.pl (-12 / +3 lines)
Lines 89-108 my $old_checkouts = [ Link Here
89
89
90
if ( C4::Context->preference('BakerTaylorEnabled') ) {
90
if ( C4::Context->preference('BakerTaylorEnabled') ) {
91
    $template->param(
91
    $template->param(
92
        JacketImages            => 1,
92
        JacketImages        => 1,
93
        BakerTaylorEnabled      => 1,
93
        BakerTaylorImageURL => &image_url(),
94
        BakerTaylorImageURL     => &image_url(),
94
        BakerTaylorLinkURL  => &link_url(),
95
        BakerTaylorLinkURL      => &link_url(),
96
        BakerTaylorBookstoreURL => C4::Context->preference('BakerTaylorBookstoreURL'),
97
    );
95
    );
98
}
96
}
99
97
100
for (qw(AmazonCoverImages GoogleJackets)) {    # BakerTaylorEnabled handled above
101
    C4::Context->preference($_) or next;
102
    $template->param( $_           => 1 );
103
    $template->param( JacketImages => 1 );
104
}
105
106
my $saving_display = C4::Context->preference('OPACShowSavings');
98
my $saving_display = C4::Context->preference('OPACShowSavings');
107
if ( $saving_display =~ /checkouthistory/ ) {
99
if ( $saving_display =~ /checkouthistory/ ) {
108
    $template->param( savings => $patron->get_savings );
100
    $template->param( savings => $patron->get_savings );
109
- 

Return to bug 18798