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 2454-2459 Note that permanent location is a code, and location may be an authval. Link Here
2454
            });
2455
            });
2455
        [% END %]
2456
        [% END %]
2456
    </script>
2457
    </script>
2457
2458
    [% IF ( CoverImagePlugins ) %]
2459
        [% KohaPlugins.get_plugins_intranet_cover_images | $raw %]
2460
    [% END %]
2458
[% END %]
2461
[% END %]
2459
[% INCLUDE 'intranet-bottom.inc' %]
2462
[% 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 449-455 Link Here
449
                                <table>
452
                                <table>
450
                                    <thead>
453
                                    <thead>
451
                                    <tr>
454
                                    <tr>
452
                                        [% IF ( AmazonCoverImages  || LocalCoverImages || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
455
                                        [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
453
                                            <th>&nbsp;</th>
456
                                            <th>&nbsp;</th>
454
                                        [% END %]
457
                                        [% END %]
455
                                        <th colspan="2">Results</th>
458
                                        <th colspan="2">Results</th>
Lines 461-469 Link Here
461
                                    <tbody>
464
                                    <tbody>
462
                                    [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
465
                                    [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
463
                                        <tr id="row[% SEARCH_RESULT.biblionumber | html %]">
466
                                        <tr id="row[% SEARCH_RESULT.biblionumber | html %]">
464
                                            [% IF ( AmazonCoverImages  || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
467
                                            [% IF ( CoverImagePlugins || AmazonCoverImages  || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
465
    <td class="bookcoverimg">
468
    <td class="bookcoverimg">
466
        <div id="cover-slides-[% SEARCH_RESULT.biblionumber | html %]" class="cover-slides" data-biblionumber="[% SEARCH_RESULT.biblionumber | html %]">
469
        <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 %]">
467
            [% IF ( LocalCoverImages ) %][% SEARCH_RESULT.localimage | html %]
470
            [% IF ( LocalCoverImages ) %][% SEARCH_RESULT.localimage | html %]
468
                <div id="local-coverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image local-coverimg">
471
                <div id="local-coverimg-[% SEARCH_RESULT.biblionumber | html %]" class="cover-image local-coverimg">
469
                    <a href="[% PROCESS biblio_a_href biblionumber => SEARCH_RESULT.biblionumber %]">
472
                    <a href="[% PROCESS biblio_a_href biblionumber => SEARCH_RESULT.biblionumber %]">
Lines 914-919 Link Here
914
        [% END %]
917
        [% END %]
915
    </script>
918
    </script>
916
    [% Asset.js("js/pages/results.js") | $raw %]
919
    [% Asset.js("js/pages/results.js") | $raw %]
920
    [% KohaPlugins.get_plugins_intranet_cover_images | $raw %]
917
[% END %]
921
[% END %]
918
922
919
[% INCLUDE 'intranet-bottom.inc' %]
923
[% 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">
64
                        <div id="biblio-cover-slider" class="cover-slider" 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