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 409-414 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
409
('OPACAllowUserToChooseBranch','1','1','Allow the user to choose the branch they want to pickup their hold from','YesNo'),
409
('OPACAllowUserToChooseBranch','1','1','Allow the user to choose the branch they want to pickup their hold from','YesNo'),
410
('OPACAmazonCoverImages','0','','Display cover images on OPAC from Amazon Web Services','YesNo'),
410
('OPACAmazonCoverImages','0','','Display cover images on OPAC from Amazon Web Services','YesNo'),
411
('OpacAuthorities','1',NULL,'If ON, enables the search authorities link on OPAC','YesNo'),
411
('OpacAuthorities','1',NULL,'If ON, enables the search authorities link on OPAC','YesNo'),
412
('OPACBakerTaylorEnabled','0','','Enable or disable all Baker & Taylor features in the OPAC.','YesNo'),
412
('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'),
413
('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'),
413
('opacbookbag','1','','If ON, enables display of Cart feature','YesNo'),
414
('opacbookbag','1','','If ON, enables display of Cart feature','YesNo'),
414
('OpacBrowser','0',NULL,'If ON, enables subject authorities browser on OPAC (needs to set misc/cronjob/sbuild_browser_and_cloud.pl)','YesNo'),
415
('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 250-256 Link Here
250
    </script>
250
    </script>
251
[% END %]
251
[% END %]
252
252
253
[% IF ( BakerTaylorEnabled ) %]
253
[% IF ( OPACBakerTaylorEnabled ) %]
254
    [% Asset.js("js/bakertaylorimages.js") | $raw %]
254
    [% Asset.js("js/bakertaylorimages.js") | $raw %]
255
    <script>
255
    <script>
256
256
(-)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 52-58 Link Here
52
[% END %][% END %][% END %]
52
[% END %][% END %][% END %]
53
53
54
[% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
54
[% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
55
[% 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 %]
55
[% 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 %]
56
56
57
[% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
57
[% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
58
    [% SET custom_cover_image_url = SEARCH_RESULT.biblio_object.custom_cover_image_url %]
58
    [% 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 133-144 Link Here
133
                                                    [% END %]
133
                                                    [% END %]
134
                                                [% END %]
134
                                                [% END %]
135
135
136
                                                [% IF BakerTaylorEnabled %]
136
                                                [% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %]
137
                                                    [% bt_id = ( issue.normalized_upc || issue.normalized_isbn ) %]
137
                                                [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
138
                                                    [% IF ( bt_id ) %]
138
                                                    [% IF ( BakerTaylorLinkURL ) %]
139
                                                       <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
139
                                                        <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
140
                                                            <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
141
                                                        </a>
140
                                                    [% ELSE %]
142
                                                    [% ELSE %]
141
                                                       <span class="no-image">No cover image available</span>
143
                                                        <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
142
                                                    [% END %]
144
                                                    [% END %]
143
                                                [% END %]
145
                                                [% END %]
144
146
(-)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 454-476 Link Here
454
                                                                [% END %]
454
                                                                [% END %]
455
455
456
                                                            </a> <!-- / .p1 -->
456
                                                            </a> <!-- / .p1 -->
457
                                                            [% IF ( Koha.Preference('BakerTaylorEnabled') && !Koha.Preference('BakerTaylorBookstoreURL') ) %]
458
                                                                [% bt_id = ( itemsloo.normalized_upc || itemsloo.normalized_isbn ) %]
459
                                                                [% IF ( bt_id ) %]
460
                                                                    <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
461
                                                                [% ELSE %]
462
                                                                    <span class="no-image">No cover image available</span>
463
                                                                [% END %]
464
                                                            [% END %]
465
457
466
                                                            [% IF ( Koha.Preference('BakerTaylorEnabled') && Koha.Preference('BakerTaylorBookstoreURL') ) %]
458
                                                            [% bt_id = ( itemsloo.normalized_upc || itemsloo.normalized_isbn ) %]
467
                                                                [% bt_id = ( itemsloo.normalized_upc || itemsloo.normalized_isbn ) %]
459
                                                            [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
468
                                                                [% IF ( bt_id ) %]
460
                                                                [% IF ( BakerTaylorLinkURL ) %]
469
                                                                    <a href="https://[% Koha.Preference('BakerTaylorBookstoreURL') | uri %][% bt_id | uri %]">
461
                                                                    <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
470
                                                                        <img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
462
                                                                        <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
471
                                                                    </a>
463
                                                                    </a>
472
                                                                [% ELSE %]
464
                                                                [% ELSE %]
473
                                                                    <span class="no-image">No cover image available</span>
465
                                                                    <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
474
                                                                [% END %]
466
                                                                [% END %]
475
                                                            [% END %]
467
                                                            [% END %]
476
468
(-)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 128-139 Link Here
128
                                            [% END %]
128
                                            [% END %]
129
                                        [% END %]
129
                                        [% END %]
130
                                            </a>
130
                                            </a>
131
131
                                        [% bt_id = ( review.normalized_upc || review.normalized_isbn ) %]
132
                                        [% bt_id = ( review.normalized_upc || review.normalized_isbn ) %]
132
                                        [% IF ( BakerTaylorEnabled ) %]
133
                                        [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
133
                                            [% IF ( bt_id ) %]
134
                                            [% IF ( BakerTaylorLinkURL ) %]
134
                                                <a href="https://[% review.BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% review.BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
135
                                                <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
136
                                                    <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
137
                                                </a>
135
                                            [% ELSE %]
138
                                            [% ELSE %]
136
                                                <span class="no-image">No cover image available</span>
139
                                                <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
137
                                            [% END %]
140
                                            [% END %]
138
                                        [% END %]
141
                                        [% END %]
139
142
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-11 / +14 lines)
Lines 329-340 Link Here
329
                                                                [% END %]
329
                                                                [% END %]
330
                                                            [% END %]
330
                                                            [% END %]
331
331
332
                                                            [% IF ( BakerTaylorEnabled ) %]
332
                                                            [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
333
                                                                [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
333
                                                            [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
334
                                                                [% IF ( bt_id ) %]
334
                                                                [% IF ( BakerTaylorLinkURL ) %]
335
                                                                    <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
335
                                                                    <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
336
                                                                        <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
337
                                                                    </a>
336
                                                                [% ELSE %]
338
                                                                [% ELSE %]
337
                                                                    <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
339
                                                                    <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
338
                                                                [% END %]
340
                                                                [% END %]
339
                                                            [% END %]
341
                                                            [% END %]
340
342
Lines 706-718 Link Here
706
                                                            [% END %]
708
                                                            [% END %]
707
                                                        [% END %]
709
                                                        [% END %]
708
710
709
                                                        [% IF ( BakerTaylorEnabled ) %]
711
                                                        [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
710
                                                            [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
712
                                                        [% IF ( Koha.Preference('OPACBakerTaylorEnabled') && bt_id ) %]
711
                                                            [% IF ( bt_id ) %]
713
                                                            [% IF ( BakerTaylorLinkURL ) %]
712
                                                                <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
714
                                                                <a href="https://[% BakerTaylorLinkURL | url %][% bt_id | url %]">
715
                                                                    <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
716
                                                                </a>
713
                                                            [% ELSE %]
717
                                                            [% ELSE %]
714
                                                                <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
718
                                                                <img alt="Cover image from Baker &amp; Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
715
                                                            [% END %]
716
                                                        [% END %]
719
                                                        [% END %]
717
720
718
                                                        [% IF ( SyndeticsCoverImages ) %]
721
                                                        [% IF ( SyndeticsCoverImages ) %]
(-)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 78-84 if( $op eq 'view' || $op eq 'list' ){ Link Here
78
        });
78
        });
79
}
79
}
80
80
81
if (C4::Context->preference("BakerTaylorEnabled")) {
81
if (C4::Context->preference("OPACBakerTaylorEnabled")) {
82
    $template->param(
82
    $template->param(
83
        BakerTaylorImageURL => &image_url(),
83
        BakerTaylorImageURL => &image_url(),
84
        BakerTaylorLinkURL  => &link_url(),
84
        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 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 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 338-355 if ( C4::Context->preference('UseRecalls') ) { Link Here
338
    $template->param( RECALLS => $recalls );
338
    $template->param( RECALLS => $recalls );
339
}
339
}
340
340
341
if (C4::Context->preference('BakerTaylorEnabled')) {
341
if (C4::Context->preference('OPACBakerTaylorEnabled')) {
342
    $template->param(
342
    $template->param(
343
        BakerTaylorEnabled  => 1,
344
        BakerTaylorImageURL => &image_url(),
343
        BakerTaylorImageURL => &image_url(),
345
        BakerTaylorLinkURL  => &link_url(),
344
        BakerTaylorLinkURL  => &link_url(),
346
        BakerTaylorBookstoreURL => C4::Context->preference('BakerTaylorBookstoreURL'),
347
    );
345
    );
348
}
346
}
349
347
350
if (C4::Context->preference("OPACAmazonCoverImages") or 
348
if (C4::Context->preference("OPACAmazonCoverImages") or 
351
    C4::Context->preference("GoogleJackets") or
349
    C4::Context->preference("GoogleJackets") or
352
    C4::Context->preference("BakerTaylorEnabled") or
350
    C4::Context->preference("OPACBakerTaylorEnabled") or
353
    C4::Context->preference("SyndeticsCoverImages") or
351
    C4::Context->preference("SyndeticsCoverImages") or
354
    ( C4::Context->preference('OPACCustomCoverImages') and C4::Context->preference('CustomCoverImagesURL') )
352
    ( C4::Context->preference('OPACCustomCoverImages') and C4::Context->preference('CustomCoverImagesURL') )
355
) {
353
) {
356
- 

Return to bug 28307