Bugzilla – Attachment 36427 Details for
Bug 13351
Untranslatable javascript in members.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13351 - Untranslatable javascript in members.tt
Bug-13351---Untranslatable-javascript-in-memberstt.patch (text/plain), 3.02 KB, created by
Mirko Tietgen
on 2015-03-03 17:09:28 UTC
(
hide
)
Description:
Bug 13351 - Untranslatable javascript in members.tt
Filename:
MIME Type:
Creator:
Mirko Tietgen
Created:
2015-03-03 17:09:28 UTC
Size:
3.02 KB
patch
obsolete
>From 2915caa3571e78b780b6e97927899c83b439fc7e Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Tue, 3 Mar 2015 11:49:29 +0100 >Subject: [PATCH] Bug 13351 - Untranslatable javascript in members.tt > >This patch streamlines the page title text for search results in Home > Patrons to make it translateable (and more readable). > >To test: >- Apply patch >- Select Englsh language >- Apply filter wit several values or click on a letter for "Browse by last name" >- Verify that the title makes sense >- Translate to your language and select this language >- Verify that the text appears properly in your language > >Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt | 13 ++++++------- > 1 file changed, 6 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >index f1f0fa8..ea90bfd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >@@ -221,26 +221,25 @@ $(document).ready(function() { > > // Update the string "Results found ..." > function update_searched(){ >- var searched = ""; >- searched += "on " + $("#searchfieldstype_filter").find("option:selected").text().toLowerCase() + " fields"; >+ var searched = $("#searchfieldstype_filter").find("option:selected").text(); > if ( $("#searchmember_filter").val() ) { > if ( $("#searchtype_filter").val() == 'start_with' ) { > searched += _(" starting with "); > } else { > searched += _(" containing "); > } >- searched += $("#searchmember_filter").val(); >+ searched += "'" + $("#searchmember_filter").val() + "'"; > } > if ( $("#firstletter_filter").val() ) { >- searched += _(" begin with ") + $("#firstletter_filter").val(); >+ searched += _(" begins with ") + "'" + $("#firstletter_filter").val() +"'"; > } > if ( $("#categorycode_filter").val() ) { >- searched += _(" with category ") + $("#categorycode_filter").find("option:selected").text(); >+ searched += _(" with category ") + "'" + $("#categorycode_filter").find("option:selected").text() + "'"; > } > if ( $("#branchcode_filter").val() ) { > searched += _(" in library ") + $("#branchcode_filter").find("option:selected").text(); > } >- $("#searchpattern").text("for patron " + searched); >+ $("#searchpattern").text(searched); > } > > // Redraw the table >@@ -327,7 +326,7 @@ function filterByFirstLetterSurname(letter) { > > <div id="searchresults"> > <div id="searchheader"> >- <h3>Results found <span id="searchpattern">[% IF searchmember %] for '[% searchmember %]'[% END %]</span></h3> >+ <h3>Patrons found for: <span id="searchpattern">[% IF searchmember %] for '[% searchmember %]'[% END %]</span></h3> > </div> > [% IF CAN_user_tools_manage_patron_lists %] > <div id="searchheader"> >-- >1.7.10.4
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 13351
:
36386
|
36427
|
36579