blacklight 3.8.2 → 4.0.0.pre6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/README.md +1 -1
- data/VERSION +1 -1
- data/app/assets/javascripts/blacklight/blacklight.js +12 -1
- data/app/assets/javascripts/blacklight/bootstrap_dropdowns.js +3 -0
- data/app/assets/javascripts/blacklight/checkbox_submit.js +12 -5
- data/app/assets/javascripts/blacklight/core.js +0 -1
- data/app/assets/javascripts/blacklight/css_dropdowns.js +10 -0
- data/app/assets/javascripts/blacklight/facet_expand_contract.js +5 -5
- data/app/assets/javascripts/blacklight/lightbox_dialog.js +68 -13
- data/app/assets/javascripts/blacklight/select_submit.js +19 -10
- data/app/assets/javascripts/improved-modal/bootstrap-modal.js +282 -0
- data/app/assets/javascripts/improved-modal/bootstrap-modalmanager.js +353 -0
- data/app/assets/stylesheets/blacklight/_blacklight_base.css.scss +16 -5
- data/app/assets/stylesheets/blacklight/_bookmark.css.scss +24 -6
- data/app/assets/stylesheets/blacklight/_catalog.css.scss +115 -141
- data/app/assets/stylesheets/blacklight/_dropdown.css.scss +57 -0
- data/app/assets/stylesheets/blacklight/_facets.css.scss +127 -58
- data/app/assets/stylesheets/blacklight/_footer.css.scss +20 -0
- data/app/assets/stylesheets/blacklight/_header.css.scss +90 -21
- data/app/assets/stylesheets/blacklight/_layout.css.scss +10 -9
- data/app/assets/stylesheets/blacklight/_modal.css.scss +23 -0
- data/app/assets/stylesheets/blacklight/_print.css.scss +0 -7
- data/app/assets/stylesheets/blacklight/_responsive.css.scss +3 -0
- data/app/assets/stylesheets/blacklight/_search_history.css.scss +2 -4
- data/app/assets/stylesheets/blacklight/blacklight.css.scss +0 -1
- data/app/assets/stylesheets/blacklight/blacklight_defaults.css.scss +9 -2
- data/app/assets/stylesheets/blacklight/responsive_partials/_catalog.css.scss +5 -0
- data/app/assets/stylesheets/blacklight/responsive_partials/_facets.css.scss +37 -0
- data/app/assets/stylesheets/blacklight/responsive_partials/_header.css.scss +30 -0
- data/app/assets/stylesheets/improved-modal/bootstrap-modal.css +199 -0
- data/app/controllers/bookmarks_controller.rb +16 -10
- data/app/helpers/blacklight/blacklight_helper_behavior.rb +124 -61
- data/app/helpers/blacklight/catalog_helper_behavior.rb +5 -3
- data/app/helpers/blacklight/facets_helper_behavior.rb +9 -9
- data/app/views/_flash_msg.html.erb +9 -4
- data/app/views/_user_util_links.html.erb +23 -17
- data/app/views/bookmarks/_tools.html.erb +7 -7
- data/app/views/bookmarks/index.html.erb +5 -13
- data/app/views/catalog/_bookmark_control.html.erb +2 -4
- data/app/views/catalog/_bookmark_form.html.erb +1 -1
- data/app/views/catalog/_citation.html.erb +21 -20
- data/app/views/catalog/_constraints.html.erb +8 -6
- data/app/views/catalog/_document_header.html.erb +6 -7
- data/app/views/catalog/_document_list.html.erb +1 -7
- data/app/views/catalog/_email_form.html.erb +42 -16
- data/app/views/catalog/_facet_layout.html.erb +1 -1
- data/app/views/catalog/_facet_limit.html.erb +1 -1
- data/app/views/catalog/_facet_pagination.html.erb +11 -14
- data/app/views/catalog/_facets.html.erb +16 -2
- data/app/views/catalog/_home.html.erb +2 -2
- data/app/views/catalog/_home_text.html.erb +5 -2
- data/app/views/catalog/_index_default.html.erb +2 -2
- data/app/views/catalog/_marc_view.html.erb +0 -1
- data/app/views/catalog/_paginate_compact.html.erb +5 -0
- data/app/views/catalog/_per_page_widget.html.erb +13 -7
- data/app/views/catalog/_previous_next_doc.html.erb +14 -4
- data/app/views/catalog/_refworks_form.html.erb +2 -2
- data/app/views/catalog/_results_pagination.html.erb +4 -1
- data/app/views/catalog/_search_form.html.erb +19 -13
- data/app/views/catalog/_show_default.html.erb +2 -2
- data/app/views/catalog/_show_more_like_this.html.erb +3 -0
- data/app/views/catalog/_show_sidebar.html.erb +14 -1
- data/app/views/catalog/_show_tools.html.erb +18 -18
- data/app/views/catalog/_sms_form.html.erb +35 -10
- data/app/views/catalog/_sort_and_per_page.html.erb +5 -3
- data/app/views/catalog/_sort_widget.html.erb +12 -6
- data/app/views/catalog/citation.html.erb +1 -1
- data/app/views/catalog/citation.js.erb +7 -0
- data/app/views/catalog/email.html.erb +5 -0
- data/app/views/catalog/facet.html.erb +28 -21
- data/app/views/catalog/index.html.erb +26 -26
- data/app/views/catalog/librarian_view.html.erb +7 -0
- data/app/views/catalog/show.html.erb +35 -29
- data/app/views/catalog/sms.html.erb +5 -0
- data/app/views/kaminari/blacklight/_first_page.html.erb +2 -2
- data/app/views/kaminari/blacklight/_gap.html.erb +4 -1
- data/app/views/kaminari/blacklight/_last_page.html.erb +2 -2
- data/app/views/kaminari/blacklight/_next_page.html.erb +3 -3
- data/app/views/kaminari/blacklight/_page.html.erb +4 -3
- data/app/views/kaminari/blacklight/_paginator.html.erb +5 -5
- data/app/views/kaminari/blacklight/_prev_page.html.erb +3 -3
- data/app/views/kaminari/blacklight_compact/_next_page.html.erb +9 -0
- data/app/views/kaminari/blacklight_compact/_paginator.html.erb +15 -0
- data/app/views/kaminari/blacklight_compact/_prev_page.html.erb +9 -0
- data/app/views/layouts/blacklight.html.erb +47 -27
- data/app/views/saved_searches/index.html.erb +2 -2
- data/app/views/search_history/index.html.erb +12 -7
- data/app/views/shared/_footer.html.erb +0 -0
- data/app/views/shared/_header_navbar.html.erb +25 -0
- data/blacklight.gemspec +2 -5
- data/config/locales/blacklight.en.yml +23 -15
- data/lib/blacklight.rb +2 -2
- data/lib/blacklight/catalog.rb +36 -14
- data/lib/blacklight/configuration.rb +10 -2
- data/lib/blacklight/mash.rb +151 -0
- data/lib/blacklight/solr/document.rb +73 -11
- data/lib/blacklight/solr/document/extensions.rb +0 -8
- data/lib/blacklight/solr/document/marc_export.rb +7 -2
- data/lib/blacklight/solr/document/more_like_this.rb +5 -0
- data/lib/blacklight/solr_helper.rb +43 -18
- data/lib/blacklight/solr_response.rb +60 -0
- data/lib/blacklight/solr_response/facets.rb +58 -0
- data/lib/blacklight/solr_response/more_like_this.rb +14 -0
- data/lib/blacklight/solr_response/spelling.rb +92 -0
- data/lib/generators/blacklight/assets_generator.rb +1 -14
- data/lib/generators/blacklight/blacklight_generator.rb +22 -21
- data/lib/generators/blacklight/jetty_generator.rb +1 -35
- data/{test_support → lib/generators/blacklight/templates}/alternate_controller.rb +0 -0
- data/lib/generators/blacklight/templates/blacklight.css.scss +4 -0
- data/lib/generators/blacklight/templates/config/SolrMarc/config-test.properties +2 -2
- data/lib/generators/blacklight/templates/config/jetty.yml +6 -0
- data/lib/generators/blacklight/test_support_generator.rb +35 -0
- data/lib/railties/all_tests.rake +5 -23
- data/lib/railties/blacklight_cucumber.rake +2 -11
- data/lib/railties/blacklight_rspec.rake +2 -12
- data/test_support/bin/run-tests.sh +1 -1
- data/test_support/bin/setup-test-app.sh +123 -0
- data/test_support/bin/test.sh +21 -21
- data/test_support/features/bookmarks.feature +9 -3
- data/test_support/features/saved_searches.feature +3 -3
- data/test_support/features/search.feature +3 -3
- data/test_support/features/search_filters.feature +24 -26
- data/test_support/features/search_history.feature +9 -10
- data/test_support/features/search_sort.feature +4 -6
- data/test_support/features/step_definitions/general_steps.rb +0 -4
- data/test_support/features/step_definitions/search_result_steps.rb +2 -1
- data/test_support/features/step_definitions/search_steps.rb +32 -2
- data/test_support/spec/controllers/application_controller_spec.rb +8 -0
- data/test_support/spec/controllers/catalog_controller_spec.rb +3 -18
- data/test_support/spec/helpers/blacklight_helper_spec.rb +116 -20
- data/test_support/spec/helpers/catalog_helper_spec.rb +14 -6
- data/test_support/spec/helpers/facets_helper_spec.rb +1 -1
- data/test_support/spec/lib/blacklight_solr_document_more_like_this_spec.rb +18 -0
- data/test_support/spec/lib/blacklight_solr_document_spec.rb +54 -1
- data/test_support/spec/lib/blacklight_solr_response_spec.rb +153 -0
- data/test_support/spec/lib/facet_paginator_spec.rb +1 -1
- data/test_support/spec/lib/marc_export_spec.rb +14 -6
- data/test_support/spec/lib/solr_helper_spec.rb +22 -6
- data/test_support/spec/models/solr_docment_spec.rb +1 -4
- data/test_support/spec/{features → requests}/alternate_controller_spec.rb +3 -2
- data/test_support/spec/views/catalog/_facets.html.erb_spec.rb +20 -4
- data/test_support/spec/views/catalog/_show_sidebar.erb_spec.rb +25 -0
- metadata +53 -131
- data/app/assets/javascripts/blacklight/more_facets.js +0 -16
- data/app/assets/javascripts/jquery-1.4.2.min.js +0 -154
- data/app/assets/javascripts/jquery-ui-1.8.1.custom.min.js +0 -756
- data/app/assets/javascripts/jquery.uiExt.ajaxyDialog.js +0 -180
- data/app/assets/stylesheets/blacklight/_formatting.css.scss +0 -164
- data/app/assets/stylesheets/blacklight/grids/_susy_grid.css.scss +0 -72
- data/app/assets/stylesheets/jquery/ui-lightness/images/ui-anim_basic_16x16.gif +0 -0
- data/app/assets/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/app/assets/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/app/assets/stylesheets/jquery/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/app/assets/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/app/assets/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/app/assets/stylesheets/jquery/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/stylesheets/jquery/ui-lightness/images/ui-bg_gloss-wave_35_558fd0_500x100.png +0 -0
- data/app/assets/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/app/assets/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/app/assets/stylesheets/jquery/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/app/assets/stylesheets/jquery/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/app/assets/stylesheets/jquery/ui-lightness/images/ui-icons_2e4f81_256x240.png +0 -0
- data/app/assets/stylesheets/jquery/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/app/assets/stylesheets/jquery/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/stylesheets/jquery/ui-lightness/jquery-ui-1.8.1.custom.css +0 -486
- data/app/models/solr_document.rb +0 -5
- data/app/views/catalog/email.erb +0 -1
- data/app/views/catalog/sms.erb +0 -1
- data/doc/Atom-Responses.md +0 -90
- data/doc/Blacklight-3.2-Release-Notes-and-Upgrade-Guide.md +0 -191
- data/doc/Blacklight-3.3-release-notes-and-upgrade-guide.md +0 -37
- data/doc/Blacklight-3.4-release-notes-and-upgrade-guide.md +0 -27
- data/doc/Blacklight-3.5-release-notes-and-upgrade-guide.md +0 -44
- data/doc/Blacklight-3.6-release-notes-and-upgrade-guide.md +0 -25
- data/doc/Blacklight-3.7-release-notes-and-upgrade-guide.md +0 -78
- data/doc/Blacklight-3.8-release-notes-and-upgrade-guide.md +0 -11
- data/doc/Blacklight-Add-ons.md +0 -28
- data/doc/Blacklight-configuration.md +0 -301
- data/doc/Blacklight-on-Heroku.md +0 -135
- data/doc/Community-principles.md +0 -44
- data/doc/Configuring-and-Customizing-Blacklight.md +0 -271
- data/doc/Contributing-to-Blacklight.md +0 -25
- data/doc/Examples.md +0 -62
- data/doc/Extending-or-Modifying-Blacklight-Search-Behavior.md +0 -141
- data/doc/Home.md +0 -77
- data/doc/How-to-release-a-version.md +0 -37
- data/doc/Indexing-your-data-into-solr.md +0 -5
- data/doc/Integration-with-Rails-Footnotes.md +0 -20
- data/doc/Pagination.md +0 -38
- data/doc/Providing-your-own-view-templates.md +0 -109
- data/doc/Quickstart.md +0 -116
- data/doc/README.md +0 -77
- data/doc/README_SOLR.md +0 -245
- data/doc/Release-Notes-And-Upgrade-Guides.md +0 -14
- data/doc/Sunspot-for-indexing.md +0 -46
- data/doc/User-Authentication.md +0 -60
- data/doc/testing.md +0 -115
- data/lib/generators/blacklight/solr_conf_generator.rb +0 -26
- data/lib/generators/blacklight/templates/assets/standard.css.scss +0 -59
- data/lib/generators/blacklight/templates/config/blacklight_config.rb +0 -3
- data/lib/generators/blacklight/templates/config/compass.rb +0 -2
- data/lib/generators/blacklight/templates/solr_conf/schema.xml +0 -689
- data/lib/generators/blacklight/templates/solr_conf/solrconfig.xml +0 -1846
- data/lib/solrmarc.log.1 +0 -849
- data/test_support/spec/controllers/bookmarks_controller_spec.rb +0 -48
@@ -1,3 +1,10 @@
|
|
1
|
+
|
2
|
+
<div class="modal-header">
|
3
|
+
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
4
|
+
<h1><%= t('blacklight.search.librarian_view.title') %></h1>
|
5
|
+
</div>
|
1
6
|
<%- if @document.respond_to?(:to_marc) -%>
|
2
7
|
<%= render "marc_view" %>
|
8
|
+
<%- else %>
|
9
|
+
No MARC data found.
|
3
10
|
<%- end -%>
|
@@ -1,38 +1,44 @@
|
|
1
|
-
|
2
|
-
<% extra_head_content << render_link_rel_alternates %>
|
3
|
-
<% sidebar_items << render_document_sidebar_partial %>
|
1
|
+
<div class="row">
|
4
2
|
|
5
|
-
<div class="show">
|
6
|
-
<%= render 'constraints', :localized_params=>session[:search] %>
|
7
|
-
</div>
|
3
|
+
<div id="content" class="span9 show-document">
|
8
4
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
5
|
+
<%= render 'previous_next_doc' %>
|
6
|
+
|
7
|
+
|
8
|
+
<% @page_title = t('blacklight.search.show.title', :document_title => document_show_html_title, :application_name => application_name) %>
|
9
|
+
<% extra_head_content << render_link_rel_alternates %>
|
10
|
+
<% sidebar_items << render_document_sidebar_partial %>
|
13
11
|
|
14
|
-
|
12
|
+
<%# this should be in a partial -%>
|
13
|
+
<div id="document" class="<%= render_document_class %>">
|
14
|
+
<div id="doc_<%= @document.id.to_s.parameterize %>">
|
15
|
+
|
15
16
|
|
16
|
-
|
17
|
-
|
18
|
-
<div id="doc_<%= @document.id.to_s.parameterize %>">
|
17
|
+
<% # bookmark/folder functions -%>
|
18
|
+
<%= render_document_heading.html_safe %>
|
19
19
|
|
20
|
-
|
21
|
-
|
20
|
+
<div class="document">
|
21
|
+
<%= render_document_partial @document, :show %>
|
22
|
+
</div>
|
22
23
|
|
23
|
-
|
24
|
-
<div class="tools"><%= render :partial => 'show_tools' %></div>
|
25
|
-
<div class="document">
|
26
|
-
<%= render_document_partial @document, :show %>
|
24
|
+
|
27
25
|
</div>
|
28
26
|
</div>
|
29
|
-
</div>
|
30
27
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
28
|
+
|
29
|
+
|
30
|
+
<% if @document.respond_to?(:export_as_openurl_ctx_kev) %>
|
31
|
+
<!--
|
32
|
+
// COinS, for Zotero among others.
|
33
|
+
// This document_partial_name(@document) business is not quite right,
|
34
|
+
// but has been there for a while.
|
35
|
+
-->
|
36
|
+
<span class="Z3988" title="<%= @document.export_as_openurl_ctx_kev(document_partial_name(@document)) %>"></span>
|
37
|
+
<% end %>
|
38
|
+
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div id="sidebar" class="span3">
|
42
|
+
<%= render_document_sidebar_partial %>
|
43
|
+
</div><!--/span -->
|
44
|
+
</div>
|
@@ -6,6 +6,6 @@
|
|
6
6
|
per_page: number of items to fetch per page
|
7
7
|
remote: data-remote
|
8
8
|
-%>
|
9
|
-
<
|
9
|
+
<li class="<%= 'disabled' if current_page.first? %>">
|
10
10
|
<%= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote %>
|
11
|
-
</
|
11
|
+
</li>
|
@@ -6,6 +6,6 @@
|
|
6
6
|
per_page: number of items to fetch per page
|
7
7
|
remote: data-remote
|
8
8
|
-%>
|
9
|
-
<
|
9
|
+
<li class="<%= 'disabled' if current_page.last? %>">
|
10
10
|
<%= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote} %>
|
11
|
-
</
|
11
|
+
</li>
|
@@ -6,6 +6,6 @@
|
|
6
6
|
per_page: number of items to fetch per page
|
7
7
|
remote: data-remote
|
8
8
|
-%>
|
9
|
-
<
|
10
|
-
<%=
|
11
|
-
</
|
9
|
+
<li class="<%= 'disabled' if current_page.last? %>">
|
10
|
+
<%= link_to raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote %>
|
11
|
+
</li>
|
@@ -7,6 +7,7 @@
|
|
7
7
|
per_page: number of items to fetch per page
|
8
8
|
remote: data-remote
|
9
9
|
-%>
|
10
|
-
<
|
11
|
-
|
12
|
-
</
|
10
|
+
<li class="<%= 'active' if page.current? %>">
|
11
|
+
<%= link_to number_with_delimiter(page.to_s), url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
|
12
|
+
</li>
|
13
|
+
|
@@ -5,19 +5,19 @@
|
|
5
5
|
per_page: number of items to fetch per page
|
6
6
|
remote: data-remote
|
7
7
|
paginator: the paginator that renders the pagination tags inside
|
8
|
+
|
9
|
+
Paginator now using the Bootstrap paginator class
|
8
10
|
-%>
|
9
11
|
<%= paginator.render do -%>
|
10
|
-
<
|
12
|
+
<ul>
|
11
13
|
<%= prev_page_tag %>
|
12
14
|
<%= next_page_tag %>
|
13
|
-
<div class="page_links">
|
14
15
|
<% each_relevant_page do |page| -%>
|
15
16
|
<% if page.left_outer? || page.right_outer? || page.inside_window? -%>
|
16
17
|
<%= page_tag page %>
|
17
18
|
<% elsif !page.was_truncated? -%>
|
18
19
|
<%= gap_tag %>
|
19
20
|
<% end -%>
|
20
|
-
<% end -%>
|
21
|
-
</
|
22
|
-
</nav>
|
21
|
+
<% end -%>
|
22
|
+
</ul>
|
23
23
|
<% end -%>
|
@@ -6,6 +6,6 @@
|
|
6
6
|
per_page: number of items to fetch per page
|
7
7
|
remote: data-remote
|
8
8
|
-%>
|
9
|
-
<
|
10
|
-
<%=
|
11
|
-
</
|
9
|
+
<li class="<%= 'disabled' if current_page.first? %>">
|
10
|
+
<%= link_to raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote %>
|
11
|
+
</li>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<%# Link to the "Next" page
|
2
|
+
- available local variables
|
3
|
+
url: url to the next page
|
4
|
+
current_page: a page object for the currently displayed page
|
5
|
+
num_pages: total number of pages
|
6
|
+
per_page: number of items to fetch per page
|
7
|
+
remote: data-remote
|
8
|
+
-%>
|
9
|
+
<%= link_to_unless current_page.last?, raw(t 'views.pagination_compact.next'), url, :rel => 'next', :remote => remote %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%# The container tag
|
2
|
+
- available local variables
|
3
|
+
current_page: a page object for the currently displayed page
|
4
|
+
num_pages: total number of pages
|
5
|
+
per_page: number of items to fetch per page
|
6
|
+
remote: data-remote
|
7
|
+
paginator: the paginator that renders the pagination tags inside
|
8
|
+
|
9
|
+
Paginator now using the Bootstrap paginator class
|
10
|
+
-%>
|
11
|
+
|
12
|
+
<%- pagination_info_cache = render_pagination_info @response %>
|
13
|
+
<%= paginator.render do -%>
|
14
|
+
<%= prev_page_tag %> | <%= pagination_info_cache %> | <%= next_page_tag %>
|
15
|
+
<% end -%>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<%# Link to the "Previous" page
|
2
|
+
- available local variables
|
3
|
+
url: url to the previous page
|
4
|
+
current_page: a page object for the currently displayed page
|
5
|
+
num_pages: total number of pages
|
6
|
+
per_page: number of items to fetch per page
|
7
|
+
remote: data-remote
|
8
|
+
-%>
|
9
|
+
<%= link_to_unless current_page.first?, raw(t 'views.pagination_compact.previous'), url, :rel => 'prev', :remote => remote %>
|
@@ -1,37 +1,57 @@
|
|
1
|
-
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
2
3
|
<head>
|
3
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
|
6
|
+
|
7
|
+
<!-- Mobile viewport optimization h5bp.com/ad -->
|
8
|
+
<meta name="HandheldFriendly" content="True">
|
9
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
10
|
+
|
11
|
+
<!-- Mobile IE allows us to activate ClearType technology for smoothing fonts for easy reading -->
|
12
|
+
<meta http-equiv="cleartype" content="on">
|
13
|
+
|
4
14
|
<title><%= h(@page_title || application_name) %></title>
|
5
15
|
<link href="<%= opensearch_catalog_path(:format => 'xml', :only_path => false) %>" title="<%= application_name%>" type="application/opensearchdescription+xml" rel="search"/>
|
6
16
|
<%= favicon_link_tag asset_path('favicon.ico') %>
|
7
17
|
<%= stylesheet_link_tag "application" %>
|
8
18
|
<%= javascript_include_tag "application" %>
|
9
19
|
<%= csrf_meta_tags %>
|
10
|
-
<%= raw(render_head_content) %>
|
20
|
+
<%= raw(render_head_content) %>
|
21
|
+
|
22
|
+
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
23
|
+
<!--[if lt IE 9]>
|
24
|
+
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
25
|
+
<![endif]-->
|
26
|
+
|
27
|
+
<%= favicon_link_tag asset_path('favicon.ico') %>
|
11
28
|
</head>
|
12
29
|
<% onload_text = "$('input#q').focus();" if params[:q].to_s.empty? and params[:f].to_s.empty? and params[:id].nil? %>
|
13
|
-
<body onload="<%= onload_text %>" class="<%= render_body_class
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
30
|
+
<body onload="<%= onload_text %>" class="<%= render_body_class %>">
|
31
|
+
<%= render :partial => 'shared/header_navbar' %>
|
32
|
+
|
33
|
+
<div id="ajax-modal" class="modal hide fade" tabindex="-1"></div>
|
34
|
+
|
35
|
+
<!-- /container -->
|
36
|
+
<div id="main-container" class="container">
|
37
|
+
<!-- Top bar -->
|
38
|
+
<div id="search-found" class="row hidden-phone">
|
39
|
+
<%= topbar_items.join('').html_safe %>
|
40
|
+
</div>
|
41
|
+
<!-- /Top bar -->
|
42
|
+
<div class="row">
|
43
|
+
<div class="span10">
|
44
|
+
<div id="main-flashes">
|
45
|
+
<%= render :partial=>'/flash_msg' %>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
|
50
|
+
<div class="row">
|
51
|
+
<%= yield %>
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
|
55
|
+
<%= render :partial => 'shared/footer' %>
|
56
|
+
</body>
|
37
57
|
</html>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<h1><%= t('blacklight.saved_searches.title') %></h1>
|
2
2
|
|
3
|
-
<%- if
|
3
|
+
<%- if current_or_guest_user.blank? -%>
|
4
4
|
|
5
5
|
<h2><%= t('blacklight.saved_searches.need_login') %></h2>
|
6
6
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
</p>
|
15
15
|
|
16
16
|
<h2><%= t('blacklight.saved_searches.list_title') %></h2>
|
17
|
-
<table class="
|
17
|
+
<table class="table table-striped">
|
18
18
|
<%- @searches.each do |search| -%>
|
19
19
|
<tr>
|
20
20
|
<td><%= link_to_previous_search(search.query_params) %></td>
|
@@ -1,18 +1,23 @@
|
|
1
|
+
<% sidebar_items << capture do %>
|
2
|
+
<p><%= link_back_to_catalog %></p>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
|
1
6
|
<h1><%=t('blacklight.search_history.title')%></h1>
|
2
7
|
<%- if @searches.blank? -%>
|
3
8
|
<h2><%=t('blacklight.search_history.no_history')%></h2>
|
4
9
|
<%- else -%>
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<
|
9
|
-
<table class="
|
10
|
-
|
10
|
+
<p>
|
11
|
+
<%= link_to t('blacklight.search_history.clear.action_title'), clear_search_history_path, :method => :delete, :data => { :confirm => t('blacklight.search_history.clear.action_confirm') } %>
|
12
|
+
</p>
|
13
|
+
<h3><%=t('blacklight.search_history.recent')%></h3>
|
14
|
+
<table class="table table-striped search_history">
|
15
|
+
<%- @searches.each_with_index do |search,index| -%>
|
11
16
|
<%= content_tag :tr, :id => "document_#{index + 1}" do %>
|
12
17
|
<td class="query"><%= link_to_previous_search(search.query_params) %></td>
|
13
18
|
<%- if has_user_authentication_provider? -%>
|
14
19
|
<td class="actions">
|
15
|
-
<%- if
|
20
|
+
<%- if current_or_guest_user && search.saved? -%>
|
16
21
|
<%= button_to t('blacklight.search_history.forget'), forget_search_path(search.id) %>
|
17
22
|
<%- else -%>
|
18
23
|
<%= button_to t('blacklight.search_history.save'), save_search_path(search.id), :method => :put %>
|
File without changes
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<div id="header-navbar-fixed-top" class="navbar navbar-fixed-top">
|
2
|
+
<div class="navbar-inner">
|
3
|
+
<div class="container">
|
4
|
+
<div class="row">
|
5
|
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
6
|
+
<span class="icon-bar"></span>
|
7
|
+
<span class="icon-bar"></span>
|
8
|
+
<span class="icon-bar"></span>
|
9
|
+
</a>
|
10
|
+
<div class="span3">
|
11
|
+
<%= link_to application_name, root_path, :class => "brand" %>
|
12
|
+
</div>
|
13
|
+
<div class="span6 clearfix" id="searchbar">
|
14
|
+
<%= render_search_bar %>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div class="span3 nav-collapse">
|
18
|
+
<%= render :partial=>'/user_util_links' %>
|
19
|
+
|
20
|
+
</div>
|
21
|
+
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
data/blacklight.gemspec
CHANGED
@@ -20,17 +20,14 @@ Gem::Specification.new do |s|
|
|
20
20
|
|
21
21
|
# PRODUCTION GEM REQUIREMENTS
|
22
22
|
# ---------------------------------------
|
23
|
-
s.add_dependency "rails", "~> 3.
|
23
|
+
s.add_dependency "rails", "~> 3.2"
|
24
24
|
s.add_dependency "nokogiri", "~>1.5" # XML Parser
|
25
|
-
s.add_dependency "unicode" # provides C-form normalization of unicode characters, as required by refworks.
|
26
25
|
# Let's allow future versions of marc, count on
|
27
26
|
# them to be backwards compat until 1.1
|
28
27
|
s.add_dependency "marc", ">= 0.4.3", "< 1.1" # Marc record parser.
|
29
28
|
s.add_dependency "rsolr", "~> 1.0.6" # Library for interacting with rSolr.
|
30
|
-
s.add_dependency "rsolr-ext", '~> 1.0.3' # extension to the above for some rails-ish behaviors - currently embedded in our solr document ojbect.
|
31
29
|
s.add_dependency "kaminari", "~> 0.13" # the pagination (page 1,2,3, etc..) of our search results
|
32
30
|
s.add_dependency "sass-rails"
|
31
|
+
s.add_dependency "bootstrap-sass", "~> 2.1.0"
|
33
32
|
s.add_development_dependency "jettywrapper", ">= 1.2.0"
|
34
|
-
s.add_dependency "compass-rails", "~> 1.0.0"
|
35
|
-
s.add_dependency "compass-susy-plugin", ">= 0.9.0"
|
36
33
|
end
|
@@ -15,16 +15,19 @@ en:
|
|
15
15
|
next: 'Next »'
|
16
16
|
truncate: '…'
|
17
17
|
|
18
|
+
pagination_compact:
|
19
|
+
previous: '« Previous'
|
20
|
+
next: 'Next »'
|
21
|
+
|
18
22
|
blacklight:
|
19
23
|
application_name: 'Blacklight'
|
20
24
|
|
21
25
|
header_links:
|
22
26
|
login: 'Login'
|
23
27
|
logout: 'Log Out'
|
24
|
-
bookmarks: '
|
28
|
+
bookmarks: 'Bookmarks'
|
25
29
|
saved_searches: 'Saved Searches'
|
26
|
-
|
27
|
-
search_history: 'Search History'
|
30
|
+
search_history: 'History'
|
28
31
|
|
29
32
|
welcome: 'Welcome!'
|
30
33
|
and: 'and'
|
@@ -97,6 +100,7 @@ en:
|
|
97
100
|
save: 'save'
|
98
101
|
|
99
102
|
tools:
|
103
|
+
title: 'Tools'
|
100
104
|
cite: 'Cite'
|
101
105
|
endnote: 'Export to EndNote'
|
102
106
|
refworks: 'Export to Refworks'
|
@@ -150,37 +154,41 @@ en:
|
|
150
154
|
blank: 'You must select a carrier'
|
151
155
|
|
152
156
|
back_to_search: 'Back to Search'
|
157
|
+
back_to_bookmarks: 'Back to Bookmarks'
|
153
158
|
|
154
159
|
search:
|
155
160
|
title: '%{application_name} Search Results'
|
161
|
+
search_results_header: 'Search'
|
156
162
|
search_results: 'Search Results'
|
157
163
|
errors:
|
158
164
|
request_error: "Sorry, I don't understand your search."
|
159
165
|
invalid_solr_id: "Sorry, you have requested a record that doesn't exist."
|
160
166
|
per_page:
|
167
|
+
post_label: 'per page'
|
161
168
|
label: 'Show %{select} per page'
|
162
169
|
title: 'Number of results to display per page'
|
163
|
-
submit: '
|
170
|
+
submit: 'Update'
|
164
171
|
sort:
|
165
|
-
label: 'Sort by
|
172
|
+
label: 'Sort by'
|
166
173
|
submit: 'sort results'
|
167
174
|
form:
|
168
175
|
search_field:
|
169
|
-
label: 'in'
|
176
|
+
label: 'Search in'
|
170
177
|
title: 'Targeted search options'
|
171
|
-
|
172
|
-
|
178
|
+
post_label: 'for'
|
179
|
+
q: 'Search...'
|
180
|
+
submit: 'Search'
|
173
181
|
pagination:
|
174
182
|
title: 'Results navigation'
|
175
183
|
pagination_info:
|
176
184
|
no_items_found: 'No %{entry_name} found'
|
177
|
-
single_item_found: '
|
185
|
+
single_item_found: '<b>1</b> to <b>1</b> of <b>1</b>'
|
178
186
|
pages:
|
179
|
-
one: '
|
180
|
-
other: '
|
187
|
+
one: '<b>%{start_num}</b> - <b>%{end_num}</b> of <b>%{total_num}</b>'
|
188
|
+
other: '<b>%{start_num}</b> - <b>%{end_num}</b> of <b>%{total_num}</b>'
|
181
189
|
entry_pagination_info:
|
182
|
-
one: '
|
183
|
-
other: '
|
190
|
+
one: '<b>1 of 1</b>'
|
191
|
+
other: '<b>%{current}</b> of <b>%{total}</b>'
|
184
192
|
documents:
|
185
193
|
counter: '%{counter}. '
|
186
194
|
facets:
|
@@ -188,7 +196,7 @@ en:
|
|
188
196
|
sort:
|
189
197
|
count: 'Numerical Sort'
|
190
198
|
index: 'A-Z Sort'
|
191
|
-
count: '
|
199
|
+
count: '%{number}'
|
192
200
|
more: 'more »'
|
193
201
|
selected:
|
194
202
|
remove: '[remove]'
|
@@ -201,7 +209,7 @@ en:
|
|
201
209
|
librarian_view:
|
202
210
|
title: 'Librarian View'
|
203
211
|
leader: 'LEADER %{leader}'
|
204
|
-
start_over: '
|
212
|
+
start_over: 'Start Over'
|
205
213
|
show:
|
206
214
|
title: '%{document_title} - %{application_name}'
|
207
215
|
rss_feed: 'RSS for results'
|