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 394-399 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
394
('OPACAllowUserToChooseBranch','1','1','Allow the user to choose the branch they want to pickup their hold from','YesNo'),
394
('OPACAllowUserToChooseBranch','1','1','Allow the user to choose the branch they want to pickup their hold from','YesNo'),
395
('OPACAmazonCoverImages','0','','Display cover images on OPAC from Amazon Web Services','YesNo'),
395
('OPACAmazonCoverImages','0','','Display cover images on OPAC from Amazon Web Services','YesNo'),
396
('OpacAuthorities','1',NULL,'If ON, enables the search authorities link on OPAC','YesNo'),
396
('OpacAuthorities','1',NULL,'If ON, enables the search authorities link on OPAC','YesNo'),
397
('OPACBakerTaylorEnabled','0','','Enable or disable all Baker & Taylor features in the OPAC.','YesNo'),
397
('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'),
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'),
398
('opacbookbag','1','','If ON, enables display of Cart feature','YesNo'),
399
('opacbookbag','1','','If ON, enables display of Cart feature','YesNo'),
399
('OpacBrowser','0',NULL,'If ON, enables subject authorities browser on OPAC (needs to set misc/cronjob/sbuild_browser_and_cloud.pl)','YesNo'),
400
('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 269-275 $.widget.bridge('uitooltip', $.ui.tooltip); Link Here
269
    </script>
269
    </script>
270
[% END %]
270
[% END %]
271
271
272
[% IF ( BakerTaylorEnabled ) %]
272
[% IF ( OPACBakerTaylorEnabled ) %]
273
    [% Asset.js("js/bakertaylorimages.js") | $raw %]
273
    [% Asset.js("js/bakertaylorimages.js") | $raw %]
274
    <script>
274
    <script>
275
275
(-)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 122-133 Link Here
122
                                                    [% END %]
122
                                                    [% END %]
123
                                                [% END %]
123
                                                [% END %]
124
124
125
                                                [% IF BakerTaylorEnabled %]
125
                                                [% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %]
126
                                                    [% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %]
126
                                                [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
127
                                                    [% IF ( bt_id ) %]
127
                                                    [% IF ( BakerTaylorLinkURL ) %]
128
                                                       <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
128
                                                        <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
129
                                                            <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
130
                                                        </a>
129
                                                    [% ELSE %]
131
                                                    [% ELSE %]
130
                                                       <span class="no-image">No cover image available</span>
132
                                                        <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
131
                                                    [% END %]
133
                                                    [% END %]
132
                                                [% END %]
134
                                                [% END %]
133
135
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-15 / +6 lines)
Lines 400-424 Link Here
400
                                                                <span class="no-image">No cover image available</span>
400
                                                                <span class="no-image">No cover image available</span>
401
                                                            [% END %]
401
                                                            [% END %]
402
                                                        [% END %]
402
                                                        [% END %]
403
404
                                                        [% IF ( BakerTaylorEnabled && !BakerTaylorBookstoreURL ) %]
405
                                                            [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
406
                                                            [% IF ( bt_id ) %]
407
                                                                <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
408
                                                            [% ELSE %]
409
                                                                <span class="no-image">No cover image available</span>
410
                                                            [% END %]
411
                                                        [% END %]
412
                                                    </a>
403
                                                    </a>
413
404
414
                                                    [% IF ( BakerTaylorEnabled && BakerTaylorBookstoreURL ) %]
405
                                                    [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
415
                                                        [% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
406
                                                    [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
416
                                                        [% IF ( bt_id ) %]
407
                                                        [% IF ( BakerTaylorLinkURL ) %]
417
                                                            <a href="https://[% BakerTaylorBookstoreURL | url %][% bt_id | url %]">
408
                                                            <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
418
                                                                <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
409
                                                                <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
419
                                                            </a>
410
                                                            </a>
420
                                                        [% ELSE %]
411
                                                        [% ELSE %]
421
                                                            <span class="no-image">No cover image available</span>
412
                                                            <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
422
                                                        [% END %]
413
                                                        [% END %]
423
                                                    [% END %]
414
                                                    [% END %]
424
415
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-14 / +6 lines)
Lines 437-459 Link Here
437
                                                                [% END %]
437
                                                                [% END %]
438
438
439
                                                            </a> <!-- / .p1 -->
439
                                                            </a> <!-- / .p1 -->
440
                                                            [% IF ( Koha.Preference('BakerTaylorEnabled') && !Koha.Preference('BakerTaylorBookstoreURL') ) %]
441
                                                                [% bt_id = ( itemsloo.normalized_upc || itemsloo.normalized_isbn ) %]
442
                                                                [% IF ( bt_id ) %]
443
                                                                    <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
444
                                                                [% ELSE %]
445
                                                                    <span class="no-image">No cover image available</span>
446
                                                                [% END %]
447
                                                            [% END %]
448
440
449
                                                            [% IF ( Koha.Preference('BakerTaylorEnabled') && Koha.Preference('BakerTaylorBookstoreURL') ) %]
441
                                                            [% bt_id = ( itemsloo.normalized_upc || itemsloo.normalized_isbn ) %]
450
                                                                [% bt_id = ( itemsloo.normalized_upc || itemsloo.normalized_isbn ) %]
442
                                                            [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
451
                                                                [% IF ( bt_id ) %]
443
                                                                [% IF ( BakerTaylorLinkURL ) %]
452
                                                                    <a href="https://[% Koha.Preference('BakerTaylorBookstoreURL') | uri %][% bt_id | uri %]">
444
                                                                    <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
453
                                                                        <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
445
                                                                        <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
454
                                                                    </a>
446
                                                                    </a>
455
                                                                [% ELSE %]
447
                                                                [% ELSE %]
456
                                                                    <span class="no-image">No cover image available</span>
448
                                                                    <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
457
                                                                [% END %]
449
                                                                [% END %]
458
                                                            [% END %]
450
                                                            [% END %]
459
451
(-)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 144-155 Link Here
144
                                            [% END %]
144
                                            [% END %]
145
                                        [% END %]
145
                                        [% END %]
146
                                            </a>
146
                                            </a>
147
147
                                        [% bt_id = ( review.normalized_upc || review.normalized_isbn ) %]
148
                                        [% bt_id = ( review.normalized_upc || review.normalized_isbn ) %]
148
                                        [% IF ( BakerTaylorEnabled ) %]
149
                                        [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
149
                                            [% IF ( bt_id ) %]
150
                                            [% IF ( BakerTaylorLinkURL ) %]
150
                                                <a href="https://[% review.BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% review.BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
151
                                                <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
152
                                                    <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
153
                                                </a>
151
                                            [% ELSE %]
154
                                            [% ELSE %]
152
                                                <span class="no-image">No cover image available</span>
155
                                                <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
153
                                            [% END %]
156
                                            [% END %]
154
                                        [% END %]
157
                                        [% END %]
155
158
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-10 / +14 lines)
Lines 297-308 Link Here
297
                                                        [% END %]
297
                                                        [% END %]
298
                                                    [% END %]
298
                                                    [% END %]
299
299
300
                                                    [% IF ( BakerTaylorEnabled ) %]
300
                                                    [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
301
                                                        [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
301
                                                    [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
302
                                                        [% IF ( bt_id ) %]
302
                                                        [% IF ( BakerTaylorLinkURL ) %]
303
                                                            <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
303
                                                            <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
304
                                                                <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
305
                                                            </a>
304
                                                        [% ELSE %]
306
                                                        [% ELSE %]
305
                                                            <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
307
                                                            <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
306
                                                        [% END %]
308
                                                        [% END %]
307
                                                    [% END %]
309
                                                    [% END %]
308
310
Lines 672-683 Link Here
672
                                                        [% END %]
674
                                                        [% END %]
673
                                                    [% END %]
675
                                                    [% END %]
674
676
675
                                                    [% IF ( BakerTaylorEnabled ) %]
677
                                                    [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
676
                                                        [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
678
                                                    [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
677
                                                        [% IF ( bt_id ) %]
679
                                                        [% IF ( BakerTaylorLinkURL ) %]
678
                                                            <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
680
                                                            <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
681
                                                                <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
682
                                                            </a>
679
                                                        [% ELSE %]
683
                                                        [% ELSE %]
680
                                                            <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
684
                                                            <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
681
                                                        [% END %]
685
                                                        [% END %]
682
                                                    [% END %]
686
                                                    [% END %]
683
687
(-)a/opac/opac-readingrecord.pl (-4 / +2 lines)
Lines 129-145 foreach my $issue ( @{$issues} ) { Link Here
129
    }
129
    }
130
}
130
}
131
131
132
if (C4::Context->preference('BakerTaylorEnabled')) {
132
if (C4::Context->preference('OPACBakerTaylorEnabled')) {
133
	$template->param(
133
	$template->param(
134
		JacketImages=>1,
134
		JacketImages=>1,
135
		BakerTaylorEnabled  => 1,
136
		BakerTaylorImageURL => &image_url(),
135
		BakerTaylorImageURL => &image_url(),
137
		BakerTaylorLinkURL  => &link_url(),
136
		BakerTaylorLinkURL  => &link_url(),
138
		BakerTaylorBookstoreURL => C4::Context->preference('BakerTaylorBookstoreURL'),
139
	);
137
	);
140
}
138
}
141
139
142
for(qw(AmazonCoverImages GoogleJackets)) { # BakerTaylorEnabled handled above
140
for(qw(AmazonCoverImages GoogleJackets)) { # OPACBakerTaylorEnabled handled above
143
	C4::Context->preference($_) or next;
141
	C4::Context->preference($_) or next;
144
	$template->param($_=>1);
142
	$template->param($_=>1);
145
	$template->param(JacketImages=>1);
143
	$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 330-347 $template->param( Link Here
330
    showpriority   => $show_priority,
330
    showpriority   => $show_priority,
331
);
331
);
332
332
333
if (C4::Context->preference('BakerTaylorEnabled')) {
333
if (C4::Context->preference('OPACBakerTaylorEnabled')) {
334
    $template->param(
334
    $template->param(
335
        BakerTaylorEnabled  => 1,
336
        BakerTaylorImageURL => &image_url(),
335
        BakerTaylorImageURL => &image_url(),
337
        BakerTaylorLinkURL  => &link_url(),
336
        BakerTaylorLinkURL  => &link_url(),
338
        BakerTaylorBookstoreURL => C4::Context->preference('BakerTaylorBookstoreURL'),
339
    );
337
    );
340
}
338
}
341
339
342
if (C4::Context->preference("OPACAmazonCoverImages") or 
340
if (C4::Context->preference("OPACAmazonCoverImages") or 
343
    C4::Context->preference("GoogleJackets") or
341
    C4::Context->preference("GoogleJackets") or
344
    C4::Context->preference("BakerTaylorEnabled") or
342
    C4::Context->preference("OPACBakerTaylorEnabled") or
345
    C4::Context->preference("SyndeticsCoverImages") or
343
    C4::Context->preference("SyndeticsCoverImages") or
346
    ( C4::Context->preference('OPACCustomCoverImages') and C4::Context->preference('CustomCoverImagesURL') )
344
    ( C4::Context->preference('OPACCustomCoverImages') and C4::Context->preference('CustomCoverImagesURL') )
347
) {
345
) {
348
- 

Return to bug 28307