Main Koha release repository https://koha-community.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

114 lines
3.6 KiB

[% USE raw %]
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Catalog &rsaquo; Details for [% biblio.title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% IF ( LocalCoverImages == 1 ) %]
<style>
#largeCoverImg {
border : 1px solid #CCCCCC;
display : block;
margin : auto;
padding : 1em;
}
#thumbnails {
text-align : center;
}
#thumbnails a img {
border : 1px solid #0000CC;
}
img.thumbnail {
display : block;
float : none;
margin: 0 5px 5px 0;
padding : .5em;
}
#thumbnails a img.selected {
border-color: black;
cursor : default;
opacity:0.4;
filter:alpha(opacity=40); /* For IE8 and earlier */
}
</style>[% END %]
</head>
<body id="catalog_imageviewer" class="catalog">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> &rsaquo; Images for <i>[% biblio.title | html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield | html %][% END %]</i></div>
<div id="doc3" class="yui-t1">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<div class="yui-ge">
[% INCLUDE 'cat-toolbar.inc' %]
<h3>Images for <i>[% biblio.title | html %]</i></h3>
<h4>[% biblio.author | html %]</h4>
[% IF ( LocalCoverImages == 1 ) %]
[% IF ( images.size > 0 ) %]
<div class="yui-u first">
<div id="largeCover">
<img id="largeCoverImg" alt="" src="/cgi-bin/koha/catalogue/image.pl?imagenumber=[% imagenumber | html %]" />
</div></div>
<div class="yui-u"><div id="thumbnails">
[% FOREACH img IN images %]
[% IF img %]
<a class="show_cover" data-coverimg="[% img | html %]" href="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=[% biblionumber | html %]&amp;imagenumber=[% img | html %]">
[% IF ( imagenumber == img ) %]
<img class="thumbnail selected" id="[% img | html %]" src="/cgi-bin/koha/catalogue/image.pl?imagenumber=[% img | html %]&amp;thumbnail=1" alt="Thumbnail" />
[% ELSE %]
<img class="thumbnail" id="[% img | html %]" src="/cgi-bin/koha/catalogue/image.pl?imagenumber=[% img | html %]&amp;thumbnail=1" alt="Thumbnail" />
[% END %]
</a>
[% END %]
[% END %]
</div></div>
[% ELSE %]
<div class="dialog message">There are no images for this record.</div>
[% END %]
[% ELSE %]
<div class="dialog message">Local images have not been enabled by your system administrator.</div>
[% END %]
</div>
</div>
</div>
<div class="yui-b">
[% INCLUDE 'biblio-view-menu.inc' %]
</div>
</div>
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'catalog-strings.inc' %]
[% Asset.js("js/catalog.js") | $raw %]
<script type="text/javascript">
$(document).ready(function(){
showCover([% imagenumber | html %]);
$(".show_cover").on("click",function(e){
e.preventDefault();
var coverimg = $(this).data("coverimg");
showCover(coverimg);
});
});
function showCover(img) {
$('.thumbnail').attr('class', 'thumbnail');
$('#largeCoverImg').attr('src', '/cgi-bin/koha/catalogue/image.pl?imagenumber=' + img);
$('#' + img + '.thumbnail').attr('class', 'thumbnail selected');
}
</script>
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]