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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-1 / +1 lines)
Lines 2095-2101 li { Link Here
2095
    }
2095
    }
2096
}
2096
}
2097
2097
2098
#cover-slides {
2098
.cover-slides {
2099
    background: #FFF url("[% interface | html %]/[% theme | html %]/img/spinner-small.gif") center center no-repeat;
2099
    background: #FFF url("[% interface | html %]/[% theme | html %]/img/spinner-small.gif") center center no-repeat;
2100
    border: 1px solid #b9d8d9;
2100
    border: 1px solid #b9d8d9;
2101
    border-radius: 3px;
2101
    border-radius: 3px;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +7 lines)
Lines 986-996 Note that permanent location is a code, and location may be an authval. Link Here
986
                                $(covernav).addClass("nav-active");
986
                                $(covernav).addClass("nav-active");
987
                            }
987
                            }
988
                            $(covernav).html("<i class=\"fa fa-circle\"></i>");
988
                            $(covernav).html("<i class=\"fa fa-circle\"></i>");
989
                            $("#cover-slides").append( covernav );
989
                            $("#cover-slides").addClass("cover-slides").append( covernav );
990
                        }
990
                        }
991
                    }
991
                    }
992
                }
992
                }
993
            });
993
            });
994
            if( $(".cover-image").length < 2 ){
995
                /* Don't show controls for switching between covers if there is only 1 */
996
                $(".cover-nav").remove();
997
            }
994
            if( $(".cover-image:visible").length < 1 ){
998
            if( $(".cover-image:visible").length < 1 ){
995
                $("#cover-slides").remove();
999
                $("#cover-slides").remove();
996
            }
1000
            }
Lines 1166-1172 Note that permanent location is a code, and location may be an authval. Link Here
1166
                link = $(this).attr("href");
1170
                link = $(this).attr("href");
1167
                openWindow(link,"Print spine label",400,400);
1171
                openWindow(link,"Print spine label",400,400);
1168
             });
1172
             });
1169
             $("#cover-slides").on("click",".cover-nav", function(){
1173
             $("#cover-slides").on("click",".cover-nav", function(e){
1174
                 e.preventDefault();
1170
                // Adding click handler for cover image navigation links
1175
                // Adding click handler for cover image navigation links
1171
                var num = $(this).data("num");
1176
                var num = $(this).data("num");
1172
                $(".cover-nav").removeClass("nav-active");
1177
                $(".cover-nav").removeClass("nav-active");
(-)a/koha-tmpl/intranet-tmpl/prog/js/localcovers.js (-3 / +2 lines)
Lines 1-4 Link Here
1
/* global _ */
1
/* global __ */
2
2
3
if (typeof KOHA == "undefined" || !KOHA) {
3
if (typeof KOHA == "undefined" || !KOHA) {
4
    var KOHA = {};
4
    var KOHA = {};
Lines 43-49 KOHA.LocalCover = { Link Here
43
            var mydiv = this;
43
            var mydiv = this;
44
            var message = document.createElement("span");
44
            var message = document.createElement("span");
45
            $(message).attr("class","no-image thumbnail");
45
            $(message).attr("class","no-image thumbnail");
46
            $(message).html( _("No cover image available") );
46
            $(message).html( __("No cover image available") );
47
            $(mydiv).append(message);
47
            $(mydiv).append(message);
48
            var img = $("<img />");
48
            var img = $("<img />");
49
            img.attr('src','/cgi-bin/koha/catalogue/image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class"))
49
            img.attr('src','/cgi-bin/koha/catalogue/image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class"))
50
- 

Return to bug 25031