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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-4 / +7 lines)
Lines 9-14 Link Here
9
[% USE Price %]
9
[% USE Price %]
10
[% USE TablesSettings %]
10
[% USE TablesSettings %]
11
[% PROCESS 'i18n.inc' %]
11
[% PROCESS 'i18n.inc' %]
12
[% SET CoverImagePlugins = KohaPlugins.get_plugins_intranet_cover_images %]
12
13
13
[% IF Koha.Preference('AmazonAssocTag') %]
14
[% IF Koha.Preference('AmazonAssocTag') %]
14
    [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
15
    [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
Lines 105-111 Link Here
105
        <span class="Z3988" title="[% ocoins | html %]"></span>
106
        <span class="Z3988" title="[% ocoins | html %]"></span>
106
    [% END %]
107
    [% END %]
107
108
108
    [% IF ( AmazonCoverImages  || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
109
    [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
109
        <div id="catalogue_detail_biblio" class="col-xs-9">
110
        <div id="catalogue_detail_biblio" class="col-xs-9">
110
    [% ELSE %]
111
    [% ELSE %]
111
        <div id="catalogue_detail_biblio" class="col-xs-12">
112
        <div id="catalogue_detail_biblio" class="col-xs-12">
Lines 199-208 Link Here
199
        [% END %]
200
        [% END %]
200
        </div> [%# .page-section %]
201
        </div> [%# .page-section %]
201
202
202
        [% IF ( AmazonCoverImages  || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
203
        [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
203
        </div>
204
        </div>
204
            <div class="col-xs-3 bookcoverimg">
205
            <div class="col-xs-3 bookcoverimg">
205
                <div id="biblio-cover-slider" class="cover-slider">
206
                <div id="biblio-cover-slider" class="cover-slider" data-isbn="[% normalized_isbn | html %]">
206
                    [% IF ( LocalCoverImages ) %]
207
                    [% IF ( LocalCoverImages ) %]
207
                        [% IF localimages.count %]
208
                        [% IF localimages.count %]
208
                            [% FOREACH image IN localimages %]
209
                            [% FOREACH image IN localimages %]
Lines 2447-2452 Link Here
2447
            });
2448
            });
2448
        [% END %]
2449
        [% END %]
2449
    </script>
2450
    </script>
2450
2451
    [% IF ( CoverImagePlugins ) %]
2452
        [% KohaPlugins.get_plugins_intranet_cover_images | $raw %]
2453
    [% END %]
2451
[% END %]
2454
[% END %]
2452
[% INCLUDE 'intranet-bottom.inc' %]
2455
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-3 / +7 lines)
Lines 4-11 Link Here
4
[% USE Koha %]
4
[% USE Koha %]
5
[% USE Biblio %]
5
[% USE Biblio %]
6
[% USE KohaDates %]
6
[% USE KohaDates %]
7
[% USE KohaPlugins %]
8
[% USE To %]
7
[% PROCESS 'i18n.inc' %]
9
[% PROCESS 'i18n.inc' %]
8
[% SET footerjs = 1 %]
10
[% SET footerjs = 1 %]
11
[% SET CoverImagePlugins = KohaPlugins.get_plugins_intranet_cover_images %]
9
[% USE AuthorisedValues %]
12
[% USE AuthorisedValues %]
10
[% INCLUDE 'doc-head-open.inc' %]
13
[% INCLUDE 'doc-head-open.inc' %]
11
14
Lines 446-452 Link Here
446
                                <table>
449
                                <table>
447
                                    <thead>
450
                                    <thead>
448
                                    <tr>
451
                                    <tr>
449
                                        [% IF ( AmazonCoverImages  || LocalCoverImages || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
452
                                        [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
450
                                            <th>&nbsp;</th>
453
                                            <th>&nbsp;</th>
451
                                        [% END %]
454
                                        [% END %]
452
                                        <th colspan="2">Results</th>
455
                                        <th colspan="2">Results</th>
Lines 458-466 Link Here
458
                                    <tbody>
461
                                    <tbody>
459
                                    [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
462
                                    [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
460
                                        <tr id="row[% SEARCH_RESULT.biblionumber | html %]">
463
                                        <tr id="row[% SEARCH_RESULT.biblionumber | html %]">
461
                                            [% IF ( AmazonCoverImages  || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
464
                                            [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
462
    <td class="bookcoverimg">
465
    <td class="bookcoverimg">
463
        <div id="cover-slides-[% SEARCH_RESULT.biblionumber | html %]" class="cover-slides" data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]">
466
        <div id="cover-slides-[% SEARCH_RESULT.biblionumber | html %]" class="cover-slides" data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]" data-isbn="[% To.json(SEARCH_RESULT.normalized_isbn) | $raw %]" data-processedbiblio="[% PROCESS biblio_a_href biblionumber => SEARCH_RESULT.biblionumber | $raw %]">
464
            [% IF ( LocalCoverImages ) %][% SEARCH_RESULT.localimage | html %]
467
            [% IF ( LocalCoverImages ) %][% SEARCH_RESULT.localimage | html %]
465
                <div id="local-coverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image local-coverimg">
468
                <div id="local-coverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image local-coverimg">
466
                    <a href="[% PROCESS biblio_a_href biblionumber => SEARCH_RESULT.biblionumber %]">
469
                    <a href="[% PROCESS biblio_a_href biblionumber => SEARCH_RESULT.biblionumber %]">
Lines 911-916 Link Here
911
        [% END %]
914
        [% END %]
912
    </script>
915
    </script>
913
    [% Asset.js("js/pages/results.js") | $raw %]
916
    [% Asset.js("js/pages/results.js") | $raw %]
917
    [% KohaPlugins.get_plugins_intranet_cover_images | $raw %]
914
[% END %]
918
[% END %]
915
919
916
[% INCLUDE 'intranet-bottom.inc' %]
920
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-1 / +7 lines)
Lines 6-13 Link Here
6
[% USE Branches %]
6
[% USE Branches %]
7
[% USE TablesSettings %]
7
[% USE TablesSettings %]
8
[% USE AuthorisedValues %]
8
[% USE AuthorisedValues %]
9
[% USE KohaPlugins %]
9
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
10
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
10
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
11
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
12
[% SET CoverImagePlugins = KohaPlugins.get_plugins_intranet_cover_images %]
11
[% IF Koha.Preference('AmazonAssocTag') %]
13
[% IF Koha.Preference('AmazonAssocTag') %]
12
    [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
14
    [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
13
[% ELSE %]
15
[% ELSE %]
Lines 59-65 Link Here
59
61
60
                    <div class="bookcover">
62
                    <div class="bookcover">
61
63
62
                        <div id="biblio-cover-slider" class="cover-slider cover-slides"><!-- cover-slides shows spinner -->
64
                        <div id="biblio-cover-slider" class="cover-slider cover-slides" data-isbn="[% normalized_isbn | html %]">
63
                            [% IF ( OPACLocalCoverImages ) %]
65
                            [% IF ( OPACLocalCoverImages ) %]
64
                                [% IF localimages.count %]
66
                                [% IF localimages.count %]
65
                                    [% FOREACH image IN localimages %]
67
                                    [% FOREACH image IN localimages %]
Lines 1454-1459 Link Here
1454
        [% Asset.js("js/ratings.js") | $raw %]
1456
        [% Asset.js("js/ratings.js") | $raw %]
1455
    [% END %]
1457
    [% END %]
1456
1458
1459
    [% IF ( CoverImagePlugins ) %]
1460
        [% KohaPlugins.get_plugins_opac_cover_images | $raw %]
1461
    [% END %]
1462
1457
    [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %][% END %]
1463
    [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %][% END %]
1458
    [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1464
    [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1459
        [% Asset.js("lib/kjua/kjua.min.js") | $raw %]
1465
        [% Asset.js("lib/kjua/kjua.min.js") | $raw %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-8 / +13 lines)
Lines 1-8 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE KohaPlugins %]
5
[% USE To %]
4
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnList ) %]
6
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnList ) %]
5
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnList ) %]
7
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnList ) %]
8
[% SET CoverImagePlugins = KohaPlugins.get_plugins_intranet_cover_images %]
6
9
7
[% IF firstPage %]
10
[% IF firstPage %]
8
     [% SET OverDriveEnabled = Koha.Preference('OverDriveLibraryID') && Koha.Preference('OverDriveClientKey') && Koha.Preference('OverDriveClientSecret') %]
11
     [% SET OverDriveEnabled = Koha.Preference('OverDriveLibraryID') && Koha.Preference('OverDriveClientKey') && Koha.Preference('OverDriveClientSecret') %]
Lines 341-353 Link Here
341
344
342
                                            [% # Cell 4: Search result details and controls %]
345
                                            [% # Cell 4: Search result details and controls %]
343
                                            <td class="bibliocol">
346
                                            <td class="bibliocol">
344
                                                <div class="coverimages itemtype_[% SEARCH_RESULT.itemtype | html %]">
347
                                                [% IF ( SEARCH_RESULT.title ) %]
348
                                                    [% img_title = SEARCH_RESULT.title %]
349
                                                [% ELSE %]
350
                                                    [% img_title = SEARCH_RESULT.biblionumber %]
351
                                                [% END %]
352
                                                <div class="coverimages cover-slides itemtype_[% SEARCH_RESULT.itemtype | html %]" data-isbn="[% To.json(SEARCH_RESULT.normalized_isbn) | $raw %]" data-imgtitle="[% img_title | html %]">
345
                                                    <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">
353
                                                    <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">
346
                                                        [% IF ( SEARCH_RESULT.title ) %]
354
347
                                                            [% img_title = SEARCH_RESULT.title %]
348
                                                        [% ELSE %]
349
                                                            [% img_title = SEARCH_RESULT.biblionumber %]
350
                                                        [% END %]
351
                                                        [% IF ( OPACLocalCoverImages ) %]
355
                                                        [% IF ( OPACLocalCoverImages ) %]
352
                                                            <span title="[% img_title | html %]" class="[% SEARCH_RESULT.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
356
                                                            <span title="[% img_title | html %]" class="[% SEARCH_RESULT.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
353
                                                        [% END %]
357
                                                        [% END %]
Lines 587-593 Link Here
587
    [% IF OpenLibraryCovers || OpenLibrarySearch %]
591
    [% IF OpenLibraryCovers || OpenLibrarySearch %]
588
        [% Asset.js("js/openlibrary.js") | $raw %]
592
        [% Asset.js("js/openlibrary.js") | $raw %]
589
    [% END %]
593
    [% END %]
590
594
    [% IF ( CoverImagePlugins ) %]
595
        [% KohaPlugins.get_plugins_opac_cover_images | $raw %]
596
    [% END %]
591
    <script>
597
    <script>
592
        [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'OPACHoldRequests' ) == 1 ) %]
598
        [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'OPACHoldRequests' ) == 1 ) %]
593
            function holdMultiple() {
599
            function holdMultiple() {
594
- 

Return to bug 32680