Bug 28179: (follow-up) Remove console.log
authorOwen Leonard <oleonard@myacpl.org>
Mon, 3 May 2021 18:08:49 +0000 (18:08 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 10 May 2021 13:52:53 +0000 (15:52 +0200)
This patch removes a "console.log" from detail.tt and replaces it with
similar output to the user. It will probably never be triggered, but
better to handle it gracefully than have a hidden log.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Rasmus Leißner <rasmus.leissner@solutions-factory.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

index f48febb..bde528c 100644 (file)
@@ -1074,7 +1074,7 @@ Note that permanent location is a code, and location may be an authval.
                             } else if ( div.attr("class") == "cover-image local-coverimg" ) {
                                 lightbox_descriptions.push(_("Local cover image (<a href='%s'>edit</a>)").format($(img).data('link')));
                             } else {
-                                console.log("Source of the image cannot be guessed.")
+                                lightbox_descriptions.push(_("Cover image source unknown"));
                             }
                         }
                     }