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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-24 lines)
Lines 128-136 Link Here
128
</script>
128
</script>
129
[% Asset.js("js/global.js") | $raw %]
129
[% Asset.js("js/global.js") | $raw %]
130
[% IF ( OPACAmazonCoverImages || SyndeticsCoverImages ) %]
130
[% IF ( OPACAmazonCoverImages || SyndeticsCoverImages ) %]
131
    <script>
132
        var NO_AMAZON_IMAGE = _("No cover image available");
133
    </script>
134
    [% Asset.js("js/amazonimages.js") | $raw %]
131
    [% Asset.js("js/amazonimages.js") | $raw %]
135
[% END %]
132
[% END %]
136
133
Lines 179-187 Link Here
179
        var MSG_MULTI_ADD_TAG_FAILED = _("Unable to add one or more tags.");
176
        var MSG_MULTI_ADD_TAG_FAILED = _("Unable to add one or more tags.");
180
        var MSG_NO_TAG_SPECIFIED = _("No tag was specified.");
177
        var MSG_NO_TAG_SPECIFIED = _("No tag was specified.");
181
    [% END %]
178
    [% END %]
182
    [% IF OpenLibraryCovers || OpenLibrarySearch %]
183
        var NO_OL_JACKET = _("No cover image available");
184
    [% END %]
185
    [% IF (query_desc) %]
179
    [% IF (query_desc) %]
186
        var query_desc = "[% query_desc | html %]";
180
        var query_desc = "[% query_desc | html %]";
187
        var querystring = "[% querystring | html %]";
181
        var querystring = "[% querystring | html %]";
Lines 228-266 Link Here
228
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %][% IF Koha.Preference( 'TagsEnabled' ) == 1 %][% Asset.js("js/tags.js") | $raw %][% END %][% END %]
222
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %][% IF Koha.Preference( 'TagsEnabled' ) == 1 %][% Asset.js("js/tags.js") | $raw %][% END %][% END %]
229
[% IF ( GoogleJackets ) %]
223
[% IF ( GoogleJackets ) %]
230
    [% Asset.js("js/google-jackets.js") | $raw %]
224
    [% Asset.js("js/google-jackets.js") | $raw %]
231
    <script>
232
233
        var NO_GOOGLE_JACKET = _("No cover image available");
234
235
    </script>
236
[% END %]
225
[% END %]
237
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
226
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
238
    [% Asset.js("js/coce.js") | $raw %]
227
    [% Asset.js("js/coce.js") | $raw %]
239
    <script>
240
241
        var NO_COCE_JACKET = _("No cover image available");
242
243
    </script>
244
[% END %]
228
[% END %]
245
229
246
[% IF OPACLocalCoverImages %]
230
[% IF OPACLocalCoverImages %]
247
    [% Asset.js("js/localcovers.js") | $raw %]
231
    [% Asset.js("js/localcovers.js") | $raw %]
248
    <script>
249
250
    var NO_LOCAL_JACKET = _("No cover image available");
251
252
    </script>
253
[% END %]
232
[% END %]
254
233
255
[% IF ( BakerTaylorEnabled ) %]
234
[% IF ( BakerTaylorEnabled ) %]
256
    [% Asset.js("js/bakertaylorimages.js") | $raw %]
235
    [% Asset.js("js/bakertaylorimages.js") | $raw %]
257
    <script>
236
    <script>
258
259
        var NO_BAKERTAYLOR_IMAGE = _("No cover image available");
260
        $(window).load(function(){
237
        $(window).load(function(){
261
            bt_verify_images();
238
            bt_verify_images();
262
        });
239
        });
263
264
    </script>
240
    </script>
265
[% END %]
241
[% END %]
266
242
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/amazonimages.js (-2 / +2 lines)
Lines 5-13 function verify_images() { Link Here
5
            w = this.width;
5
            w = this.width;
6
            h = this.height;
6
            h = this.height;
7
            if ((w == 1) || (h == 1)) {
7
            if ((w == 1) || (h == 1)) {
8
				$(this).parent().html("<span class=\"no-image\">"+NO_AMAZON_IMAGE+"</span>");
8
                $(this).parent().html("<span class=\"no-image\">"+ __("No cover image available") +"</span>");
9
            } else if ((this.complete != null) && (!this.complete)) {
9
            } else if ((this.complete != null) && (!this.complete)) {
10
				$(this).parent().html("<span class=\"no-image\">"+NO_AMAZON_IMAGE+"</span>");
10
                $(this).parent().html("<span class=\"no-image\">"+ __("No cover image available") +"</span>");
11
            }
11
            }
12
        }
12
        }
13
		});
13
		});
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/bakertaylorimages.js (-1 / +1 lines)
Lines 4-10 function bt_verify_images() { Link Here
4
	       if (this.src.indexOf('btol.com') >= 0) {
4
	       if (this.src.indexOf('btol.com') >= 0) {
5
            h = this.height;
5
            h = this.height;
6
            if (h == 20) {
6
            if (h == 20) {
7
				$(this).before("<span class=\"no-image\" style=\"margin-bottom:5px;width:80px;\">"+NO_BAKERTAYLOR_IMAGE+"</span>");
7
                $(this).before("<span class=\"no-image\" style=\"margin-bottom:5px;width:80px;\">"+ __("No cover image available" ) +"</span>");
8
            }
8
            }
9
		}
9
		}
10
		});
10
		});
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js (-1 / +1 lines)
Lines 74-80 KOHA.Google = { Link Here
74
                 } else {
74
                 } else {
75
                     var message = document.createElement("span");
75
                     var message = document.createElement("span");
76
                     $(message).attr("class","no-image");
76
                     $(message).attr("class","no-image");
77
                     $(message).html(NO_GOOGLE_JACKET);
77
                     $(message).html(__("No cover image available"));
78
                     $(this).empty().append(message);
78
                     $(this).empty().append(message);
79
                 }
79
                 }
80
             });
80
             });
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/openlibrary.js (-2 / +1 lines)
Lines 60-66 KOHA.OpenLibrary = new function() { Link Here
60
                } else {
60
                } else {
61
                    var message =  document.createElement("span");
61
                    var message =  document.createElement("span");
62
                    $(message).attr("class","no-image");
62
                    $(message).attr("class","no-image");
63
                    $(message).html(NO_OL_JACKET);
63
                    $(message).html( __("No cover image available") );
64
                    $(this).append(message);
64
                    $(this).append(message);
65
                }
65
                }
66
            });
66
            });
67
- 

Return to bug 34026