Bug 1633: [SIGNED-OFF] Display local cover images
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / imageviewer.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog › Images for: [% biblio.title |html %]
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/JavaScript" language="JavaScript">
5 //<![CDATA[
6
7 $(document).ready(function(){
8     showCover($('.thumbnail').attr('id'));
9 });
10
11 function showCover(img) {
12     $('.thumbnail').attr('class', 'thumbnail');
13     $('#largeCoverImg').attr('src', '/cgi-bin/koha/catalogue/image.pl?imagenumber=' + img);
14     $('#' + img + '.thumbnail').attr('class', 'thumbnail selected');
15 }
16 //]]>
17 </script>
18 <style type="text/css">
19 img.thumbnail {
20     border-style: solid;
21     border-width: 3px;
22     border-color: white;
23 }
24
25 img.selected {
26     border-color: black;
27 }
28 </style>
29 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
30 <body id="imageviewer">
31 <div id="largeCover"><img id="largeCoverImg" alt="Large view" /></div>
32 [% IF LocalCoverImages == 1 %]
33 [% FOREACH img IN images %]
34 [% IF img %]
35 <a href='#' onclick='showCover([% img %])'><img class='thumbnail' id='[% img %]' src='/cgi-bin/koha/catalogue/image.pl?imagenumber=[% img %]&thumbnail=1' alt='Image'/></a>
36 [% END %]
37 [% END %]
38 [% biblio.title %] [% biblio.author %]
39 [% ELSE %]
40 Unfortunately, images are not enabled for this catalog at this time.
41 [% END %]
42 </body>
43 </html>