|
Lines 22-28
function verify_cover_images() {
Link Here
|
| 22 |
div.remove(); |
22 |
div.remove(); |
| 23 |
} else { |
23 |
} else { |
| 24 |
lightbox_descriptions.push( |
24 |
lightbox_descriptions.push( |
| 25 |
_( |
25 |
__( |
| 26 |
"Amazon cover image (<a href='%s'>see the original image</a>)" |
26 |
"Amazon cover image (<a href='%s'>see the original image</a>)" |
| 27 |
).format($(img).data("link")) |
27 |
).format($(img).data("link")) |
| 28 |
); |
28 |
); |
|
Lines 36-56
function verify_cover_images() {
Link Here
|
| 36 |
// Remove the container |
36 |
// Remove the container |
| 37 |
div.remove(); |
37 |
div.remove(); |
| 38 |
} else { |
38 |
} else { |
| 39 |
lightbox_descriptions.push(_("Custom cover image")); |
39 |
lightbox_descriptions.push( |
|
|
40 |
__("Custom cover image") |
| 41 |
); |
| 40 |
} |
42 |
} |
| 41 |
} else if (div.hasClass("syndetics-coverimg")) { |
43 |
} else if (div.hasClass("syndetics-coverimg")) { |
| 42 |
lightbox_descriptions.push(_("Image from Syndetics")); |
44 |
lightbox_descriptions.push(__("Image from Syndetics")); |
| 43 |
} else if (div.hasClass("googlejacket-coverimg")) { |
45 |
} else if (div.hasClass("googlejacket-coverimg")) { |
| 44 |
if (img.naturalHeight) { |
46 |
if (img.naturalHeight) { |
| 45 |
lightbox_descriptions.push( |
47 |
lightbox_descriptions.push( |
| 46 |
_( |
48 |
__( |
| 47 |
"Image from Google Books (<a href='%s'>see the original image</a>)" |
49 |
"Image from Google Books (<a href='%s'>see the original image</a>)" |
| 48 |
).format($(img).data("link")) |
50 |
).format($(img).data("link")) |
| 49 |
); |
51 |
); |
| 50 |
} |
52 |
} |
| 51 |
} else if (div.hasClass("openlibrary-coverimg")) { |
53 |
} else if (div.hasClass("openlibrary-coverimg")) { |
| 52 |
lightbox_descriptions.push( |
54 |
lightbox_descriptions.push( |
| 53 |
_( |
55 |
__( |
| 54 |
"Image from OpenLibrary (<a href='%s'>see the original image</a>)" |
56 |
"Image from OpenLibrary (<a href='%s'>see the original image</a>)" |
| 55 |
).format($(img).data("link")) |
57 |
).format($(img).data("link")) |
| 56 |
); |
58 |
); |
|
Lines 59-71
function verify_cover_images() {
Link Here
|
| 59 |
var coce_description; |
61 |
var coce_description; |
| 60 |
let src = $(img).attr("src"); |
62 |
let src = $(img).attr("src"); |
| 61 |
if (src.indexOf("amazon.com") >= 0) { |
63 |
if (src.indexOf("amazon.com") >= 0) { |
| 62 |
coce_description = _("Coce image from Amazon.com"); |
64 |
coce_description = __("Coce image from Amazon.com"); |
| 63 |
} else if (src.indexOf("google.com") >= 0) { |
65 |
} else if (src.indexOf("google.com") >= 0) { |
| 64 |
coce_description = _( |
66 |
coce_description = __( |
| 65 |
"Coce image from Google Books" |
67 |
"Coce image from Google Books" |
| 66 |
); |
68 |
); |
| 67 |
} else if (src.indexOf("openlibrary.org") >= 0) { |
69 |
} else if (src.indexOf("openlibrary.org") >= 0) { |
| 68 |
coce_description = _( |
70 |
coce_description = __( |
| 69 |
"Coce image from Open Library" |
71 |
"Coce image from Open Library" |
| 70 |
); |
72 |
); |
| 71 |
} |
73 |
} |
|
Lines 73-85
function verify_cover_images() {
Link Here
|
| 73 |
lightbox_descriptions.push(coce_description); |
75 |
lightbox_descriptions.push(coce_description); |
| 74 |
} else if (div.hasClass("bakertaylor-coverimg")) { |
76 |
} else if (div.hasClass("bakertaylor-coverimg")) { |
| 75 |
lightbox_descriptions.push( |
77 |
lightbox_descriptions.push( |
| 76 |
_("Image from Baker & Taylor") |
78 |
__("Image from Baker & Taylor") |
| 77 |
); |
79 |
); |
| 78 |
} else if (div.hasClass("cover-image local-coverimg")) { |
80 |
} else if (div.hasClass("cover-image local-coverimg")) { |
| 79 |
lightbox_descriptions.push(_("Local cover image")); |
81 |
lightbox_descriptions.push(__("Local cover image")); |
| 80 |
} else { |
82 |
} else { |
| 81 |
lightbox_descriptions.push( |
83 |
lightbox_descriptions.push( |
| 82 |
_("Cover image source unknown") |
84 |
__("Cover image source unknown") |
| 83 |
); |
85 |
); |
| 84 |
} |
86 |
} |
| 85 |
} else { |
87 |
} else { |
| 86 |
- |
|
|