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

(-)a/C4/UsageStats.pm (+1 lines)
Lines 229-234 sub _shared_preferences { Link Here
229
        OPACAmazonCoverImages
229
        OPACAmazonCoverImages
230
        Babeltheque
230
        Babeltheque
231
        BakerTaylorEnabled
231
        BakerTaylorEnabled
232
        OPACBakerTaylorEnabled
232
        GoogleJackets
233
        GoogleJackets
233
        HTML5MediaEnabled
234
        HTML5MediaEnabled
234
        LibraryThingForLibrariesEnabled
235
        LibraryThingForLibrariesEnabled
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +2 lines)
Lines 474-479 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
474
('OPACAmazonCoverImages','0','','Display cover images on OPAC from Amazon Web Services','YesNo'),
474
('OPACAmazonCoverImages','0','','Display cover images on OPAC from Amazon Web Services','YesNo'),
475
('OPACAuthorIdentifiersAndInformation', '', '', 'Display author information on the OPAC detail page','multiple_sortable'),
475
('OPACAuthorIdentifiersAndInformation', '', '', 'Display author information on the OPAC detail page','multiple_sortable'),
476
('OpacAuthorities','1',NULL,'If ON, enables the search authorities link on OPAC','YesNo'),
476
('OpacAuthorities','1',NULL,'If ON, enables the search authorities link on OPAC','YesNo'),
477
('OPACBakerTaylorEnabled','0','','Enable or disable all Baker & Taylor features in the OPAC.','YesNo'),
477
('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'),
478
('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'),
478
('opacbookbag','1','','If ON, enables display of Cart feature','YesNo'),
479
('opacbookbag','1','','If ON, enables display of Cart feature','YesNo'),
479
('OpacBrowser','0',NULL,'If ON, enables subject authorities browser on OPAC (needs to set misc/cronjob/sbuild_browser_and_cloud.pl)','YesNo'),
480
('OpacBrowser','0',NULL,'If ON, enables subject authorities browser on OPAC (needs to set misc/cronjob/sbuild_browser_and_cloud.pl)','YesNo'),
Lines 876-879 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
876
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
877
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
877
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'),
878
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'),
878
('z3950Status','','','This syspref allows to define custom YAML based rules for marking items unavailable in z3950 results.','Textarea')
879
('z3950Status','','','This syspref allows to define custom YAML based rules for marking items unavailable in z3950 results.','Textarea')
879
;
880
;
(-)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 569-575 Link Here
569
                    <table>
571
                    <table>
570
                        <thead>
572
                        <thead>
571
                            <tr>
573
                            <tr>
572
                                [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || Koha.Preference('BakerTaylorEnabled') || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
574
                                [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || IntranetCoce || SyndeticsCovers || BakerTaylorEnabled || CustomCoverImages ) %]
573
                                    <th>&nbsp;</th>
575
                                    <th>&nbsp;</th>
574
                                [% END %]
576
                                [% END %]
575
                                <th colspan="2">Results</th>
577
                                <th colspan="2">Results</th>
Lines 581-587 Link Here
581
                        <tbody>
583
                        <tbody>
582
                            [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
584
                            [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
583
                                <tr id="row[% SEARCH_RESULT.biblionumber | html %]">
585
                                <tr id="row[% SEARCH_RESULT.biblionumber | html %]">
584
                                    [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || Koha.Preference('BakerTaylorEnabled') || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
586
                                    [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || IntranetCoce || SyndeticsCovers || BakerTaylorEnabled || CustomCoverImages ) %]
585
                                        <td class="bookcoverimg">
587
                                        <td class="bookcoverimg">
586
                                            <div
588
                                            <div
587
                                                id="cover-slides-[% SEARCH_RESULT.biblionumber | html %]"
589
                                                id="cover-slides-[% SEARCH_RESULT.biblionumber | html %]"
Lines 635-641 Link Here
635
                                                [% END %]
637
                                                [% END %]
636
638
637
                                                [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
639
                                                [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
638
                                                [% IF ( Koha.Preference('BakerTaylorEnabled') && bt_id ) %]
640
                                                [% IF ( BakerTaylorEnabled && bt_id ) %]
639
                                                    [% 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" %]
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" %]
640
                                                    <div class="cover-image bakertaylor-coverimg" id="bakertaylor-coverimg">
642
                                                    <div class="cover-image bakertaylor-coverimg" id="bakertaylor-coverimg">
641
                                                        [% IF BakerTaylorBookstoreURL %]
643
                                                        [% IF BakerTaylorBookstoreURL %]
Lines 651-657 Link Here
651
                                                    </div>
653
                                                    </div>
652
                                                [% END %]
654
                                                [% END %]
653
655
654
                                                [% IF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
656
                                                [% IF CustomCoverImages %]
655
                                                    [% SET custom_cover_image_url = SEARCH_RESULT.biblio_object.custom_cover_image_url %]
657
                                                    [% SET custom_cover_image_url = SEARCH_RESULT.biblio_object.custom_cover_image_url %]
656
                                                    [% IF custom_cover_image_url %]
658
                                                    [% IF custom_cover_image_url %]
657
                                                        <div id="custom-coverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image custom-coverimg">
659
                                                        <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 161-167 Link Here
161
    [% Asset.js("js/localcovers.js") | $raw %]
161
    [% Asset.js("js/localcovers.js") | $raw %]
162
[% END %]
162
[% END %]
163
163
164
[% IF ( BakerTaylorEnabled ) %]
164
[% IF ( OPACBakerTaylorEnabled ) %]
165
    [% Asset.js("js/bakertaylorimages.js") | $raw %]
165
    [% Asset.js("js/bakertaylorimages.js") | $raw %]
166
    <script>
166
    <script>
167
        $(window).load(function () {
167
        $(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 387-399 Link Here
387
                                                                    [% END %]
387
                                                                    [% END %]
388
                                                                [% END %]
388
                                                                [% END %]
389
389
390
                                                                [% IF ( BakerTaylorEnabled ) %]
390
                                                                [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
391
                                                                    [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
391
                                                                [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
392
                                                                    [% IF ( bt_id ) %]
392
                                                                    [% IF ( BakerTaylorLinkURL ) %]
393
                                                                        <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
393
                                                                        <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
394
                                                                            <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
395
                                                                        </a>
394
                                                                    [% ELSE %]
396
                                                                    [% ELSE %]
395
                                                                        <span class="no-image">No cover image available</span
397
                                                                        <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
396
                                                                        ><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
397
                                                                    [% END %]
398
                                                                    [% END %]
398
                                                                [% END %]
399
                                                                [% END %]
399
400
Lines 766-778 Link Here
766
                                                                [% END %]
767
                                                                [% END %]
767
                                                            [% END %]
768
                                                            [% END %]
768
769
769
                                                            [% IF ( BakerTaylorEnabled ) %]
770
                                                            [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
770
                                                                [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
771
                                                            [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
771
                                                                [% IF ( bt_id ) %]
772
                                                                [% IF ( BakerTaylorLinkURL ) %]
772
                                                                    <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
773
                                                                    <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
774
                                                                        <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
775
                                                                    </a>
773
                                                                [% ELSE %]
776
                                                                [% ELSE %]
774
                                                                    <span class="no-image">No cover image available</span
777
                                                                    <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
775
                                                                    ><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
776
                                                                [% END %]
778
                                                                [% END %]
777
                                                            [% END %]
779
                                                            [% END %]
778
780
(-)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