From 68875168f7d5f6ec5a9bb737bd1da918fe493732 Mon Sep 17 00:00:00 2001 From: tworrall Date: Wed, 12 Jun 2013 15:24:52 -0400 Subject: [PATCH] changed the way the limit search home page feature works so that it will support i18n --- themes/wilma/css/wilma.css | 4 ++-- themes/wilma/i18n/all.properties | 2 +- themes/wilma/templates/page-home.ftl | 11 ++++++++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/themes/wilma/css/wilma.css b/themes/wilma/css/wilma.css index 6203c4f2..b7143d30 100644 --- a/themes/wilma/css/wilma.css +++ b/themes/wilma/css/wilma.css @@ -839,9 +839,9 @@ a.filter-search { input.search-homepage { border: 0; background-color: #f9fafa; - background: url('../images/limit-search.png') no-repeat; background-position: right; - opacity: .7; + opacity: .5; + text-align:right; } .filter-default { diff --git a/themes/wilma/i18n/all.properties b/themes/wilma/i18n/all.properties index 2aa17572..c659cdd5 100644 --- a/themes/wilma/i18n/all.properties +++ b/themes/wilma/i18n/all.properties @@ -812,4 +812,4 @@ map_being_refreshed_msg = is now being refreshed. The visualization will load as publication_pubs = publications (pubs.) percent_activity = % activity - +limit_search = limit search diff --git a/themes/wilma/templates/page-home.ftl b/themes/wilma/templates/page-home.ftl index 0a71962c..fe00ce0b 100644 --- a/themes/wilma/templates/page-home.ftl +++ b/themes/wilma/templates/page-home.ftl @@ -46,7 +46,7 @@
- +
@@ -85,7 +85,7 @@ <#include "footer.ftl"> <#-- builds a json object that is used by js to render the academic departments section --> <@lh.listAcademicDepartments /> - + // set the 'limmit search' text and alignment + if ( $('input.search-homepage').css('text-align') == "right" ) { + $('input.search-homepage').attr("value","${i18n().limit_search} \u2192"); + } + + \ No newline at end of file