From 250456d428bdbc069e7252b9ebb49f17b7e9d515 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Mon, 12 Dec 2016 14:05:01 -0500 Subject: [PATCH] Since we only have bits and pieces of Spanish translations for our customized KPAC right now, removing the parts that would display in Spanish if Spanish has been selected in the OPAC. In the future when all parts of the KPAC have been translated and graphic buttons have been switched to text buttons that can be translated, we will then need to go back in and re-add the language markup to allow the translations to occur. Signed-off-by: Terran McCanna --- Open-ILS/src/templates/kpac/getit.tt2 | 22 ++++++++++------------ Open-ILS/src/templates/kpac/getit_results.tt2 | 17 +++++++++-------- Open-ILS/src/templates/kpac/home.tt2 | 10 +++++----- Open-ILS/src/templates/kpac/parts/breadcrumb.tt2 | 2 +- Open-ILS/src/templates/kpac/parts/copy_table.tt2 | 20 ++++++++++---------- Open-ILS/src/templates/kpac/parts/header.tt2 | 2 +- Open-ILS/src/templates/kpac/parts/searchbox.tt2 | 2 +- Open-ILS/src/templates/kpac/parts/subpage.tt2 | 6 +++--- Open-ILS/src/templates/kpac/record.tt2 | 4 ++-- Open-ILS/src/templates/kpac/results.tt2 | 4 ++-- 10 files changed, 44 insertions(+), 45 deletions(-) diff --git a/Open-ILS/src/templates/kpac/getit.tt2 b/Open-ILS/src/templates/kpac/getit.tt2 index 881da455e4..34b02dcc04 100644 --- a/Open-ILS/src/templates/kpac/getit.tt2 +++ b/Open-ILS/src/templates/kpac/getit.tt2 @@ -21,13 +21,13 @@ [% l('library card') %] [% END %] [% WRAPPER 'kpac/parts/help_popups.tt2' popup_id='password_help' %] -

[% l('Enter your password') %]

+

Enter your password

[% END %]
-

[% l('get it!') %]

-

[% l('If you would like to place a hold on this item, please enter the ' _ - 'following information and click Submit below:') %]

+

get it!

+

If you would like to place a hold on this item, please enter the + following information and click Submit below:

@@ -38,7 +38,7 @@ [% IF !ctx.user %] [% seed = l(' Enter Numbers... ') %] -

[% l('Library Card Number without spaces:') %]

+

Library Card Number:

 
 
-

[% l('Password') %]

+

Password

[% l('Choose a Pickup Library:') %]

+

Choose a Pickup Library:

[% def_lib = ctx.default_pickup_lib || ctx.physical_loc; PROCESS "opac/parts/org_selector.tt2"; @@ -146,13 +146,11 @@
-

[% l('save it!') %]

-

[% l('If you would like to save this item to a list to be requested later, click Submit below.') %]

+

save it!

+

If you would like to save this item to a list to be requested later, click Submit below.

[% IF ctx.user AND ctx.bookbags AND ctx.bookbags.size > 0 %]
-

- [% l('You may also save this item to a list you have already created by selecting one of your lists below.') %] -

+

You may also save this item to a list you have already created by selecting one of your lists below.

[% END %]
diff --git a/Open-ILS/src/templates/kpac/getit_results.tt2 b/Open-ILS/src/templates/kpac/getit_results.tt2 index 391ed2ce7e..184a8fec0c 100644 --- a/Open-ILS/src/templates/kpac/getit_results.tt2 +++ b/Open-ILS/src/templates/kpac/getit_results.tt2 @@ -12,29 +12,30 @@
[% IF ctx.added_to_anon %] -

[% l('You Saved It!') %]

+

You Saved It!

[% l('You successfully saved [_1].', title_html) %]
[% l('To manage your lists, go to [_1]My Lists[_2]', '', '') %] -

+

[% ELSIF ctx.added_to_list %] [% list_html = ctx.added_to_list.name | html %] -

[% l('You Saved It!') %]

+

You Saved It!

[% l('You successfully saved [_1] to [_2].', title_html, list_html) %]
[% l('To manage your lists, go to [_1]My Lists[_2]', '', '') %] -

+

[% ELSIF CGI.param('hold') %] [% lib_html = ctx.get_aou(ctx.hold.pickup_lib).name | html %] -

[% l('Hold Successful!') %]

-

+

Hold Successful!

+

[% l('Your request for [_1] was successful.', '' _ title_html _ '') %]
- [% l('You will be notified when your item is ready for pickup.') %] + You will be notified when your item is ready for pickup.

[% ELSE %]

[% l('Unable to request [_1].', '' _ title_html _ '') %]
- [% l('Please see a librarian.') %] + Please see a librarian.') +

[% END %]
diff --git a/Open-ILS/src/templates/kpac/home.tt2 b/Open-ILS/src/templates/kpac/home.tt2 index 6af8def9ea..34b50b538a 100644 --- a/Open-ILS/src/templates/kpac/home.tt2 +++ b/Open-ILS/src/templates/kpac/home.tt2 @@ -7,22 +7,22 @@ %]
-

