Bugzilla – Attachment 72414 Details for
Bug 20332
Untranslatable strings in grouped OPAC results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20332: Allow translating some grouped opac results texts
0001-Bug-20332-Allow-translating-some-grouped-opac-result.patch (text/plain), 3.05 KB, created by
paxed
on 2018-03-05 10:43:29 UTC
(
hide
)
Description:
Bug 20332: Allow translating some grouped opac results texts
Filename:
MIME Type:
Creator:
paxed
Created:
2018-03-05 10:43:29 UTC
Size:
3.05 KB
patch
obsolete
>From d2bd03f4aa029148e933ff477825a0247cc9febf Mon Sep 17 00:00:00 2001 >From: Pasi Kallinen <pasi.kallinen@joensuu.fi> >Date: Mon, 5 Mar 2018 12:10:56 +0200 >Subject: [PATCH] Bug 20332: Allow translating some grouped opac results texts > >The grouped OPAC results page has several untranslatable >javascript-added texts, including the selection modifiers "Clear all" >and "Select all" links, and the entries in the shelves/lists dropdown. > >Compare to opac-results.tt > >Signed-off-by: Pasi Kallinen <pasi.kallinen@joensuu.fi> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt >index a08f7c4820..85f23b0e10 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt >@@ -295,9 +295,9 @@ $(document).ready(function(){ > $('#sort_by').change(function() { > $('#bookbag_form').submit(); > }); >- $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">Clear all</a>"); >- $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">Select all</a>"); >- $("span.addto").html("<label for=\"addto\">Add to: </label><select name=\"addto\" id=\"addto\"><option value=\"\"></option>[% IF Koha.Preference( 'opacbookbag' ) == 1 %]<option value=\"addtocart\">Cart</option>[% END %][% IF Koha.Preference( 'virtualshelves' ) == 1 %][% IF ( loggedinusername ) %]<optgroup label=\"Lists:\">[% IF ( barshelves ) %][% FOREACH barshelvesloo IN barshelvesloop %][% IF ( category == 1 ) %]<option id=\"s[% barshelvesloo.shelfnumber %]\" value=\"addtolist\">[% barshelvesloo.shelfname | html %]</option>[% END %][% END %][% END %]<option value=\"newlist\">[ New list ]</option></optgroup>[% ELSE %]<option value=\"newlist\">List</option>[% END %][% END %]</select> <input type=\"submit\" class=\"submit\" value=\"Save\" />"); >+ $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">" + _("Clear all") + "</a>"); >+ $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">" + _("Select all") + "</a>"); >+ $("span.addto").html("<label for=\"addto\">" + _("Add to: ") + "</label><select name=\"addto\" id=\"addto\"><option value=\"\"></option>[% IF Koha.Preference( 'opacbookbag' ) == 1 %]<option value=\"addtocart\">" + _("Cart") + "</option>[% END %][% IF Koha.Preference( 'virtualshelves' ) == 1 %][% IF ( loggedinusername ) %]<optgroup label=\"" + _("Lists:") + "\">[% IF ( barshelves ) %][% FOREACH barshelvesloo IN barshelvesloop %][% IF ( category == 1 ) %]<option id=\"s[% barshelvesloo.shelfnumber %]\" value=\"addtolist\">[% barshelvesloo.shelfname | html %]</option>[% END %][% END %][% END %]<option value=\"newlist\">" + _("[ New list ]") + "</option></optgroup>[% ELSE %]<option value=\"newlist\">" + _("List") + "</option>[% END %][% END %]</select> <input type=\"submit\" class=\"submit\" value=\"" + _("Save") + "\" />"); > $("#addto").change(function(){ > cartList(); > }); >-- >2.11.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20332
:
72414
|
76758
|
76860