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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-2 / +13 lines)
Lines 368-377 Link Here
368
                                                            [% END %]
368
                                                            [% END %]
369
369
370
                                                        </a> <!-- / .p1 -->
370
                                                        </a> <!-- / .p1 -->
371
                                                        [% IF ( BakerTaylorEnabled ) %]
371
                                                        [% IF ( Koha.Preference('BakerTaylorEnabled') && !Koha.Preference('BakerTaylorBookstoreURL') ) %]
372
                                                            [% bt_id = ( itemsloo.normalized_upc || itemsloo.normalized_isbn ) %]
372
                                                            [% bt_id = ( itemsloo.normalized_upc || itemsloo.normalized_isbn ) %]
373
                                                            [% IF ( bt_id ) %]
373
                                                            [% IF ( bt_id ) %]
374
                                                                <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
374
                                                                <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
375
                                                            [% ELSE %]
376
                                                                <span class="no-image">No cover image available</span>
377
                                                            [% END %]
378
                                                        [% END %]
379
380
                                                        [% IF ( Koha.Preference('BakerTaylorEnabled') && Koha.Preference('BakerTaylorBookstoreURL') ) %]
381
                                                            [% bt_id = ( itemsloo.normalized_upc || itemsloo.normalized_isbn ) %]
382
                                                            [% IF ( bt_id ) %]
383
                                                                <a href="https://[% Koha.Preference('BakerTaylorBookstoreURL') | uri %][% bt_id | uri %]">
384
                                                                    <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
385
                                                                </a>
375
                                                            [% ELSE %]
386
                                                            [% ELSE %]
376
                                                                <span class="no-image">No cover image available</span>
387
                                                                <span class="no-image">No cover image available</span>
377
                                                            [% END %]
388
                                                            [% END %]
(-)a/opac/opac-shelves.pl (-1 / +7 lines)
Lines 71-76 if( $op eq 'view' || $op eq 'list' ){ Link Here
71
        });
71
        });
72
}
72
}
73
73
74
if (C4::Context->preference("BakerTaylorEnabled")) {
75
    $template->param(
76
        BakerTaylorImageURL => &image_url(),
77
        BakerTaylorLinkURL  => &link_url(),
78
    );
79
}
80
74
my $referer  = $query->param('referer')  || $op;
81
my $referer  = $query->param('referer')  || $op;
75
my $category = $query->param('category') || 1;
82
my $category = $query->param('category') || 1;
76
my ( $shelf, $shelfnumber, @messages );
83
my ( $shelf, $shelfnumber, @messages );
77
- 

Return to bug 23482