diff --git a/app/views/bookmarks/index.html.erb b/app/views/bookmarks/index.html.erb index bcb696cc26..a4b37d97d8 100644 --- a/app/views/bookmarks/index.html.erb +++ b/app/views/bookmarks/index.html.erb @@ -1,21 +1,20 @@ <% @page_title = t('blacklight.bookmarks.page_title', :application_name => application_name) %>
-

<%= t('blacklight.bookmarks.title') %>

+

<%= t('blacklight.bookmarks.title') %>

-<%- if current_or_guest_user.blank? -%> + <%- if current_or_guest_user.blank? -%> -

<%= t('blacklight.bookmarks.need_login') %>

+

<%= t('blacklight.bookmarks.need_login') %>

-<%- elsif @response.documents.blank? -%> + <%- elsif @response.documents.blank? -%> -

<%= t('blacklight.bookmarks.no_bookmarks') %>

-<% else %> - <%= render 'sort_and_per_page' %> - <%= render partial: 'tools', locals: { document_list: @response.documents } %> - - <%= render_document_index %> - <%= render 'results_pagination' %> -<% end %> +

<%= t('blacklight.bookmarks.no_bookmarks') %>

+ <% else %> + <%= render 'sort_and_per_page' %> + <%= render partial: 'tools', locals: { document_list: @response.documents } %> +

<%= t('blacklight.bookmarks.list_title') %>

+ <%= render_document_index %> + <%= render 'results_pagination' %> + <% end %>
- diff --git a/app/views/catalog/_citation.html.erb b/app/views/catalog/_citation.html.erb index c8c05101d2..75477e38e6 100644 --- a/app/views/catalog/_citation.html.erb +++ b/app/views/catalog/_citation.html.erb @@ -1,20 +1,20 @@ <% @documents.each do |document| %> - +

<%= document_heading(document) %>

<% if document.respond_to?(:export_as_mla_citation_txt) %> -

<%= t('blacklight.citation.mla') %>

+

<%= t('blacklight.citation.mla') %>

<%= document.send(:export_as_mla_citation_txt).html_safe %>

<% end %> <% if document.respond_to?(:export_as_apa_citation_txt) %> -

<%= t('blacklight.citation.apa') %>

+

<%= t('blacklight.citation.apa') %>

<%= document.send(:export_as_apa_citation_txt).html_safe %>

<% end %> <%- if document.respond_to?(:export_as_chicago_citation_txt) -%> -

<%= t('blacklight.citation.chicago') %>

+

<%= t('blacklight.citation.chicago') %>

<%= document.send(:export_as_chicago_citation_txt).html_safe %> <%- end -%> diff --git a/app/views/catalog/_constraints.html.erb b/app/views/catalog/_constraints.html.erb index 3f5b0ab9bd..19b04a2a72 100644 --- a/app/views/catalog/_constraints.html.erb +++ b/app/views/catalog/_constraints.html.erb @@ -1,5 +1,7 @@ <% if query_has_constraints? %>
+

<%= t('blacklight.search.search_contraints_header') %>

+ <%=link_to t('blacklight.search.start_over'), start_over_path, class: "catalog_startOverLink btn btn-primary" %> <%= t('blacklight.search.filters.title') %> <%= render_constraints(params) %> diff --git a/app/views/catalog/_did_you_mean.html.erb b/app/views/catalog/_did_you_mean.html.erb index 9d47605c8c..6fbb990919 100644 --- a/app/views/catalog/_did_you_mean.html.erb +++ b/app/views/catalog/_did_you_mean.html.erb @@ -1,5 +1,5 @@ <% if should_show_spellcheck_suggestions? @response %>
-

<%= t('blacklight.did_you_mean', :options => safe_join(@response.spelling.words.map { |word| link_to_query(word) }, " #{t('blacklight.or')} ")).html_safe %>

+

<%= t('blacklight.did_you_mean', :options => safe_join(@response.spelling.words.map { |word| link_to_query(word) }, " #{t('blacklight.or')} ")).html_safe %>

