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 289-294 Link Here
289
                                [% UNLESS ( item_level_itypes ) %]
291
                                [% UNLESS ( item_level_itypes ) %]
290
                                    <th>Item type</th>
292
                                    <th>Item type</th>
291
                                [% END %]
293
                                [% END %]
294
                                [% IF ( CoverImagePlugins || LocalCoverImages || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL'))) %]
295
                                    <th>Cover</th>
296
                                [% END %]
292
                                [% SET sort_class = 'dt-orderable-asc dt-orderable-desc' %]
297
                                [% SET sort_class = 'dt-orderable-asc dt-orderable-desc' %]
293
                                [% IF sortfield == 'title' %]
298
                                [% IF sortfield == 'title' %]
294
                                    [% sort_class = sort_class _ " dt-ordering-" _ direction %]
299
                                    [% sort_class = sort_class _ " dt-ordering-" _ direction %]
Lines 350-355 Link Here
350
                                        <span class="itypetext">[% itemsloo.description | html %]</span>
355
                                        <span class="itypetext">[% itemsloo.description | html %]</span>
351
                                    </td>
356
                                    </td>
352
                                [% END %]
357
                                [% END %]
358
                                [% IF LocalCoverImages && itemsloo.biblio_object.cover_images.count > 0 %]
359
                                    <td>
360
                                        <span title="[% img_title | html %]" class="[% itemsloo.biblionumber | html %]" id="local-thumbnail[% loop.count | html %]"></span>
361
                                        <img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&amp;biblionumber=[% itemsloo.biblionumber | uri %]" alt="Local cover image" />
362
                                    </td>
363
                                [% ELSIF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') && (custom_cover_image_url = itemsloo.biblio_object.custom_cover_image_url) %]
364
                                    <td>
365
                                        [% IF custom_cover_image_url %]
366
                                            <a class="custom_cover_image" href="[% PROCESS biblio_a_href biblionumber => itemsloo.biblionumber %]">
367
                                            <img alt="Custom cover image" src="[% custom_cover_image_url | url %]" /></a>
368
                                        [% END %]
369
                                    </td>
370
                                [% ELSE %]
371
                                    <td>
372
                                    </td>
373
                                [% END %]
353
                                <td>
374
                                <td>
354
                                    [% IF ( itemsloo.XSLTBloc ) %]
375
                                    [% IF ( itemsloo.XSLTBloc ) %]
355
                                        [% itemsloo.XSLTBloc | $raw %]
376
                                        [% 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