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 2091-2097 li { Link Here
2091
    }
2091
    }
2092
}
2092
}
2093
2093
2094
#cover-slides {
2094
.cover-slides {
2095
    background: #FFF url("[% interface | html %]/[% theme | html %]/img/spinner-small.gif") center center no-repeat;
2095
    background: #FFF url("[% interface | html %]/[% theme | html %]/img/spinner-small.gif") center center no-repeat;
2096
    border: 1px solid #b9d8d9;
2096
    border: 1px solid #b9d8d9;
2097
    border-radius: 3px;
2097
    border-radius: 3px;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-9 / +13 lines)
Lines 972-991 Note that permanent location is a code, and location may be an authval. Link Here
972
                        }
972
                        }
973
                        // If more that one slide is present, add a navigation link
973
                        // If more that one slide is present, add a navigation link
974
                        // for activating the slide
974
                        // for activating the slide
975
                        if( coverSlides.length > 1 ){
975
                        var covernav = $("<a href=\"#\" data-num=\"" + index + "\" class=\"cover-nav\"></a>");
976
                            var covernav = $("<a href=\"#\" data-num=\"" + index + "\" class=\"cover-nav\"></a>");
976
                        if( index == 0 ){
977
                            if( index == 0 ){
977
                            // Set the first navigation link as active
978
                                // Set the first navigation link as active
978
                            $(covernav).addClass("nav-active");
979
                                $(covernav).addClass("nav-active");
980
                            }
981
                            $(covernav).html("<i class=\"fa fa-circle\"></i>");
982
                            $("#cover-slides").append( covernav );
983
                        }
979
                        }
980
                        $(covernav).html("<i class=\"fa fa-circle\"></i>");
981
                        $("#cover-slides").append( covernav );
984
                    }
982
                    }
985
                }
983
                }
986
            });
984
            });
987
            if( $(".cover-image:visible").length < 1 ){
985
            if( $(".cover-image:visible").length < 1 ){
988
                $("#cover-slides").remove();
986
                $("#cover-slides").remove();
987
            } else if( $(".cover-image:visible").length == 1 ){
988
                $(".cover-nav").remove();
989
                $("#cover-slides").addClass("cover-slides");
990
            } else {
991
                $("#cover-slides").addClass("cover-slides");
989
            }
992
            }
990
993
991
            $("#editions img").each(function(i){
994
            $("#editions img").each(function(i){
Lines 1159-1166 Note that permanent location is a code, and location may be an authval. Link Here
1159
                link = $(this).attr("href");
1162
                link = $(this).attr("href");
1160
                openWindow(link,"Print spine label",400,400);
1163
                openWindow(link,"Print spine label",400,400);
1161
             });
1164
             });
1162
             $("#cover-slides").on("click",".cover-nav", function(){
1165
             $("#cover-slides").on("click",".cover-nav", function(e){
1163
                // Adding click handler for cover image navigation links
1166
                // Adding click handler for cover image navigation links
1167
                e.preventDefault();
1164
                var num = $(this).data("num");
1168
                var num = $(this).data("num");
1165
                $(".cover-nav").removeClass("nav-active");
1169
                $(".cover-nav").removeClass("nav-active");
1166
                $(this).addClass("nav-active");
1170
                $(this).addClass("nav-active");
(-)a/koha-tmpl/intranet-tmpl/prog/js/localcovers.js (-2 / +1 lines)
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