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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (+22 lines)
Lines 5-12 Link Here
5
[% USE KohaDates %]
5
[% USE KohaDates %]
6
[% USE AuthorisedValues %]
6
[% USE AuthorisedValues %]
7
[% USE Branches %]
7
[% USE Branches %]
8
[% USE KohaPlugins %]
8
[% PROCESS 'i18n.inc' %]
9
[% PROCESS 'i18n.inc' %]
9
[% SET footerjs = 1 %]
10
[% SET footerjs = 1 %]
11
[% SET CoverImagePlugins = KohaPlugins.get_plugins_intranet_cover_images %]
10
[% INCLUDE 'doc-head-open.inc' %]
12
[% INCLUDE 'doc-head-open.inc' %]
11
<title>[% FILTER collapse %]
13
<title>[% FILTER collapse %]
12
    [% IF op == 'view' %]
14
    [% IF op == 'view' %]
Lines 287-292 Link Here
287
                                        [% UNLESS ( item_level_itypes ) %]
289
                                        [% UNLESS ( item_level_itypes ) %]
288
                                            <th>Item type</th>
290
                                            <th>Item type</th>
289
                                        [% END %]
291
                                        [% END %]
292
                                        [% IF ( CoverImagePlugins || LocalCoverImages || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL'))) %]
293
                                            <th>Cover</th>
294
                                        [% END %]
290
                                        [% IF sortfield == 'title' %]
295
                                        [% IF sortfield == 'title' %]
291
                                            <th class="sorting_[% direction | html %]">
296
                                            <th class="sorting_[% direction | html %]">
292
                                        [% ELSE %]
297
                                        [% ELSE %]
Lines 332-337 Link Here
332
                                                <span class="itypetext">[% itemsloo.description | html %]</span>
337
                                                <span class="itypetext">[% itemsloo.description | html %]</span>
333
                                            </td>
338
                                            </td>
334
                                        [% END %]
339
                                        [% END %]
340
                                        [% IF LocalCoverImages %]
341
                                            <td>
342
                                                <span title="[% img_title | html %]" class="[% itemsloo.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
343
                                                <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&amp;biblionumber=[% itemsloo.biblionumber | uri %]" alt="Local cover image" />
344
                                            </td>
345
                                        [% ELSIF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') && (custom_cover_image_url = itemsloo.biblio_object.custom_cover_image_url) %]
346
                                            <td>
347
                                                [% IF custom_cover_image_url %]
348
                                                    <a class="custom_cover_image" href="[% PROCESS biblio_a_href biblionumber => itemsloo.biblionumber %]">
349
                                                    <img alt="Custom cover image" src="[% custom_cover_image_url | url %]" /></a>
350
                                                [% END %]
351
                                            </td>
352
                                        [% ELSE %]
353
                                            <td>
354
                                            </td>
355
                                        [% END %]
335
                                        <td>
356
                                        <td>
336
                                            [% IF ( itemsloo.XSLTBloc ) %]
357
                                            [% IF ( itemsloo.XSLTBloc ) %]
337
                                                [% itemsloo.XSLTBloc | $raw %]
358
                                                [% itemsloo.XSLTBloc | $raw %]
Lines 614-619 Link Here
614
    [% IF op == 'view' %]
635
    [% IF op == 'view' %]
615
        [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
636
        [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
616
    [% END %]
637
    [% END %]
638
    [% CoverImagePlugins | $raw %]
617
    <script>
639
    <script>
618
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
640
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
619
        var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
641
        var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc (-10 / +8 lines)
Lines 28-38 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 || BakerTaylorEnabled || ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) || ( Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') ) || CoverImagePlugins ) %]
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>
35
                                    [% END %]
35
                                    [% ELSIF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') AND (custom_cover_image_url = item.biblio_object.custom_cover_image_url) %]
36
                                        [% IF custom_cover_image_url %]
37
                                            <span class="custom_cover_image">
38
                                                <img alt="Cover image" src="[% custom_cover_image_url | url %]" />
39
                                            </span>
40
                                        [% END %]
41
                                    [% ELSE %]
36
                                    [% IF ( OPACAmazonCoverImages ) %]
42
                                    [% IF ( OPACAmazonCoverImages ) %]
37
                                        [% IF ( item.browser_normalized_isbn ) %]
43
                                        [% IF ( item.browser_normalized_isbn ) %]
38
                                            <img src="https://images-na.ssl-images-amazon.com/images/P/[% item.browser_normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" alt="" />
44
                                            <img src="https://images-na.ssl-images-amazon.com/images/P/[% item.browser_normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" alt="" />
Lines 70-84 Link Here
70
                                            <span class="no-image">No cover image available</span>
76
                                            <span class="no-image">No cover image available</span>
71
                                        [% END %]
77
                                        [% END %]
72
                                    [% END %]
78
                                    [% END %]
73
                                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
74
                                        [% SET custom_cover_image_url = item.biblio_object.custom_cover_image_url %]
75
                                        [% IF custom_cover_image_url %]
76
                                            <span class="custom_cover_image">
77
                                                <img alt="Cover image" src="[% custom_cover_image_url | url %]" />
78
                                            </span>
79
                                        [% END %]
80
                                    [% END %]
79
                                    [% END %]
81
82
                                </a>
80
                                </a>
83
                            [% END %]
81
                            [% END %]
84
                        </td>
82
                        </td>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt (-1 / +4 lines)
Lines 5-12 Link Here
5
[% USE AdditionalContents %]
5
[% USE AdditionalContents %]
6
[% USE Asset %]
6
[% USE Asset %]
7
[% USE Price %]
7
[% USE Price %]
8
[% USE KohaPlugins %]
8
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
9
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
9
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
10
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
11
[% SET CoverImagePlugins = KohaPlugins.get_plugins_opac_cover_images %]
10
[% INCLUDE 'doc-head-open.inc' %]
12
[% INCLUDE 'doc-head-open.inc' %]
11
<title>Your checkout history &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
13
<title>Your checkout history &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
12
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
Lines 139-145 Link Here
139
                        [% END %]
141
                        [% END %]
140
                        [% issuetype | html %]
142
                        [% issuetype | html %]
141
                    </td>
143
                    </td>
142
                    <td>
144
                    <td data-biblionumber="[% issue.biblionumber | html %]">
143
                        [% SET normalized_isbn = biblio.normalized_isbn %]
145
                        [% SET normalized_isbn = biblio.normalized_isbn %]
144
                        [% IF OPACAmazonCoverImages %]
146
                        [% IF OPACAmazonCoverImages %]
145
                            [% IF normalized_isbn %]
147
                            [% IF normalized_isbn %]
Lines 227-232 Link Here
227
[% BLOCK jsinclude %]
229
[% BLOCK jsinclude %]
228
[% INCLUDE 'datatables.inc' %]
230
[% INCLUDE 'datatables.inc' %]
229
[% INCLUDE 'columns_settings.inc' %]
231
[% INCLUDE 'columns_settings.inc' %]
232
[% CoverImagePlugins | $raw %]
230
<script>
233
<script>
231
    $(document).ready(function(){
234
    $(document).ready(function(){
232
        [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
235
        [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (+3 lines)
Lines 3-12 Link Here
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE KohaDates %]
4
[% USE KohaDates %]
5
[% USE AdditionalContents %]
5
[% USE AdditionalContents %]
6
[% USE KohaPlugins %]
6
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
7
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
7
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
8
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
8
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && Koha.Preference('TagsShowOnList') ) %]
9
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && Koha.Preference('TagsShowOnList') ) %]
9
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && Koha.Preference('TagsInputOnList') ) %]
10
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && Koha.Preference('TagsInputOnList') ) %]
11
[% SET CoverImagePlugins = KohaPlugins.get_plugins_opac_cover_images %]
10
12
11
[% BLOCK delete_shelf %]
13
[% BLOCK delete_shelf %]
12
    <form action="/cgi-bin/koha/opac-shelves.pl" method="post" id="deleteshelf[% shelf.shelfnumber | html %]" class="d-inline">
14
    <form action="/cgi-bin/koha/opac-shelves.pl" method="post" id="deleteshelf[% shelf.shelfnumber | html %]" class="d-inline">
Lines 836-841 Link Here
836
[% IF OpenLibraryCovers || OpenLibrarySearch %]
838
[% IF OpenLibraryCovers || OpenLibrarySearch %]
837
    [% Asset.js("js/openlibrary.js") | $raw %]
839
    [% Asset.js("js/openlibrary.js") | $raw %]
838
[% END %]
840
[% END %]
841
[% CoverImagePlugins | $raw %]
839
<script>
842
<script>
840
var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
843
var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
841
var MSG_REMOVE_ONE_FROM_LIST = _("Are you sure you want to remove this item from the list?");
844
var MSG_REMOVE_ONE_FROM_LIST = _("Are you sure you want to remove this item from the list?");
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-6 / +9 lines)
Lines 7-15 Link Here
7
[% USE Price %]
7
[% USE Price %]
8
[% USE AuthorisedValues %]
8
[% USE AuthorisedValues %]
9
[% USE AdditionalContents %]
9
[% USE AdditionalContents %]
10
[% USE KohaPlugins %]
10
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
11
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
11
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
12
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
12
[% SET OpacMySummaryNote = AdditionalContents.get( location => "OpacMySummaryNote", lang => lang, library => branchcode ) %]
13
[% SET OpacMySummaryNote = AdditionalContents.get( location => "OpacMySummaryNote", lang => lang, library => branchcode ) %]
14
[% SET CoverImagePlugins = KohaPlugins.get_plugins_opac_cover_images %]
13
15
14
[% SET borrower_club_enrollments = logged_in_user.get_club_enrollments %]
16
[% SET borrower_club_enrollments = logged_in_user.get_club_enrollments %]
15
[% SET borrower_enrollable_clubs = logged_in_user.get_enrollable_clubs(1) %] <!-- 1 => OPAC -->
17
[% SET borrower_enrollable_clubs = logged_in_user.get_enrollable_clubs(1) %] <!-- 1 => OPAC -->
Lines 323-329 Link Here
323
                                            <caption>[% issues_count | html %] Item(s) checked out</caption>
325
                                            <caption>[% issues_count | html %] Item(s) checked out</caption>
324
                                            <thead>
326
                                            <thead>
325
                                                <tr>
327
                                                <tr>
326
                                                    [% IF ( JacketImages ) %]<th class="nosort">&nbsp;</th>[% END %]
328
                                                    [% IF ( JacketImages || CoverImagePlugins ) %]<th class="nosort">&nbsp;</th>[% END %]
327
                                                    <th class="all anti-the">Title</th>
329
                                                    <th class="all anti-the">Title</th>
328
                                                    <th>Author</th>
330
                                                    <th>Author</th>
329
                                                    <th class="psort">Due</th>
331
                                                    <th class="psort">Due</th>
Lines 353-360 Link Here
353
                                            <tbody>
355
                                            <tbody>
354
                                                [% FOREACH ISSUE IN ISSUES %]
356
                                                [% FOREACH ISSUE IN ISSUES %]
355
                                                    [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
357
                                                    [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
356
                                                    [% IF ( JacketImages ) %]
358
                                                    [% IF ( JacketImages || CoverImagePlugins ) %]
357
                                                        <td class="jacketcell">
359
                                                        <td class="jacketcell" data-biblionumber="[% ISSUE.biblionumber | html %]">
358
                                                            [% IF ( OPACAmazonCoverImages ) %]
360
                                                            [% IF ( OPACAmazonCoverImages ) %]
359
                                                                [% IF ( ISSUE.normalized_isbn ) %]
361
                                                                [% IF ( ISSUE.normalized_isbn ) %]
360
                                                                    <a href="http://www.amazon.com/gp/reader/[% ISSUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% ISSUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail"/></a>
362
                                                                    <a href="http://www.amazon.com/gp/reader/[% ISSUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% ISSUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail"/></a>
Lines 713-719 Link Here
713
                                        <!-- OVERDUES TABLE ROWS -->
715
                                        <!-- OVERDUES TABLE ROWS -->
714
                                        <thead>
716
                                        <thead>
715
                                            <tr>
717
                                            <tr>
716
                                                [% IF ( JacketImages ) %]<th class="nosort">&nbsp;</th>[% END %]
718
                                                [% IF ( JacketImages || CoverImagePlugins ) %]<th class="nosort">&nbsp;</th>[% END %]
717
                                                <th class="all anti-the">Title</th>
719
                                                <th class="all anti-the">Title</th>
718
                                                [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
720
                                                [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
719
                                                [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
721
                                                [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
Lines 731-738 Link Here
731
                                        <tbody>
733
                                        <tbody>
732
                                            [% FOREACH OVERDUE IN OVERDUES %]
734
                                            [% FOREACH OVERDUE IN OVERDUES %]
733
                                                <tr>
735
                                                <tr>
734
                                                    [% IF ( JacketImages ) %]
736
                                                    [% IF ( JacketImages || CoverImagePlugins ) %]
735
                                                        <td class="jacketcell">
737
                                                        <td class="jacketcell" data-biblionumber="[% OVERDUE.biblionumber | html %]">
736
                                                        [% IF ( OPACAmazonCoverImages ) %]
738
                                                        [% IF ( OPACAmazonCoverImages ) %]
737
                                                            [% IF ( OVERDUE.normalized_isbn ) %]
739
                                                            [% IF ( OVERDUE.normalized_isbn ) %]
738
                                                                <a href="http://www.amazon.com/gp/reader/[% OVERDUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% OVERDUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail" /></a>
740
                                                                <a href="http://www.amazon.com/gp/reader/[% OVERDUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% OVERDUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail" /></a>
Lines 1079-1084 Link Here
1079
[% BLOCK jsinclude %]
1081
[% BLOCK jsinclude %]
1080
    [% INCLUDE 'calendar.inc' %]
1082
    [% INCLUDE 'calendar.inc' %]
1081
    [% INCLUDE 'datatables.inc' %]
1083
    [% INCLUDE 'datatables.inc' %]
1084
    [% CoverImagePlugins | $raw %]
1082
    <script>
1085
    <script>
1083
        var AR_CAPTION_COUNT = _("(%s total)");
1086
        var AR_CAPTION_COUNT = _("(%s total)");
1084
1087
(-)a/virtualshelves/shelves.pl (-1 / +1 lines)
Lines 335-340 if ( $op eq 'view' ) { Link Here
335
                # Getting items infos for location display
335
                # Getting items infos for location display
336
                my $items = $biblio->items;
336
                my $items = $biblio->items;
337
                $this_item->{'ITEM_RESULTS'} = $items;
337
                $this_item->{'ITEM_RESULTS'} = $items;
338
                $this_item->{biblio_object} = $biblio;
338
                $this_item->{biblionumber} = $biblionumber;
339
                $this_item->{biblionumber} = $biblionumber;
339
                push @items, $this_item;
340
                push @items, $this_item;
340
            }
341
            }
341
- 

Return to bug 36154