View | Details | Raw Unified | Return to bug 37916
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 619-624 Link Here
619
        </script>
640
        </script>
620
    [% END #/print %]
641
    [% END #/print %]
621
642
643
    [% CoverImagePlugins | $raw %]
622
    <script>
644
    <script>
623
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
645
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
624
        var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these records from the list?");
646
        var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these records from the list?");
(-)a/virtualshelves/shelves.pl (-1 / +1 lines)
Lines 344-349 if ( $op eq 'view' ) { Link Here
344
                # Getting items infos for location display
344
                # Getting items infos for location display
345
                my $items = $biblio->items;
345
                my $items = $biblio->items;
346
                $this_item->{'ITEM_RESULTS'} = $items;
346
                $this_item->{'ITEM_RESULTS'} = $items;
347
                $this_item->{biblio_object} = $biblio;
347
                $this_item->{biblionumber} = $biblionumber;
348
                $this_item->{biblionumber} = $biblionumber;
348
                push @items, $this_item;
349
                push @items, $this_item;
349
            }
350
            }
350
- 

Return to bug 37916