From 23bd2f6f94160df3b446832ae6cf769033c6a3b4 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 | 6 +++--- 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, 46 insertions(+), 47 deletions(-) diff --git a/Open-ILS/src/templates/kpac/getit.tt2 b/Open-ILS/src/templates/kpac/getit.tt2 index 396554a114..62d9adf342 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"; @@ -128,13 +128,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 fdcb8cf016..c5e9ae8473 100644 --- a/Open-ILS/src/templates/kpac/parts/header.tt2 +++ b/Open-ILS/src/templates/kpac/parts/header.tt2 @@ -9,8 +9,8 @@
[% 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 %]