[% l('Search the Libraries') %]

+

Search the Libraries

[% qtype = CGI.param('qtype') %] - + - + - + @@ -31,7 +31,7 @@ - +
[% INCLUDE build_org_selector show_loc_groups=1 %]
diff --git a/Open-ILS/src/templates/kpac/parts/breadcrumb.tt2 b/Open-ILS/src/templates/kpac/parts/breadcrumb.tt2 index 9ba6ff736b..b59736783d 100644 --- a/Open-ILS/src/templates/kpac/parts/breadcrumb.tt2 +++ b/Open-ILS/src/templates/kpac/parts/breadcrumb.tt2 @@ -38,7 +38,7 @@
 
- [% l('Get it') %] + Get it
 
[% END %] diff --git a/Open-ILS/src/templates/kpac/parts/copy_table.tt2 b/Open-ILS/src/templates/kpac/parts/copy_table.tt2 index d8c83d31d8..06b157351c 100644 --- a/Open-ILS/src/templates/kpac/parts/copy_table.tt2 +++ b/Open-ILS/src/templates/kpac/parts/copy_table.tt2 @@ -15,10 +15,10 @@ END; - - - - + + + + [%- FOR copy_info IN ctx.copies; @@ -58,24 +58,24 @@ END; [%- IF ctx.copy_offset > 0; new_offset = ctx.copy_offset - ctx.copy_limit; IF new_offset < 0; new_offset = 0; END %] - « [% - l('Previous [_1]', ctx.copy_offset - new_offset) %] + « Previous [% + l('[_1]', ctx.copy_offset - new_offset) %] [%- END %] [%- more_copies_limit = 50 %] [%# TODO: config %] diff --git a/Open-ILS/src/templates/kpac/parts/header.tt2 b/Open-ILS/src/templates/kpac/parts/header.tt2 index eddce8d9b3..1ff723f667 100644 --- a/Open-ILS/src/templates/kpac/parts/header.tt2 +++ b/Open-ILS/src/templates/kpac/parts/header.tt2 @@ -30,7 +30,7 @@ l('Logout ([_1] [_2])', ctx.user.first_given_name, ctx.user.family_name) %] [% ELSE %] [% redir = CGI.url('-base' => 1) _ ctx.kpac_root _ '/home' %] - [% l('Login') %] + Login [% END %] diff --git a/Open-ILS/src/templates/kpac/parts/searchbox.tt2 b/Open-ILS/src/templates/kpac/parts/searchbox.tt2 index a21dcbac7b..29dae464c0 100644 --- a/Open-ILS/src/templates/kpac/parts/searchbox.tt2 +++ b/Open-ILS/src/templates/kpac/parts/searchbox.tt2 @@ -1,4 +1,4 @@ -
[% l('New Search') %]
+
New Search
- + - + - + diff --git a/Open-ILS/src/templates/kpac/record.tt2 b/Open-ILS/src/templates/kpac/record.tt2 index 1499e86132..bf265eb45f 100644 --- a/Open-ILS/src/templates/kpac/record.tt2 +++ b/Open-ILS/src/templates/kpac/record.tt2 @@ -93,13 +93,13 @@ -
[% l('You can find this item at these locations:') %]
+
You can find this item at these locations:
[% INCLUDE 'kpac/parts/copy_table.tt2' %]
[% IF attrs.summary %] -
[% l('About this item:') %]
+
About this item:
[% FOR sum IN attrs.summary %] [% IF !loop.first; '
'; END %] diff --git a/Open-ILS/src/templates/kpac/results.tt2 b/Open-ILS/src/templates/kpac/results.tt2 index 2ecb7cd536..a4ec528b88 100644 --- a/Open-ILS/src/templates/kpac/results.tt2 +++ b/Open-ILS/src/templates/kpac/results.tt2 @@ -8,7 +8,7 @@

[% ctx.bookbag.name | html %]

[% ctx.bookbag.description | html %]
[% ELSE %] -

[% l('Search Results') %]

+

Search Results

[% END %] @@ -16,7 +16,7 @@
-

[% l('No records were found that matched your search.') %]

+

No records were found that matched your search.

[% ELSE %] -- 2.11.0
[% l('Library System: Library Name') %][% l('Shelving Location') %][% l('Call Number') %][% l('Status') %]Library System: Library NameShelving LocationCall NumberStatus
[%- IF ctx.copies.size >= ctx.copy_limit %] - [% - l('Next [_1]', ctx.copy_limit) %] » + Next [% + l('[_1]', ctx.copy_limit) %] » [%- END %] [%- IF ctx.copy_limit != more_copies_limit AND ctx.copies.size >= ctx.copy_limit %] - [% l('Show more copies') %] + Show more copies [%- ELSIF ctx.copy_limit == more_copies_limit %] - [% l('Show fewer copies') %] + Show fewer copies [%- END %]