<% end %> diff --git a/app/views/catalog/_group.html.erb b/app/views/catalog/_group.html.erb index 2a4f5d49b9..20a9c42cbb 100644 --- a/app/views/catalog/_group.html.erb +++ b/app/views/catalog/_group.html.erb @@ -1,7 +1,7 @@ <% # container for all groups in index view -%>
<%- @response.groups.each do |g| %> -

<%= g.key %>

+

<%= g.key %>

<%= render_document_index g.docs %>
diff --git a/app/views/catalog/_home_text.html.erb b/app/views/catalog/_home_text.html.erb index 8e8955d384..c568069b5e 100644 --- a/app/views/catalog/_home_text.html.erb +++ b/app/views/catalog/_home_text.html.erb @@ -1,8 +1,8 @@
-

<%= t('blacklight.welcome') %>

+

<%= t('blacklight.welcome') %>

Blacklight is a multi-institutional open-source collaboration building a better discovery platform framework.

- +

<%= link_to 'Read the Documentation', 'https://github.com/projectblacklight/blacklight/wiki', class: 'btn btn-primary' %> <%= link_to 'See Examples', 'http://projectblacklight.org', class: 'btn btn-secondary' %> @@ -10,7 +10,7 @@

-

Here’s how to get started customizing your application:

+

Here’s how to get started customizing your application:

There are many ways to override specific behaviors and views in Blacklight. Because Blacklight is distributed as a Rails engine-based gem, all customization of Blacklight behavior should be done within your application by overriding Blacklight-provided behaviors with your own.

@@ -31,7 +31,7 @@ <%# This is the same panel shown in the Rails welcome template %> diff --git a/app/views/catalog/_search_results.html.erb b/app/views/catalog/_search_results.html.erb index 66c10a1604..16375e0c35 100644 --- a/app/views/catalog/_search_results.html.erb +++ b/app/views/catalog/_search_results.html.erb @@ -1,5 +1,3 @@ -

<%= t('blacklight.search.search_results_header') %>

- <% @page_title = t('blacklight.search.page_title.title', :constraints => render_search_to_page_title(params), :application_name => application_name) %> <% content_for(:head) do -%> @@ -10,6 +8,8 @@ <% end %> <% content_for(:container_header) do -%> +

<%= t('blacklight.search.header') %>

+ <%= render 'constraints' %> <% end %> diff --git a/app/views/catalog/_show_tools.html.erb b/app/views/catalog/_show_tools.html.erb index 9fc0d62a0f..4c6b2979c7 100644 --- a/app/views/catalog/_show_tools.html.erb +++ b/app/views/catalog/_show_tools.html.erb @@ -10,7 +10,7 @@ <% if show_doc_actions? %>
- <%= t('blacklight.tools.title') %> +

<%= t('blacklight.tools.title') %>

    diff --git a/app/views/catalog/_zero_results.html.erb b/app/views/catalog/_zero_results.html.erb index 2de336cea8..265b7e6387 100644 --- a/app/views/catalog/_zero_results.html.erb +++ b/app/views/catalog/_zero_results.html.erb @@ -5,7 +5,7 @@
  • <%= t 'blacklight.search.zero_results.use_fewer_keywords' %>
  • <%- if params[:q] and params[:search_field] and params[:search_field] != blacklight_config.default_search_field.try(:key) -%> -
  • <%= t 'blacklight.search.zero_results.search_fields', :search_fields => search_field_label(params) %> - +
  • <%= t 'blacklight.search.zero_results.search_fields', :search_fields => search_field_label(params) %> - <%= link_to t('blacklight.search.zero_results.search_everything', field: blacklight_config.default_search_field.label), url_for(search_state.params_for_search(search_field: blacklight_config.default_search_field.key)) %>
  • <%- end %> diff --git a/app/views/catalog/citation.js.erb b/app/views/catalog/citation.js.erb index 32f9e5e8ce..ffcdcc6e8d 100644 --- a/app/views/catalog/citation.js.erb +++ b/app/views/catalog/citation.js.erb @@ -1,5 +1,5 @@
- +