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 && itemsloo.biblio_object.cover_images.count > 0 %]
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/virtualshelves/shelves.pl (-1 / +1 lines)
Lines 336-341 if ( $op eq 'view' ) { Link Here
336
                # Getting items infos for location display
336
                # Getting items infos for location display
337
                my $items = $biblio->items;
337
                my $items = $biblio->items;
338
                $this_item->{'ITEM_RESULTS'} = $items;
338
                $this_item->{'ITEM_RESULTS'} = $items;
339
                $this_item->{biblio_object} = $biblio;
339
                $this_item->{biblionumber} = $biblionumber;
340
                $this_item->{biblionumber} = $biblionumber;
340
                push @items, $this_item;
341
                push @items, $this_item;
341
            }
342
            }
342
- 

Return to bug 36154