Bug 18829: (QA follow-up) I18N, test character and breadcrumbs

* Removes a 'heart' character from the file, probably added for testing
* Corrects breadbrumbs to make QA test tool happy
* Makes JS message translatable (test by manipulating the link to an invalid record number in DOM)

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Katrin Fischer 2023-04-10 17:00:21 +00:00 committed by Tomas Cohen Arazi
parent 768f587c7b
commit d95f31dcc6
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 3 additions and 3 deletions

View file

@ -1740,7 +1740,7 @@ Note that permanent location is a code, and location may be an authval.
var pageElastic = $(this).attr("href");
$("#elasticPreview .modal-body").load(pageElastic, function( response, status, xhr ) {
if( status == 'error' ){
$("#elasticPreview .modal-body").html('<h1>An error has occurred!</h1><h2><em>Error 404</em></h2><li>An internal link in the client is broken and the page does not exist</li></ul><h3>What\'s next?</h3><ul style="margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;"><li>Use top menu bar to navigate to another part of Koha.</li><li>To report a broken link or any other issue, please contact the Koha administrator. <a href="mailto:[% Koha.Preference('KohaAdminEmailAddress') | uri %]">Send email</a></li></ul>');
$("#elasticPreview .modal-body").html("<h1>"+_("An error has occurred!")+"</h1><h2><em>"+_("Error 404")+"</em></h2><ul><li>"+_("An internal link in the staff interface is broken and the page does not exist")+"</li></ul><h3>"+_("What's next?")+"</h3><ul style='margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;'><li>"+_("Use top menu bar to navigate to another part of Koha.")+"</li><li>"+_("To report a broken link or any other issue, please contact the Koha administrator.")+" <a href='mailto:[% Koha.Preference("KohaAdminEmailAddress") | uri %]'>"+_("Send email")+"</a></li></ul>");
}
});
$('#elasticPreview').modal({show:true});

View file

@ -1,6 +1,6 @@
[% INCLUDE 'doc-head-open.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
[% USE raw %]
<title>Koha &rsaquo; Catalog &rsaquo; Elasticsearch record</title>
<title>Elasticsearch record &rsaquo; Catalog &rsaquo; Koha</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body id="catalog_showelastic" class="catalog">