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

(-)a/koha-tmpl/opac-tmpl/prog/en/js/google-jackets.js (-2 / +3 lines)
Lines 19-25 KOHA.Google = { Link Here
19
     */
19
     */
20
    GetCoverFromIsbn: function(newWindow) {
20
    GetCoverFromIsbn: function(newWindow) {
21
        var bibkeys = [];
21
        var bibkeys = [];
22
        $("div [id^=gbs-thumbnail]").each(function(i) {
22
        $("[id^=gbs-thumbnail]").each(function(i) {
23
            bibkeys.push($(this).attr("class")); // id=isbn
23
            bibkeys.push($(this).attr("class")); // id=isbn
24
        });
24
        });
25
        bibkeys = bibkeys.join(',');
25
        bibkeys = bibkeys.join(',');
Lines 45-51 KOHA.Google = { Link Here
45
         }
45
         }
46
         for (id in booksInfo) {
46
         for (id in booksInfo) {
47
             var book = booksInfo[id];
47
             var book = booksInfo[id];
48
             $("."+book.bib_key).each(function() {
48
             $("[id^=gbs-thumbnail]."+book.bib_key).each(function() {
49
                 var a = document.createElement("a");
49
                 var a = document.createElement("a");
50
                 a.href = book.info_url;
50
                 a.href = book.info_url;
51
                 if (typeof(book.thumbnail_url) != "undefined") {
51
                 if (typeof(book.thumbnail_url) != "undefined") {
Lines 71-75 KOHA.Google = { Link Here
71
                 }
71
                 }
72
             });
72
             });
73
         }
73
         }
74
74
     }
75
     }
75
};
76
};
(-)a/koha-tmpl/opac-tmpl/prog/en/js/openlibrary.js (-3 / +2 lines)
Lines 19-25 KOHA.OpenLibrary = { Link Here
19
     */
19
     */
20
    GetCoverFromIsbn: function() {
20
    GetCoverFromIsbn: function() {
21
        var bibkeys = [];
21
        var bibkeys = [];
22
        $("div [id^=openlibrary-thumbnail]").each(function(i) {
22
        $("[id^=openlibrary-thumbnail]").each(function(i) {
23
            bibkeys.push("ISBN:" + $(this).attr("class")); // id=isbn
23
            bibkeys.push("ISBN:" + $(this).attr("class")); // id=isbn
24
        });
24
        });
25
        bibkeys = bibkeys.join(',');
25
        bibkeys = bibkeys.join(',');
Lines 40-46 KOHA.OpenLibrary = { Link Here
40
        for (id in booksInfo) {
40
        for (id in booksInfo) {
41
            var book = booksInfo[id];
41
            var book = booksInfo[id];
42
            var isbn = id.substring(5);
42
            var isbn = id.substring(5);
43
            $("."+isbn).each(function() {
43
            $("[id^=openlibrary-thumbnail]."+isbn).each(function() {
44
                var is_opacdetail = /openlibrary-thumbnail-preview/.exec($(this).attr("id"));
44
                var is_opacdetail = /openlibrary-thumbnail-preview/.exec($(this).attr("id"));
45
                var a = document.createElement("a");
45
                var a = document.createElement("a");
46
                a.href = booksInfo.url;
46
                a.href = booksInfo.url;
47
- 

Return to bug 7657