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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt (-1 / +6 lines)
Lines 7-12 Link Here
7
7
8
$(document).ready(function(){
8
$(document).ready(function(){
9
    showCover([% imagenumber %]);
9
    showCover([% imagenumber %]);
10
    $(".show_cover").on("click",function(e){
11
        e.preventDefault();
12
        var coverimg = $(this).data("coverimg");
13
        showCover(coverimg);
14
    });
10
});
15
});
11
16
12
function showCover(img) {
17
function showCover(img) {
Lines 75-81 img.thumbnail { Link Here
75
80
76
            [% FOREACH img IN images %]
81
            [% FOREACH img IN images %]
77
                [% IF img %]
82
                [% IF img %]
78
                <a href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber %]&amp;imagenumber=[% img %]" onclick="showCover([% img %]); return false;">
83
                <a class="show_cover" data-coverimg="[% img %]" href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber %]&amp;imagenumber=[% img %]">
79
                    [% IF ( imagenumber == img ) %]
84
                    [% IF ( imagenumber == img ) %]
80
                        <img class="thumbnail selected" id="[% img %]" src="/cgi-bin/koha/catalogue/image.pl?imagenumber=[% img %]&amp;thumbnail=1" alt="Thumbnail" />
85
                        <img class="thumbnail selected" id="[% img %]" src="/cgi-bin/koha/catalogue/image.pl?imagenumber=[% img %]&amp;thumbnail=1" alt="Thumbnail" />
81
                    [% ELSE %]
86
                    [% ELSE %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-4 / +10 lines)
Lines 183-189 $('#sort_by').change(function() { Link Here
183
    [% END %]
183
    [% END %]
184
184
185
[% IF LocalCoverImages %]KOHA.LocalCover.LoadResultsCovers();[% END %]
185
[% IF LocalCoverImages %]KOHA.LocalCover.LoadResultsCovers();[% END %]
186
186
    $("#select_all").on("click",function(e){
187
        e.preventDefault();
188
        selectAll();
189
    });
190
    $("#clear_all").on("click",function(e){
191
        e.preventDefault();
192
        clearAll();
193
    });
187
});
194
});
188
195
189
196
Lines 338-346 var holdForPatron = function () { Link Here
338
                [% total %] result(s) found [% IF ( query_desc ) %]for <span style="font-weight: bold;">'[% query_desc |html %]'</span>[% END %][% IF limit_desc  %]&nbsp;with limit(s): <span style="font-weight: bold;">'[% limit_desc | html %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName %] Catalog[% END %].<br />&nbsp;
345
                [% total %] result(s) found [% IF ( query_desc ) %]for <span style="font-weight: bold;">'[% query_desc |html %]'</span>[% END %][% IF limit_desc  %]&nbsp;with limit(s): <span style="font-weight: bold;">'[% limit_desc | html %]'</span>[% END %][% IF ( LibraryName ) %] in [% LibraryName %] Catalog[% END %].<br />&nbsp;
339
            </h3>
346
            </h3>
340
            <div id="selection_ops" class="cartlist" style="display:none">
347
            <div id="selection_ops" class="cartlist" style="display:none">
341
                <a href="#" onclick="selectAll(); return false;">Select all</a>
348
                <a href="#" id="select_all">Select all</a>
342
                |
349
                |
343
                <a href="#" onclick="clearAll(); return false;">Clear all</a>
350
                <a href="#" id="clear_all">Clear all</a>
344
                |
351
                |
345
                <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
352
                <a href="#" class="highlight_toggle" id="highlight_toggle_off">Unhighlight</a>
346
                <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
353
                <a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
347
- 

Return to bug 16469