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

(-)a/C4/UsageStats.pm (+1 lines)
Lines 250-255 sub _shared_preferences { Link Here
250
        OPACAmazonCoverImages
250
        OPACAmazonCoverImages
251
        Babeltheque
251
        Babeltheque
252
        BakerTaylorEnabled
252
        BakerTaylorEnabled
253
        OPACBakerTaylorEnabled
253
        GoogleJackets
254
        GoogleJackets
254
        HTML5MediaEnabled
255
        HTML5MediaEnabled
255
        LibraryThingForLibrariesEnabled
256
        LibraryThingForLibrariesEnabled
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 395-400 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
395
('OPACAllowUserToChooseBranch','1','1','Allow the user to choose the branch they want to pickup their hold from','YesNo'),
395
('OPACAllowUserToChooseBranch','1','1','Allow the user to choose the branch they want to pickup their hold from','YesNo'),
396
('OPACAmazonCoverImages','0','','Display cover images on OPAC from Amazon Web Services','YesNo'),
396
('OPACAmazonCoverImages','0','','Display cover images on OPAC from Amazon Web Services','YesNo'),
397
('OpacAuthorities','1',NULL,'If ON, enables the search authorities link on OPAC','YesNo'),
397
('OpacAuthorities','1',NULL,'If ON, enables the search authorities link on OPAC','YesNo'),
398
('OPACBakerTaylorEnabled','0','','Enable or disable all Baker & Taylor features in the OPAC.','YesNo'),
398
('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'),
399
('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'),
399
('opacbookbag','1','','If ON, enables display of Cart feature','YesNo'),
400
('opacbookbag','1','','If ON, enables display of Cart feature','YesNo'),
400
('OpacBrowser','0',NULL,'If ON, enables subject authorities browser on OPAC (needs to set misc/cronjob/sbuild_browser_and_cloud.pl)','YesNo'),
401
('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/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-1 / +1 lines)
Lines 254-260 $.widget.bridge('uitooltip', $.ui.tooltip); Link Here
254
    </script>
254
    </script>
255
[% END %]
255
[% END %]
256
256
257
[% IF ( BakerTaylorEnabled ) %]
257
[% IF ( OPACBakerTaylorEnabled ) %]
258
    [% Asset.js("js/bakertaylorimages.js") | $raw %]
258
    [% Asset.js("js/bakertaylorimages.js") | $raw %]
259
    <script>
259
    <script>
260
260
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc (-8 / +6 lines)
Lines 28-34 Link Here
28
                                [% img_title = item.biblionumber %]
28
                                [% img_title = item.biblionumber %]
29
                            [% END %]
29
                            [% END %]
30
30
31
                            [% IF ( OPACLocalCoverImages || OPACAmazonCoverImages || ( SyndeticsEnabled && SyndeticsCoverImages ) || GoogleJackets || BakerTaylorEnabled || ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) || ( Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') ) ) %]
31
                            [% IF ( OPACLocalCoverImages || OPACAmazonCoverImages || ( SyndeticsEnabled && SyndeticsCoverImages ) || GoogleJackets || Koha.Preference('OPACBakerTaylorEnabled') || ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) || ( Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') ) ) %]
32
                                <a class="shelfbrowser_cover" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% item.biblionumber | uri %]&amp;shelfbrowse_itemnumber=[% item.itemnumber | uri %]#shelfbrowser">
32
                                <a class="shelfbrowser_cover" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% item.biblionumber | uri %]&amp;shelfbrowse_itemnumber=[% item.itemnumber | uri %]#shelfbrowser">
33
                                    [% IF ( OPACLocalCoverImages ) %]
33
                                    [% IF ( OPACLocalCoverImages ) %]
34
                                        <div title="[% img_title | html %]" class="[% item.biblionumber | html %] thumbnail-shelfbrowser" id="local-thumbnail-shelf-[% item.biblionumber | html %]"></div>
34
                                        <div title="[% img_title | html %]" class="[% item.biblionumber | html %] thumbnail-shelfbrowser" id="local-thumbnail-shelf-[% item.biblionumber | html %]"></div>
Lines 62-75 Link Here
62
                                    [% coce_id = item.browser_normalized_ean || item.browser_normalized_isbn | html %]
62
                                    [% coce_id = item.browser_normalized_ean || item.browser_normalized_isbn | html %]
63
                                    <div title="[% img_title | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview-[% coce_id | html %]"></div>
63
                                    <div title="[% img_title | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview-[% coce_id | html %]"></div>
64
                                    [% END %]
64
                                    [% END %]
65
                                    [% IF ( BakerTaylorEnabled ) %]
65
66
                                        [% bt_id = ( item.browser_normalized_upc || item.browser_normalized_isbn ) | html %]
66
                                    [% bt_id = ( item.browser_normalized_upc || item.browser_normalized_isbn ) %]
67
                                        [% IF ( bt_id ) %]
67
                                    [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
68
                                            <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
68
                                        <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
69
                                        [% ELSE %]
70
                                            <span class="no-image">No cover image available</span>
71
                                        [% END %]
72
                                    [% END %]
69
                                    [% END %]
70
73
                                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
71
                                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
74
                                        [% SET custom_cover_image_url = item.biblio_object.custom_cover_image_url %]
72
                                        [% SET custom_cover_image_url = item.biblio_object.custom_cover_image_url %]
75
                                        [% IF custom_cover_image_url %]
73
                                        [% IF custom_cover_image_url %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt (-1 / +1 lines)
Lines 58-64 Link Here
58
[% END %][% END %][% END %]
58
[% END %][% END %][% END %]
59
59
60
[% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
60
[% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
61
[% IF ( BakerTaylorEnabled ) %][% IF bt_id %]<a href="https://[% BakerTaylorBookstoreURL |url %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |url %][% bt_id | uri %]" /></a>[% END %][% END %]
61
[% IF ( OPACBakerTaylorEnabled ) %][% IF bt_id %]<a href="https://[% BakerTaylorBookstoreURL |url %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |url %][% bt_id | uri %]" /></a>[% END %][% END %]
62
62
63
[% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
63
[% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
64
    [% SET custom_cover_image_url = SEARCH_RESULT.biblio_object.custom_cover_image_url %]
64
    [% SET custom_cover_image_url = SEARCH_RESULT.biblio_object.custom_cover_image_url %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt (-5 / +7 lines)
Lines 125-136 Link Here
125
                                                    [% END %]
125
                                                    [% END %]
126
                                                [% END %]
126
                                                [% END %]
127
127
128
                                                [% IF BakerTaylorEnabled %]
128
                                                [% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %]
129
                                                    [% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %]
129
                                                [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
130
                                                    [% IF ( bt_id ) %]
130
                                                    [% IF ( BakerTaylorLinkURL ) %]
131
                                                       <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
131
                                                        <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
132
                                                            <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
133
                                                        </a>
132
                                                    [% ELSE %]
134
                                                    [% ELSE %]
133
                                                       <span class="no-image">No cover image available</span>
135
                                                        <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
134
                                                    [% END %]
136
                                                    [% END %]
135
                                                [% END %]
137
                                                [% END %]
136
138
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-15 / +6 lines)
Lines 392-416 Link Here
392
                                                                <span class="no-image">No cover image available</span>
392
                                                                <span class="no-image">No cover image available</span>
393
                                                            [% END %]
393
                                                            [% END %]
394
                                                        [% END %]
394
                                                        [% END %]
395
396
                                                        [% IF ( BakerTaylorEnabled && !BakerTaylorBookstoreURL ) %]
397
                                                            [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
398
                                                            [% IF ( bt_id ) %]
399
                                                                <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
400
                                                            [% ELSE %]
401
                                                                <span class="no-image">No cover image available</span>
402
                                                            [% END %]
403
                                                        [% END %]
404
                                                    </a>
395
                                                    </a>
405
396
406
                                                    [% IF ( BakerTaylorEnabled && BakerTaylorBookstoreURL ) %]
397
                                                    [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
407
                                                        [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
398
                                                    [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
408
                                                        [% IF ( bt_id ) %]
399
                                                        [% IF ( BakerTaylorLinkURL ) %]
409
                                                            <a href="https://[% BakerTaylorBookstoreURL | url %][% bt_id | url %]">
400
                                                            <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
410
                                                                <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
401
                                                                <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
411
                                                            </a>
402
                                                            </a>
412
                                                        [% ELSE %]
403
                                                        [% ELSE %]
413
                                                            <span class="no-image">No cover image available</span>
404
                                                            <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
414
                                                        [% END %]
405
                                                        [% END %]
415
                                                    [% END %]
406
                                                    [% END %]
416
407
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-14 / +6 lines)
Lines 440-462 Link Here
440
                                                                [% END %]
440
                                                                [% END %]
441
441
442
                                                            </a> <!-- / .p1 -->
442
                                                            </a> <!-- / .p1 -->
443
                                                            [% IF ( Koha.Preference('BakerTaylorEnabled') && !Koha.Preference('BakerTaylorBookstoreURL') ) %]
444
                                                                [% bt_id = ( itemsloo.normalized_upc || itemsloo.normalized_isbn ) %]
445
                                                                [% IF ( bt_id ) %]
446
                                                                    <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
447
                                                                [% ELSE %]
448
                                                                    <span class="no-image">No cover image available</span>
449
                                                                [% END %]
450
                                                            [% END %]
451
443
452
                                                            [% IF ( Koha.Preference('BakerTaylorEnabled') && Koha.Preference('BakerTaylorBookstoreURL') ) %]
444
                                                            [% bt_id = ( itemsloo.normalized_upc || itemsloo.normalized_isbn ) %]
453
                                                                [% bt_id = ( itemsloo.normalized_upc || itemsloo.normalized_isbn ) %]
445
                                                            [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
454
                                                                [% IF ( bt_id ) %]
446
                                                                [% IF ( BakerTaylorLinkURL ) %]
455
                                                                    <a href="https://[% Koha.Preference('BakerTaylorBookstoreURL') | uri %][% bt_id | uri %]">
447
                                                                    <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
456
                                                                        <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
448
                                                                        <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
457
                                                                    </a>
449
                                                                    </a>
458
                                                                [% ELSE %]
450
                                                                [% ELSE %]
459
                                                                    <span class="no-image">No cover image available</span>
451
                                                                    <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
460
                                                                [% END %]
452
                                                                [% END %]
461
                                                            [% END %]
453
                                                            [% END %]
462
454
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews-rss.tt (-1 / +3 lines)
Lines 17-23 Link Here
17
[% END %][% END %][% END %]
17
[% END %][% END %][% END %]
18
18
19
[% bt_id = ( review.normalized_upc || review.normalized_isbn ) %]
19
[% bt_id = ( review.normalized_upc || review.normalized_isbn ) %]
20
[% 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 %]
20
[% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
21
    <a href="https://[% BakerTaylorLinkURL | uri %][% bt_id | uri %]"><img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
22
[% END %]
21
23
22
[% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
24
[% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
23
    [% SET custom_cover_image_url = review.biblio_object.custom_cover_image_url %]
25
    [% 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 146-157 Link Here
146
                                            [% END %]
146
                                            [% END %]
147
                                        [% END %]
147
                                        [% END %]
148
                                            </a>
148
                                            </a>
149
149
                                        [% bt_id = ( review.normalized_upc || review.normalized_isbn ) %]
150
                                        [% bt_id = ( review.normalized_upc || review.normalized_isbn ) %]
150
                                        [% IF ( BakerTaylorEnabled ) %]
151
                                        [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
151
                                            [% IF ( bt_id ) %]
152
                                            [% IF ( BakerTaylorLinkURL ) %]
152
                                                <a href="https://[% review.BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% review.BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
153
                                                <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
154
                                                    <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
155
                                                </a>
153
                                            [% ELSE %]
156
                                            [% ELSE %]
154
                                                <span class="no-image">No cover image available</span>
157
                                                <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
155
                                            [% END %]
158
                                            [% END %]
156
                                        [% END %]
159
                                        [% END %]
157
160
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-10 / +14 lines)
Lines 289-300 Link Here
289
                                                        [% END %]
289
                                                        [% END %]
290
                                                    [% END %]
290
                                                    [% END %]
291
291
292
                                                    [% IF ( BakerTaylorEnabled ) %]
292
                                                    [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
293
                                                        [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
293
                                                    [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
294
                                                        [% IF ( bt_id ) %]
294
                                                        [% IF ( BakerTaylorLinkURL ) %]
295
                                                            <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
295
                                                            <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
296
                                                                <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
297
                                                            </a>
296
                                                        [% ELSE %]
298
                                                        [% ELSE %]
297
                                                            <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
299
                                                            <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
298
                                                        [% END %]
300
                                                        [% END %]
299
                                                    [% END %]
301
                                                    [% END %]
300
302
Lines 666-677 Link Here
666
                                                        [% END %]
668
                                                        [% END %]
667
                                                    [% END %]
669
                                                    [% END %]
668
670
669
                                                    [% IF ( BakerTaylorEnabled ) %]
671
                                                    [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
670
                                                        [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
672
                                                    [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
671
                                                        [% IF ( bt_id ) %]
673
                                                        [% IF ( BakerTaylorLinkURL ) %]
672
                                                            <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
674
                                                            <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
675
                                                                <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
676
                                                            </a>
673
                                                        [% ELSE %]
677
                                                        [% ELSE %]
674
                                                            <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
678
                                                            <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
675
                                                        [% END %]
679
                                                        [% END %]
676
                                                    [% END %]
680
                                                    [% END %]
677
681
(-)a/opac/opac-readingrecord.pl (-4 / +2 lines)
Lines 125-141 foreach my $issue ( @{$issues} ) { Link Here
125
    }
125
    }
126
}
126
}
127
127
128
if (C4::Context->preference('BakerTaylorEnabled')) {
128
if (C4::Context->preference('OPACBakerTaylorEnabled')) {
129
	$template->param(
129
	$template->param(
130
		JacketImages=>1,
130
		JacketImages=>1,
131
		BakerTaylorEnabled  => 1,
132
		BakerTaylorImageURL => &image_url(),
131
		BakerTaylorImageURL => &image_url(),
133
		BakerTaylorLinkURL  => &link_url(),
132
		BakerTaylorLinkURL  => &link_url(),
134
		BakerTaylorBookstoreURL => C4::Context->preference('BakerTaylorBookstoreURL'),
135
	);
133
	);
136
}
134
}
137
135
138
for(qw(AmazonCoverImages GoogleJackets)) { # BakerTaylorEnabled handled above
136
for(qw(AmazonCoverImages GoogleJackets)) { # OPACBakerTaylorEnabled handled above
139
	C4::Context->preference($_) or next;
137
	C4::Context->preference($_) or next;
140
	$template->param($_=>1);
138
	$template->param($_=>1);
141
	$template->param(JacketImages=>1);
139
	$template->param(JacketImages=>1);
(-)a/opac/opac-search.pl (-3 / +1 lines)
Lines 158-169 $template->param( 'OPACNoResultsFound' => C4::Context->preference('OPACNoResults Link Here
158
$template->param(
158
$template->param(
159
    OpacStarRatings => C4::Context->preference("OpacStarRatings") );
159
    OpacStarRatings => C4::Context->preference("OpacStarRatings") );
160
160
161
if (C4::Context->preference('BakerTaylorEnabled')) {
161
if (C4::Context->preference('OPACBakerTaylorEnabled')) {
162
    $template->param(
162
    $template->param(
163
        BakerTaylorEnabled  => 1,
164
        BakerTaylorImageURL => &image_url(),
163
        BakerTaylorImageURL => &image_url(),
165
        BakerTaylorLinkURL  => &link_url(),
164
        BakerTaylorLinkURL  => &link_url(),
166
        BakerTaylorBookstoreURL => C4::Context->preference('BakerTaylorBookstoreURL'),
167
    );
165
    );
168
}
166
}
169
167
(-)a/opac/opac-shelves.pl (-1 / +1 lines)
Lines 75-81 if( $op eq 'view' || $op eq 'list' ){ Link Here
75
        });
75
        });
76
}
76
}
77
77
78
if (C4::Context->preference("BakerTaylorEnabled")) {
78
if (C4::Context->preference("OPACBakerTaylorEnabled")) {
79
    $template->param(
79
    $template->param(
80
        BakerTaylorImageURL => &image_url(),
80
        BakerTaylorImageURL => &image_url(),
81
        BakerTaylorLinkURL  => &link_url(),
81
        BakerTaylorLinkURL  => &link_url(),
(-)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 C4::Biblio qw( GetMarcBiblio );
32
use C4::Biblio qw( GetMarcBiblio );
33
use Koha::DateUtils qw( dt_from_string );
33
use Koha::DateUtils qw( dt_from_string );
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 188-193 $template->param( PAGE_NUMBERS => \@page_numbers, Link Here
188
                    previous_page_offset => $previous_page_offset) unless $pages < 2;
189
                    previous_page_offset => $previous_page_offset) unless $pages < 2;
189
$template->param(next_page_offset => $next_page_offset) unless $pages eq $current_page_number;
190
$template->param(next_page_offset => $next_page_offset) unless $pages eq $current_page_number;
190
191
192
if (C4::Context->preference("OPACBakerTaylorEnabled")) {
193
    $template->param(
194
        BakerTaylorImageURL => &image_url(),
195
        BakerTaylorLinkURL  => &link_url(),
196
    );
197
}
198
191
$template->param(
199
$template->param(
192
    reviews => $reviews,
200
    reviews => $reviews,
193
    results_per_page => $results_per_page,
201
    results_per_page => $results_per_page,
(-)a/opac/opac-user.pl (-5 / +2 lines)
Lines 349-366 if ( C4::Context->preference('UseRecalls') ) { Link Here
349
    $template->param( RECALLS => $recalls );
349
    $template->param( RECALLS => $recalls );
350
}
350
}
351
351
352
if (C4::Context->preference('BakerTaylorEnabled')) {
352
if (C4::Context->preference('OPACBakerTaylorEnabled')) {
353
    $template->param(
353
    $template->param(
354
        BakerTaylorEnabled  => 1,
355
        BakerTaylorImageURL => &image_url(),
354
        BakerTaylorImageURL => &image_url(),
356
        BakerTaylorLinkURL  => &link_url(),
355
        BakerTaylorLinkURL  => &link_url(),
357
        BakerTaylorBookstoreURL => C4::Context->preference('BakerTaylorBookstoreURL'),
358
    );
356
    );
359
}
357
}
360
358
361
if (C4::Context->preference("OPACAmazonCoverImages") or 
359
if (C4::Context->preference("OPACAmazonCoverImages") or 
362
    C4::Context->preference("GoogleJackets") or
360
    C4::Context->preference("GoogleJackets") or
363
    C4::Context->preference("BakerTaylorEnabled") or
361
    C4::Context->preference("OPACBakerTaylorEnabled") or
364
    C4::Context->preference("SyndeticsCoverImages") or
362
    C4::Context->preference("SyndeticsCoverImages") or
365
    ( C4::Context->preference('OPACCustomCoverImages') and C4::Context->preference('CustomCoverImagesURL') )
363
    ( C4::Context->preference('OPACCustomCoverImages') and C4::Context->preference('CustomCoverImagesURL') )
366
) {
364
) {
367
- 

Return to bug 28307