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

(-)a/C4/UsageStats.pm (+1 lines)
Lines 235-240 sub _shared_preferences { Link Here
235
        OPACAmazonCoverImages
235
        OPACAmazonCoverImages
236
        Babeltheque
236
        Babeltheque
237
        BakerTaylorEnabled
237
        BakerTaylorEnabled
238
        OPACBakerTaylorEnabled
238
        GoogleJackets
239
        GoogleJackets
239
        HTML5MediaEnabled
240
        HTML5MediaEnabled
240
        LibraryThingForLibrariesEnabled
241
        LibraryThingForLibrariesEnabled
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 484-489 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
484
('OPACAmazonCoverImages','0','','Display cover images on OPAC from Amazon Web Services','YesNo'),
484
('OPACAmazonCoverImages','0','','Display cover images on OPAC from Amazon Web Services','YesNo'),
485
('OPACAuthorIdentifiersAndInformation', '', '', 'Display author information on the OPAC detail page','multiple_sortable'),
485
('OPACAuthorIdentifiersAndInformation', '', '', 'Display author information on the OPAC detail page','multiple_sortable'),
486
('OpacAuthorities','1',NULL,'If ON, enables the search authorities link on OPAC','YesNo'),
486
('OpacAuthorities','1',NULL,'If ON, enables the search authorities link on OPAC','YesNo'),
487
('OPACBakerTaylorEnabled','0','','Enable or disable all Baker & Taylor features in the OPAC.','YesNo'),
487
('OPACBaseURL','',NULL,'Specify the Base URL of the OPAC, e.g., http://opac.mylibrary.com, including the protocol (http:// or https://). Otherwise, the http:// will be added automatically by Koha upon saving.','Free'),
488
('OPACBaseURL','',NULL,'Specify the Base URL of the OPAC, e.g., http://opac.mylibrary.com, including the protocol (http:// or https://). Otherwise, the http:// will be added automatically by Koha upon saving.','Free'),
488
('opacbookbag','1','','If ON, enables display of Cart feature','YesNo'),
489
('opacbookbag','1','','If ON, enables display of Cart feature','YesNo'),
489
('OpacBrowser','0',NULL,'If ON, enables subject authorities browser on OPAC (needs to set misc/cronjob/sbuild_browser_and_cloud.pl)','YesNo'),
490
('OpacBrowser','0',NULL,'If ON, enables subject authorities browser on OPAC (needs to set misc/cronjob/sbuild_browser_and_cloud.pl)','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +1 lines)
Lines 236-242 Link Here
236
        </div>
236
        </div>
237
        <!-- /.col-xs-* -->
237
        <!-- /.col-xs-* -->
238
238
239
        [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
239
        [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) || Koha.Preference( "BakerTaylorEnabled" ) ) %]
240
            <div class="col-sm-3 bookcoverimg">
240
            <div class="col-sm-3 bookcoverimg">
241
                <div id="biblio-cover-slider" class="cover-slider" data-isbn="[% normalized_isbn | html %]">
241
                <div id="biblio-cover-slider" class="cover-slider" data-isbn="[% normalized_isbn | html %]">
242
                    [% IF ( LocalCoverImages ) %]
242
                    [% IF ( LocalCoverImages ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-4 / +6 lines)
Lines 46-51 Link Here
46
[% CoceHost        = Koha.Preference('CoceHost') %]
46
[% CoceHost        = Koha.Preference('CoceHost') %]
47
[% SyndeticsCovers = Koha.Preference('SyndeticsEnabled') && Koha.Preference('SyndeticsCoverImages') %]
47
[% SyndeticsCovers = Koha.Preference('SyndeticsEnabled') && Koha.Preference('SyndeticsCoverImages') %]
48
[% SyndeticsCoverImageSize = Koha.Preference('SyndeticsCoverImageSize') %]
48
[% SyndeticsCoverImageSize = Koha.Preference('SyndeticsCoverImageSize') %]
49
[% CustomCoverImages = ( Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') ) %]
50
[% BakerTaylorEnabled = Koha.Preference('BakerTaylorEnabled') %]
49
51
50
[% WRAPPER 'sub-header.inc' %]
52
[% WRAPPER 'sub-header.inc' %]
51
    [% WRAPPER breadcrumbs %]
53
    [% WRAPPER breadcrumbs %]
Lines 571-577 Link Here
571
                    <table>
573
                    <table>
572
                        <thead>
574
                        <thead>
573
                            <tr>
575
                            <tr>
574
                                [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || Koha.Preference('BakerTaylorEnabled') || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
576
                                [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || IntranetCoce || SyndeticsCovers || BakerTaylorEnabled || CustomCoverImages ) %]
575
                                    <th>&nbsp;</th>
577
                                    <th>&nbsp;</th>
576
                                [% END %]
578
                                [% END %]
577
                                <th colspan="2">Results</th>
579
                                <th colspan="2">Results</th>
Lines 583-589 Link Here
583
                        <tbody>
585
                        <tbody>
584
                            [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
586
                            [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
585
                                <tr id="row[% SEARCH_RESULT.biblionumber | html %]">
587
                                <tr id="row[% SEARCH_RESULT.biblionumber | html %]">
586
                                    [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || Koha.Preference('BakerTaylorEnabled') || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
588
                                    [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || IntranetCoce || SyndeticsCovers || BakerTaylorEnabled || CustomCoverImages ) %]
587
                                        <td class="bookcoverimg">
589
                                        <td class="bookcoverimg">
588
                                            <div
590
                                            <div
589
                                                id="cover-slides-[% SEARCH_RESULT.biblionumber | html %]"
591
                                                id="cover-slides-[% SEARCH_RESULT.biblionumber | html %]"
Lines 637-643 Link Here
637
                                                [% END %]
639
                                                [% END %]
638
640
639
                                                [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
641
                                                [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
640
                                                [% IF ( Koha.Preference('BakerTaylorEnabled') && bt_id ) %]
642
                                                [% IF ( BakerTaylorEnabled && bt_id ) %]
641
                                                    [% SET BakerTaylorImageURL = "https://contentcafe2.btol.com/ContentCafe/Jacket.aspx?UserID=${ Koha.Preference('BakerTaylorUsername') }&Password=${ Koha.Preference('BakerTaylorPassword') }&Options=Y&Return=T&Type=S&Value=$bt_id" %]
643
                                                    [% SET BakerTaylorImageURL = "https://contentcafe2.btol.com/ContentCafe/Jacket.aspx?UserID=${ Koha.Preference('BakerTaylorUsername') }&Password=${ Koha.Preference('BakerTaylorPassword') }&Options=Y&Return=T&Type=S&Value=$bt_id" %]
642
                                                    <div class="cover-image bakertaylor-coverimg" id="bakertaylor-coverimg">
644
                                                    <div class="cover-image bakertaylor-coverimg" id="bakertaylor-coverimg">
643
                                                        [% IF BakerTaylorBookstoreURL %]
645
                                                        [% IF BakerTaylorBookstoreURL %]
Lines 653-659 Link Here
653
                                                    </div>
655
                                                    </div>
654
                                                [% END %]
656
                                                [% END %]
655
657
656
                                                [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
658
                                                [% IF CustomCoverImages %]
657
                                                    [% SET custom_cover_image_url = SEARCH_RESULT.biblio_object.custom_cover_image_url %]
659
                                                    [% SET custom_cover_image_url = SEARCH_RESULT.biblio_object.custom_cover_image_url %]
658
                                                    [% IF custom_cover_image_url %]
660
                                                    [% IF custom_cover_image_url %]
659
                                                        <div id="custom-coverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image custom-coverimg">
661
                                                        <div id="custom-coverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image custom-coverimg">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-1 / +1 lines)
Lines 159-165 Link Here
159
    [% Asset.js("js/localcovers.js") | $raw %]
159
    [% Asset.js("js/localcovers.js") | $raw %]
160
[% END %]
160
[% END %]
161
161
162
[% IF ( BakerTaylorEnabled ) %]
162
[% IF ( OPACBakerTaylorEnabled ) %]
163
    [% Asset.js("js/bakertaylorimages.js") | $raw %]
163
    [% Asset.js("js/bakertaylorimages.js") | $raw %]
164
    <script>
164
    <script>
165
        $(window).load(function () {
165
        $(window).load(function () {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc (-8 / +5 lines)
Lines 32-38 Link Here
32
                                [% img_title = item.biblionumber %]
32
                                [% img_title = item.biblionumber %]
33
                            [% END %]
33
                            [% END %]
34
34
35
                            [% IF ( OPACLocalCoverImages || OPACAmazonCoverImages || ( SyndeticsEnabled && SyndeticsCoverImages ) || GoogleJackets || BakerTaylorEnabled || ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) || ( Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') ) ) %]
35
                            [% IF ( OPACLocalCoverImages || OPACAmazonCoverImages || ( SyndeticsEnabled && SyndeticsCoverImages ) || GoogleJackets || Koha.Preference('OPACBakerTaylorEnabled') || ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) || ( Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') ) ) %]
36
                                <a
36
                                <a
37
                                    class="shelfbrowser_cover"
37
                                    class="shelfbrowser_cover"
38
                                    href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% item.biblionumber | uri %]&amp;shelfbrowse_itemnumber=[% item.itemnumber | uri %]#shelfbrowser"
38
                                    href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% item.biblionumber | uri %]&amp;shelfbrowse_itemnumber=[% item.itemnumber | uri %]#shelfbrowser"
Lines 73-86 Link Here
73
                                        [% coce_id = item.browser_normalized_ean || item.browser_normalized_isbn | html %]
73
                                        [% coce_id = item.browser_normalized_ean || item.browser_normalized_isbn | html %]
74
                                        <div title="[% img_title | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview-[% coce_id | html %]"></div>
74
                                        <div title="[% img_title | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview-[% coce_id | html %]"></div>
75
                                    [% END %]
75
                                    [% END %]
76
                                    [% IF ( BakerTaylorEnabled ) %]
76
                                    [% bt_id = ( item.browser_normalized_upc || item.browser_normalized_isbn ) %]
77
                                        [% bt_id = ( item.browser_normalized_upc || item.browser_normalized_isbn ) | html %]
77
                                    [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
78
                                        [% IF ( bt_id ) %]
78
                                        <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
79
                                            <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
80
                                        [% ELSE %]
81
                                            <span class="no-image">No cover image available</span>
82
                                        [% END %]
83
                                    [% END %]
79
                                    [% END %]
80
84
                                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
81
                                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
85
                                        [% SET custom_cover_image_url = item.biblio_object.custom_cover_image_url %]
82
                                        [% SET custom_cover_image_url = item.biblio_object.custom_cover_image_url %]
86
                                        [% IF custom_cover_image_url %]
83
                                        [% IF custom_cover_image_url %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt (-3 / +10 lines)
Lines 81-89 Link Here
81
                                    [% END %]
81
                                    [% END %]
82
                                [% END %]
82
                                [% END %]
83
                                [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
83
                                [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
84
                                [% IF ( BakerTaylorEnabled ) %]
84
                                [% IF ( Koha.Preference( "OPACBakerTaylorEnabled" ) ) %]
85
                                    [% SET BakerTaylorImageURL = "https://contentcafe2.btol.com/ContentCafe/Jacket.aspx?UserID=${ Koha.Preference('BakerTaylorUsername') }&Password=${ Koha.Preference('BakerTaylorPassword') }&Options=Y&Return=T&Type=S&Value=$bt_id" %]
85
                                    [% IF bt_id %]
86
                                    [% IF bt_id %]
86
                                        <![CDATA[ <a href="https://[% BakerTaylorBookstoreURL |url %][% bt_id | uri %]"><img alt="See Baker &#38; Taylor" src="[% BakerTaylorImageURL |url %][% bt_id | uri %]" /></a> ]]>
87
                                        <![CDATA[
88
                                        [% IF ( Koha.Preference( "BakerTaylorBookstoreURL" ) ) %]
89
                                            <a href="https://[% Koha.Preference( "BakerTaylorBookstoreURL" ) |url %][% bt_id | uri %]"><img alt="See Baker &#38; Taylor" src="[% BakerTaylorImageURL |url %]" /></a>
90
                                        [% ELSE %]
91
                                            <img alt="See Baker &#38; Taylor" src="[% BakerTaylorImageURL |url %]" />
92
                                        [% END %]
93
                                        ]]>
87
                                    [% END %]
94
                                    [% END %]
88
                                [% END %]
95
                                [% END %]
89
96
Lines 193-199 Link Here
193
                                    [% END %]
200
                                    [% END %]
194
                                [% END %]
201
                                [% END %]
195
                                [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
202
                                [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
196
                                [% IF ( BakerTaylorEnabled ) %]
203
                                [% IF ( OPACBakerTaylorEnabled ) %]
197
                                    [% IF bt_id %]
204
                                    [% IF bt_id %]
198
                                        <a href="https://[% BakerTaylorBookstoreURL |url %][% bt_id | uri %]"><img alt="See Baker &#38; Taylor" src="[% BakerTaylorImageURL |url %][% bt_id | uri %]" /></a>
205
                                        <a href="https://[% BakerTaylorBookstoreURL |url %][% bt_id | uri %]"><img alt="See Baker &#38; Taylor" src="[% BakerTaylorImageURL |url %][% bt_id | uri %]" /></a>
199
                                    [% END %]
206
                                    [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt (-8 / +3 lines)
Lines 157-171 Link Here
157
                            [% END %]
157
                            [% END %]
158
                        [% END %]
158
                        [% END %]
159
159
160
                        [% IF Koha.Preference( "BakerTaylorEnabled" ) || Koha.Preference( "SyndeticsEnabled" ) && Koha.Preference( "SyndeticsCoverImages" ) %]
160
                        [% IF Koha.Preference( "OPACBakerTaylorEnabled" ) %]
161
                            [% SET normalized_upc = biblio.normalized_upc %]
161
                            [% bt_id = ( biblio.normalized_upc || biblio.normalized_isbn ) %]
162
                        [% END %]
163
                        [% IF Koha.Preference( "BakerTaylorEnabled" ) %]
164
                            [% bt_id = ( normalized_upc || normalized_isbn ) %]
165
                            [% IF ( bt_id ) %]
162
                            [% IF ( bt_id ) %]
166
                                <a href="https://[% Koha.Preference( "BakerTaylorBookstoreURL" ) | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
163
                                <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
167
                            [% ELSE %]
168
                                <span class="no-image">No cover image available</span>
169
                            [% END %]
164
                            [% END %]
170
                        [% END %]
165
                        [% END %]
171
166
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-1 / +1 lines)
Lines 20-26 Link Here
20
[% SET SyndeticsCoverImages = ( Koha.Preference('SyndeticsEnabled') && Koha.Preference('SyndeticsCoverImages') ) %]
20
[% SET SyndeticsCoverImages = ( Koha.Preference('SyndeticsEnabled') && Koha.Preference('SyndeticsCoverImages') ) %]
21
[% SET GoogleJackets = Koha.Preference('GoogleJackets') %]
21
[% SET GoogleJackets = Koha.Preference('GoogleJackets') %]
22
[% SET OpenLibraryCovers = Koha.Preference('OpenLibraryCovers') %]
22
[% SET OpenLibraryCovers = Koha.Preference('OpenLibraryCovers') %]
23
[% SET BakerTaylorEnabled = Koha.Preference('BakerTaylorEnabled') %]
23
[% SET BakerTaylorEnabled = Koha.Preference('OPACBakerTaylorEnabled') %]
24
[% SET OPACCoce = ( Koha.Preference('OPACCoce') && Koha.Preference('CoceProviders') ) %]
24
[% SET OPACCoce = ( Koha.Preference('OPACCoce') && Koha.Preference('CoceProviders') ) %]
25
[% IF ( CoverImagePlugins || OPACLocalCoverImages || OPACAmazonCoverImages || SyndeticsCoverImages || GoogleJackets || OpenLibraryCovers || BakerTaylorEnabled || OPACCoce || OPACCustomCoverImages ) %]
25
[% IF ( CoverImagePlugins || OPACLocalCoverImages || OPACAmazonCoverImages || SyndeticsCoverImages || GoogleJackets || OpenLibraryCovers || BakerTaylorEnabled || OPACCoce || OPACCustomCoverImages ) %]
26
    [% SET CoverImages = 1 %]
26
    [% SET CoverImages = 1 %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-15 / +6 lines)
Lines 467-489 Link Here
467
                                                                [% END %]
467
                                                                [% END %]
468
                                                            </a>
468
                                                            </a>
469
                                                            <!-- / .p1 -->
469
                                                            <!-- / .p1 -->
470
                                                            [% IF ( Koha.Preference('BakerTaylorEnabled') && !Koha.Preference('BakerTaylorBookstoreURL') ) %]
470
                                                            [% bt_id = ( itemsloo.normalized_upc || itemsloo.normalized_isbn ) %]
471
                                                                [% bt_id = ( itemsloo.normalized_upc || itemsloo.normalized_isbn ) %]
471
                                                            [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
472
                                                                [% IF ( bt_id ) %]
472
                                                                [% IF ( BakerTaylorLinkURL ) %]
473
                                                                    <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
473
                                                                    <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
474
                                                                [% ELSE %]
474
                                                                        <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
475
                                                                    <span class="no-image">No cover image available</span>
476
                                                                [% END %]
477
                                                            [% END %]
478
479
                                                            [% IF ( Koha.Preference('BakerTaylorEnabled') && Koha.Preference('BakerTaylorBookstoreURL') ) %]
480
                                                                [% bt_id = ( itemsloo.normalized_upc || itemsloo.normalized_isbn ) %]
481
                                                                [% IF ( bt_id ) %]
482
                                                                    <a href="https://[% Koha.Preference('BakerTaylorBookstoreURL') | uri %][% bt_id | uri %]">
483
                                                                        <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
484
                                                                    </a>
475
                                                                    </a>
485
                                                                [% ELSE %]
476
                                                                [% ELSE %]
486
                                                                    <span class="no-image">No cover image available</span>
477
                                                                    <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
487
                                                                [% END %]
478
                                                                [% END %]
488
                                                            [% END %]
479
                                                            [% END %]
489
480
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews-rss.tt (-1 / +3 lines)
Lines 28-34 Link Here
28
                    [% END %][% END %][% END %]
28
                    [% END %][% END %][% END %]
29
29
30
                    [% bt_id = ( review.normalized_upc || review.normalized_isbn ) %]
30
                    [% bt_id = ( review.normalized_upc || review.normalized_isbn ) %]
31
                    [% IF ( BakerTaylorEnabled && bt_id ) %]<a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>[% END %]
31
                    [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
32
                        <a href="https://[% BakerTaylorLinkURL | uri %][% bt_id | uri %]"><img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
33
                    [% END %]
32
34
33
                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
35
                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
34
                        [% SET custom_cover_image_url = review.biblio_object.custom_cover_image_url %]
36
                        [% SET custom_cover_image_url = review.biblio_object.custom_cover_image_url %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt (-4 / +7 lines)
Lines 139-150 Link Here
139
                                            [% END %]
139
                                            [% END %]
140
                                        [% END %]
140
                                        [% END %]
141
                                    </a>
141
                                    </a>
142
142
                                    [% bt_id = ( review.normalized_upc || review.normalized_isbn ) %]
143
                                    [% bt_id = ( review.normalized_upc || review.normalized_isbn ) %]
143
                                    [% IF ( BakerTaylorEnabled ) %]
144
                                    [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
144
                                        [% IF ( bt_id ) %]
145
                                        [% IF ( BakerTaylorLinkURL ) %]
145
                                            <a href="https://[% review.BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% review.BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
146
                                            <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
147
                                                <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
148
                                            </a>
146
                                        [% ELSE %]
149
                                        [% ELSE %]
147
                                            <span class="no-image">No cover image available</span>
150
                                            <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
148
                                        [% END %]
151
                                        [% END %]
149
                                    [% END %]
152
                                    [% END %]
150
153
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-12 / +14 lines)
Lines 359-371 Link Here
359
                                                                    [% END %]
359
                                                                    [% END %]
360
                                                                [% END %]
360
                                                                [% END %]
361
361
362
                                                                [% IF ( BakerTaylorEnabled ) %]
362
                                                                [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
363
                                                                    [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
363
                                                                [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
364
                                                                    [% IF ( bt_id ) %]
364
                                                                    [% IF ( BakerTaylorLinkURL ) %]
365
                                                                        <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
365
                                                                        <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
366
                                                                            <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
367
                                                                        </a>
366
                                                                    [% ELSE %]
368
                                                                    [% ELSE %]
367
                                                                        <span class="no-image">No cover image available</span
369
                                                                        <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
368
                                                                        ><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
369
                                                                    [% END %]
370
                                                                    [% END %]
370
                                                                [% END %]
371
                                                                [% END %]
371
372
Lines 739-751 Link Here
739
                                                                [% END %]
740
                                                                [% END %]
740
                                                            [% END %]
741
                                                            [% END %]
741
742
742
                                                            [% IF ( BakerTaylorEnabled ) %]
743
                                                            [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
743
                                                                [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
744
                                                            [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
744
                                                                [% IF ( bt_id ) %]
745
                                                                [% IF ( BakerTaylorLinkURL ) %]
745
                                                                    <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
746
                                                                    <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
747
                                                                        <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
748
                                                                    </a>
746
                                                                [% ELSE %]
749
                                                                [% ELSE %]
747
                                                                    <span class="no-image">No cover image available</span
750
                                                                    <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
748
                                                                    ><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
749
                                                                [% END %]
751
                                                                [% END %]
750
                                                            [% END %]
752
                                                            [% END %]
751
753
(-)a/opac/opac-readingrecord.pl (-1 / +1 lines)
Lines 87-93 my $old_checkouts = [ Link Here
87
    )->as_list
87
    )->as_list
88
];
88
];
89
89
90
if ( C4::Context->preference('BakerTaylorEnabled') ) {
90
if ( C4::Context->preference('OPACBakerTaylorEnabled') ) {
91
    $template->param(
91
    $template->param(
92
        JacketImages        => 1,
92
        JacketImages        => 1,
93
        BakerTaylorImageURL => &image_url(),
93
        BakerTaylorImageURL => &image_url(),
(-)a/opac/opac-search.pl (-5 / +3 lines)
Lines 173-184 $template->param( 'OPACNoResultsFound' => C4::Context->preference('OPACNoResults Link Here
173
173
174
$template->param( OpacStarRatings => C4::Context->preference("OpacStarRatings") );
174
$template->param( OpacStarRatings => C4::Context->preference("OpacStarRatings") );
175
175
176
if ( C4::Context->preference('BakerTaylorEnabled') ) {
176
if ( C4::Context->preference('OPACBakerTaylorEnabled') ) {
177
    $template->param(
177
    $template->param(
178
        BakerTaylorEnabled      => 1,
178
        BakerTaylorImageURL => &image_url(),
179
        BakerTaylorImageURL     => &image_url(),
179
        BakerTaylorLinkURL  => &link_url(),
180
        BakerTaylorLinkURL      => &link_url(),
181
        BakerTaylorBookstoreURL => C4::Context->preference('BakerTaylorBookstoreURL'),
182
    );
180
    );
183
}
181
}
184
182
(-)a/opac/opac-showreviews.pl (+8 lines)
Lines 31-36 use C4::Koha qw( Link Here
31
use C4::Output      qw( output_html_with_http_headers );
31
use C4::Output      qw( output_html_with_http_headers );
32
use Koha::DateUtils qw( dt_from_string );
32
use Koha::DateUtils qw( dt_from_string );
33
use Koha::Biblios;
33
use Koha::Biblios;
34
use C4::External::BakerTaylor qw( image_url link_url );
34
use Koha::Patrons;
35
use Koha::Patrons;
35
use Koha::Reviews;
36
use Koha::Reviews;
36
use POSIX qw( ceil floor );
37
use POSIX qw( ceil floor );
Lines 199-204 $template->param( Link Here
199
) unless $pages < 2;
200
) unless $pages < 2;
200
$template->param( next_page_offset => $next_page_offset ) unless $pages eq $current_page_number;
201
$template->param( next_page_offset => $next_page_offset ) unless $pages eq $current_page_number;
201
202
203
if ( C4::Context->preference("OPACBakerTaylorEnabled") ) {
204
    $template->param(
205
        BakerTaylorImageURL => &image_url(),
206
        BakerTaylorLinkURL  => &link_url(),
207
    );
208
}
209
202
$template->param(
210
$template->param(
203
    reviews          => $reviews,
211
    reviews          => $reviews,
204
    results_per_page => $results_per_page,
212
    results_per_page => $results_per_page,
(-)a/opac/opac-user.pl (-8 / +5 lines)
Lines 298-304 if ( $pending_checkouts->count ) { # Useless test Link Here
298
        my $isbn = GetNormalizedISBN( $issue->{'isbn'} );
298
        my $isbn = GetNormalizedISBN( $issue->{'isbn'} );
299
        $issue->{normalized_isbn} = $isbn;
299
        $issue->{normalized_isbn} = $isbn;
300
300
301
        if (   C4::Context->preference('BakerTaylorEnabled')
301
        if (   C4::Context->preference('OPACBakerTaylorEnabled')
302
            || C4::Context->preference('SyndeticsEnabled')
302
            || C4::Context->preference('SyndeticsEnabled')
303
            || C4::Context->preference('SyndeticsCoverImages') )
303
            || C4::Context->preference('SyndeticsCoverImages') )
304
        {
304
        {
Lines 356-373 if ( C4::Context->preference('UseRecalls') ) { Link Here
356
    $template->param( RECALLS => $recalls );
356
    $template->param( RECALLS => $recalls );
357
}
357
}
358
358
359
if ( C4::Context->preference('BakerTaylorEnabled') ) {
359
if ( C4::Context->preference('OPACBakerTaylorEnabled') ) {
360
    $template->param(
360
    $template->param(
361
        BakerTaylorEnabled      => 1,
361
        BakerTaylorImageURL => &image_url(),
362
        BakerTaylorImageURL     => &image_url(),
362
        BakerTaylorLinkURL  => &link_url(),
363
        BakerTaylorLinkURL      => &link_url(),
364
        BakerTaylorBookstoreURL => C4::Context->preference('BakerTaylorBookstoreURL'),
365
    );
363
    );
366
}
364
}
367
365
368
if (   C4::Context->preference("OPACAmazonCoverImages")
366
if (   C4::Context->preference("OPACAmazonCoverImages")
369
    or C4::Context->preference("GoogleJackets")
367
    or C4::Context->preference("GoogleJackets")
370
    or C4::Context->preference("BakerTaylorEnabled")
368
    or C4::Context->preference("OPACBakerTaylorEnabled")
371
    or C4::Context->preference("SyndeticsCoverImages")
369
    or C4::Context->preference("SyndeticsCoverImages")
372
    or ( C4::Context->preference('OPACCustomCoverImages') and C4::Context->preference('CustomCoverImagesURL') ) )
370
    or ( C4::Context->preference('OPACCustomCoverImages') and C4::Context->preference('CustomCoverImagesURL') ) )
373
{
371
{
374
- 

Return to bug 28307