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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (+21 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
13
<title
12
    >[% FILTER collapse %]
14
    >[% FILTER collapse %]
Lines 295-300 Link Here
295
                                [% UNLESS ( item_level_itypes ) %]
297
                                [% UNLESS ( item_level_itypes ) %]
296
                                    <th>Item type</th>
298
                                    <th>Item type</th>
297
                                [% END %]
299
                                [% END %]
300
                                [% IF ( CoverImagePlugins || LocalCoverImages || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL'))) %]
301
                                    <th>Cover</th>
302
                                [% END %]
298
                                [% SET sort_class = 'dt-orderable-asc dt-orderable-desc' %]
303
                                [% SET sort_class = 'dt-orderable-asc dt-orderable-desc' %]
299
                                [% IF sortfield == 'title' %]
304
                                [% IF sortfield == 'title' %]
300
                                    [% sort_class = sort_class _ " dt-ordering-" _ direction %]
305
                                    [% sort_class = sort_class _ " dt-ordering-" _ direction %]
Lines 356-361 Link Here
356
                                        <span class="itypetext">[% itemsloo.description | html %]</span>
361
                                        <span class="itypetext">[% itemsloo.description | html %]</span>
357
                                    </td>
362
                                    </td>
358
                                [% END %]
363
                                [% END %]
364
                                [% IF LocalCoverImages && itemsloo.biblio_object.cover_images.count > 0 %]
365
                                    <td>
366
                                        <span title="[% img_title | html %]" class="[% itemsloo.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
367
                                        <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&amp;biblionumber=[% itemsloo.biblionumber | uri %]" alt="Local cover image" />
368
                                    </td>
369
                                [% ELSIF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') && (custom_cover_image_url = itemsloo.biblio_object.custom_cover_image_url) %]
370
                                    <td>
371
                                        [% IF custom_cover_image_url %]
372
                                            <a class="custom_cover_image" href="[% PROCESS biblio_a_href biblionumber => itemsloo.biblionumber %]">
373
                                            <img alt="Custom cover image" src="[% custom_cover_image_url | url %]" /></a>
374
                                        [% END %]
375
                                    </td>
376
                                [% ELSE %]
377
                                    <td>
378
                                    </td>
379
                                [% END %]
359
                                <td>
380
                                <td>
360
                                    [% IF ( itemsloo.XSLTBloc ) %]
381
                                    [% IF ( itemsloo.XSLTBloc ) %]
361
                                        [% itemsloo.XSLTBloc | $raw %]
382
                                        [% itemsloo.XSLTBloc | $raw %]
(-)a/virtualshelves/shelves.pl (-1 / +1 lines)
Lines 367-372 if ( $op eq 'view' ) { Link Here
367
                # Getting items infos for location display
367
                # Getting items infos for location display
368
                my $items = $biblio->items;
368
                my $items = $biblio->items;
369
                $this_item->{'ITEM_RESULTS'} = $items;
369
                $this_item->{'ITEM_RESULTS'} = $items;
370
                $this_item->{biblio_object}  = $biblio;
370
                $this_item->{biblionumber}   = $biblionumber;
371
                $this_item->{biblionumber}   = $biblionumber;
371
                push @items, $this_item;
372
                push @items, $this_item;
372
            }
373
            }
373
- 

Return to bug 36154