blacklight 4.9.0 → 5.0.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.travis.yml +22 -12
- data/Gemfile +3 -40
- data/LICENSE +1 -2
- data/README.md +1 -2
- data/Rakefile +0 -4
- data/VERSION +1 -1
- data/app/assets/images/blacklight/logo.png +0 -0
- data/app/assets/javascripts/blacklight/ajax_modal.js +190 -0
- data/app/assets/javascripts/blacklight/blacklight.js +7 -17
- data/app/assets/javascripts/blacklight/checkbox_submit.js +1 -1
- data/app/assets/stylesheets/blacklight/{_blacklight_base.scss → _blacklight_base.css.scss} +0 -21
- data/app/assets/stylesheets/blacklight/_bookmark.css.scss +4 -0
- data/app/assets/stylesheets/blacklight/_catalog.css.scss +192 -0
- data/app/assets/stylesheets/blacklight/_facets.css.scss +141 -0
- data/app/assets/stylesheets/blacklight/{_group.scss → _group.css.scss} +1 -1
- data/app/assets/stylesheets/blacklight/_header.css.scss +44 -0
- data/app/assets/stylesheets/blacklight/_layout.css.scss +5 -0
- data/app/assets/stylesheets/blacklight/{_modal.scss → _modal.css.scss} +7 -7
- data/app/assets/stylesheets/blacklight/_search_history.css.scss +20 -0
- data/app/assets/stylesheets/blacklight/{blacklight.scss → blacklight.css.scss} +0 -0
- data/app/assets/stylesheets/blacklight/blacklight_defaults.css.scss +14 -0
- data/app/controllers/bookmarks_controller.rb +0 -4
- data/app/controllers/feedback_controller.rb +0 -4
- data/app/helpers/blacklight/blacklight_helper_behavior.rb +45 -155
- data/app/helpers/blacklight/catalog_helper_behavior.rb +8 -41
- data/app/helpers/blacklight/facets_helper_behavior.rb +20 -43
- data/app/helpers/blacklight/hash_as_hidden_fields_helper_behavior.rb +2 -9
- data/app/helpers/blacklight/render_constraints_helper_behavior.rb +9 -14
- data/app/helpers/blacklight/search_history_constraints_helper_behavior.rb +6 -6
- data/app/views/_flash_msg.html.erb +9 -2
- data/app/views/_user_util_links.html.erb +29 -15
- data/app/views/bookmarks/_tools.html.erb +4 -7
- data/app/views/bookmarks/index.html.erb +3 -2
- data/app/views/catalog/_citation.html.erb +1 -1
- data/app/views/catalog/_constraints.html.erb +1 -1
- data/app/views/catalog/_constraints_element.html.erb +12 -8
- data/app/views/catalog/_did_you_mean.html.erb +2 -2
- data/app/views/catalog/_document_header.html.erb +3 -3
- data/app/views/catalog/_email_form.html.erb +10 -10
- data/app/views/catalog/_facet_layout.html.erb +11 -3
- data/app/views/catalog/_facet_limit.html.erb +7 -7
- data/app/views/catalog/_facet_pagination.html.erb +8 -7
- data/app/views/catalog/_facet_pivot.html.erb +3 -1
- data/app/views/catalog/_facets.html.erb +12 -9
- data/app/views/catalog/_paginate_compact.html.erb +1 -7
- data/app/views/catalog/_per_page_widget.html.erb +5 -8
- data/app/views/catalog/_previous_next_doc.html.erb +11 -9
- data/app/views/catalog/_refworks_form.html.erb +3 -4
- data/app/views/catalog/_results_pagination.html.erb +1 -1
- data/app/views/catalog/_search_form.html.erb +16 -14
- data/app/views/catalog/_show_sidebar.html.erb +7 -9
- data/app/views/catalog/_show_tools.html.erb +13 -7
- data/app/views/catalog/_sms_form.html.erb +8 -8
- data/app/views/catalog/_sort_and_per_page.html.erb +4 -6
- data/app/views/catalog/_sort_widget.html.erb +5 -6
- data/app/views/catalog/email.html.erb +1 -1
- data/app/views/catalog/facet.html.erb +2 -8
- data/app/views/catalog/index.html.erb +11 -6
- data/app/views/catalog/show.html.erb +5 -5
- data/app/views/catalog/sms.html.erb +1 -1
- data/app/views/catalog/sms_sent.html.erb +1 -1
- data/app/views/feedback/complete.html.erb +2 -2
- data/app/views/feedback/show.html.erb +1 -1
- data/app/views/kaminari/blacklight/_paginator.html.erb +1 -1
- data/app/views/kaminari/blacklight_compact/_paginator.html.erb +25 -5
- data/app/views/layouts/blacklight.html.erb +23 -23
- data/app/views/saved_searches/index.html.erb +2 -2
- data/app/views/search_history/index.html.erb +5 -7
- data/app/views/shared/_header_navbar.html.erb +23 -23
- data/blacklight.gemspec +10 -13
- data/config/locales/blacklight.en.yml +1 -12
- data/config/locales/blacklight.fr.yml +1 -12
- data/gemfiles/rails3.gemfile +21 -0
- data/gemfiles/rails4.gemfile +20 -0
- data/lib/blacklight.rb +0 -8
- data/lib/blacklight/base.rb +0 -2
- data/lib/blacklight/catalog.rb +6 -32
- data/lib/blacklight/catalog/search_context.rb +8 -48
- data/lib/blacklight/configurable.rb +2 -1
- data/lib/blacklight/configuration.rb +1 -2
- data/lib/blacklight/configuration/facet_field.rb +0 -2
- data/lib/blacklight/engine.rb +3 -3
- data/lib/blacklight/legacy_controller_methods.rb +1 -64
- data/lib/blacklight/rails/routes.rb +17 -0
- data/lib/blacklight/routes.rb +46 -40
- data/lib/blacklight/solr.rb +1 -0
- data/lib/blacklight/solr/document.rb +21 -42
- data/lib/blacklight/solr/facet_paginator.rb +30 -54
- data/lib/blacklight/solr/request.rb +45 -0
- data/lib/blacklight/solr_helper.rb +16 -53
- data/lib/blacklight/solr_response.rb +0 -6
- data/lib/blacklight/user.rb +2 -7
- data/lib/blacklight/utils.rb +1 -9
- data/lib/generators/blacklight/assets_generator.rb +0 -14
- data/lib/generators/blacklight/blacklight_generator.rb +17 -14
- data/lib/generators/blacklight/templates/blacklight.css.scss +3 -0
- data/lib/generators/blacklight/templates/catalog_controller.rb +4 -1
- data/lib/railties/blacklight.rake +3 -1
- data/solr/sample_solr_documents.yml +641 -0
- data/spec/controllers/application_controller_spec.rb +5 -21
- data/spec/controllers/bookmarks_controller_spec.rb +11 -11
- data/spec/controllers/catalog_controller_spec.rb +122 -119
- data/spec/controllers/search_history_controller_spec.rb +8 -8
- data/spec/features/alternate_controller_spec.rb +5 -5
- data/spec/features/facets_spec.rb +9 -0
- data/spec/features/record_view_spec.rb +1 -1
- data/spec/features/search_filters_spec.rb +97 -41
- data/spec/features/search_results_spec.rb +14 -17
- data/spec/features/search_sort_spec.rb +1 -1
- data/spec/helpers/blacklight_helper_spec.rb +170 -285
- data/spec/helpers/catalog_helper_spec.rb +57 -96
- data/spec/helpers/facets_helper_spec.rb +130 -152
- data/spec/helpers/hash_as_hidden_fields_spec.rb +9 -15
- data/spec/helpers/render_constraints_helper_spec.rb +5 -5
- data/spec/helpers/search_history_constraints_helper_spec.rb +21 -21
- data/spec/lib/blacklight/routes_spec.rb +25 -0
- data/spec/lib/blacklight/solr/request_spec.rb +37 -0
- data/spec/lib/blacklight/solr_response/group_response_spec.rb +2 -2
- data/spec/lib/blacklight_configurable_spec.rb +16 -16
- data/spec/lib/blacklight_configuration_spec.rb +132 -132
- data/spec/lib/blacklight_email_spec.rb +4 -4
- data/spec/lib/blacklight_sms_spec.rb +4 -4
- data/spec/lib/blacklight_solr_document_dublin_core_spec.rb +6 -6
- data/spec/lib/blacklight_solr_document_more_like_this_spec.rb +4 -4
- data/spec/lib/blacklight_solr_document_spec.rb +36 -36
- data/spec/lib/blacklight_solr_response_spec.rb +43 -48
- data/spec/lib/blacklight_spec.rb +6 -14
- data/spec/lib/blacklight_user_spec.rb +5 -9
- data/spec/lib/facet_paginator_spec.rb +59 -51
- data/spec/lib/search_fields_spec.rb +13 -13
- data/spec/lib/solr_helper_spec.rb +258 -304
- data/spec/lib/tasks/blacklight_task_spec.rb +1 -1
- data/spec/lib/utils_spec.rb +16 -46
- data/spec/models/bookmark_spec.rb +6 -7
- data/spec/models/record_mailer_spec.rb +16 -16
- data/spec/models/search_spec.rb +8 -8
- data/spec/models/solr_document_spec.rb +6 -77
- data/spec/routing/catalog_routing_spec.rb +16 -10
- data/spec/spec_helper.rb +7 -7
- data/spec/support/assert_difference.rb +2 -2
- data/spec/support/features.rb +0 -11
- data/spec/support/features/session_helpers.rb +3 -3
- data/spec/support/include_text.rb +2 -2
- data/spec/test_app_templates/Gemfile.extra +10 -2
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +12 -18
- data/spec/views/catalog/_constraints_element.html.erb_spec.rb +13 -13
- data/spec/views/catalog/_document.html.erb_spec.rb +1 -1
- data/spec/views/catalog/_document_list.html.erb_spec.rb +1 -1
- data/spec/views/catalog/_facets.html.erb_spec.rb +13 -14
- data/spec/views/catalog/_index_default.erb_spec.rb +21 -21
- data/spec/views/catalog/_search_header.erb_spec.rb +1 -1
- data/spec/views/catalog/_show_default.erb_spec.rb +21 -21
- data/spec/views/catalog/_show_sidebar.erb_spec.rb +7 -7
- data/spec/views/catalog/_thumbnail_default.erb_spec.rb +3 -3
- data/spec/views/catalog/index.atom.builder_spec.rb +29 -29
- data/spec/views/catalog/index.html.erb_spec.rb +6 -7
- data/tasks/blacklight.rake +8 -2
- metadata +84 -180
- data/app/assets/javascripts/blacklight/css_dropdowns.js +0 -10
- data/app/assets/javascripts/blacklight/facet_expand_contract.js +0 -41
- data/app/assets/javascripts/blacklight/lightbox_dialog.js +0 -70
- data/app/assets/javascripts/blacklight/select_submit.js +0 -27
- data/app/assets/javascripts/blacklight/zebra_stripe.js +0 -13
- data/app/assets/javascripts/improved-modal/bootstrap-modal.js +0 -355
- data/app/assets/javascripts/improved-modal/bootstrap-modalmanager.js +0 -370
- data/app/assets/stylesheets/blacklight/_bookmark.scss +0 -33
- data/app/assets/stylesheets/blacklight/_catalog.scss +0 -255
- data/app/assets/stylesheets/blacklight/_dropdown.scss +0 -57
- data/app/assets/stylesheets/blacklight/_facets.scss +0 -197
- data/app/assets/stylesheets/blacklight/_footer.scss +0 -0
- data/app/assets/stylesheets/blacklight/_header.scss +0 -53
- data/app/assets/stylesheets/blacklight/_layout.scss +0 -10
- data/app/assets/stylesheets/blacklight/_mixins.scss +0 -0
- data/app/assets/stylesheets/blacklight/_print.scss +0 -0
- data/app/assets/stylesheets/blacklight/_responsive.scss +0 -3
- data/app/assets/stylesheets/blacklight/_search_history.scss +0 -42
- data/app/assets/stylesheets/blacklight/blacklight_defaults.scss +0 -49
- data/app/assets/stylesheets/blacklight/responsive_partials/_catalog.scss +0 -5
- data/app/assets/stylesheets/blacklight/responsive_partials/_facets.scss +0 -37
- data/app/assets/stylesheets/blacklight/responsive_partials/_header.scss +0 -30
- data/app/assets/stylesheets/improved-modal/bootstrap-modal.css +0 -217
- data/app/helpers/blacklight/html_head_helper_behavior.rb +0 -118
- data/app/helpers/html_head_helper.rb +0 -3
- data/app/views/catalog/_bookmark_form.html.erb +0 -7
- data/app/views/catalog/_marc_view.html.erb +0 -32
- data/app/views/catalog/librarian_view.html.erb +0 -10
- data/config/routes.rb +0 -17
- data/doc/Atom-Responses.md +0 -90
- data/doc/Blacklight-3.0-Release-Notes-And-Upgrade-Guide.md +0 -107
- 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 -80
- data/doc/Blacklight-3.8-release-notes-and-upgrade-guide.md +0 -11
- data/doc/Blacklight-4.0-release-notes-and-upgrade-guide.md +0 -135
- data/doc/Blacklight-4.1-release-notes-and-upgrade-guide.md +0 -17
- data/doc/Blacklight-4.2-release-notes-and-upgrade-guide.md +0 -25
- data/doc/Blacklight-4.3-release-notes-and-upgrade-guide.md +0 -21
- data/doc/Blacklight-4.4-release-notes-and-upgrade-guide.md +0 -41
- data/doc/Blacklight-Add-ons.md +0 -28
- data/doc/Blacklight-configuration.md +0 -411
- data/doc/Blacklight-on-Heroku.md +0 -135
- data/doc/Code4Lib-2014.md +0 -48
- data/doc/Community-principles.md +0 -44
- data/doc/Configuring-and-Customizing-Blacklight.md +0 -271
- data/doc/Configuring-rails-routes.md +0 -13
- data/doc/Contributing-to-Blacklight.md +0 -25
- data/doc/Examples.md +0 -94
- data/doc/Extending-or-Modifying-Blacklight-Search-Behavior.md +0 -141
- data/doc/FAQs.md +0 -1
- data/doc/Home.md +0 -80
- data/doc/How-to-release-a-version.md +0 -29
- data/doc/Indexing-your-data-into-solr.md +0 -32
- data/doc/Integration-with-Rails-Footnotes.md +0 -20
- data/doc/Internationalization.md +0 -32
- data/doc/JSON-API.md +0 -17
- data/doc/Pagination.md +0 -51
- data/doc/Providing-your-own-view-templates.md +0 -109
- data/doc/Quickstart.md +0 -115
- data/doc/README_SOLR.md +0 -245
- data/doc/Release-Notes-And-Upgrade-Guides.md +0 -20
- data/doc/Roadmap.md +0 -43
- data/doc/Sunspot-for-indexing.md +0 -46
- data/doc/Theming.md +0 -64
- data/doc/User-Authentication.md +0 -60
- data/doc/testing.md +0 -57
- data/lib/SolrMarc.jar +0 -0
- data/lib/blacklight/mash.rb +0 -19
- data/lib/blacklight/solr/document/marc.rb +0 -71
- data/lib/blacklight/solr/document/marc_export.rb +0 -590
- data/lib/generators/blacklight/marc_generator.rb +0 -66
- data/lib/generators/blacklight/templates/blacklight.scss +0 -4
- data/lib/generators/blacklight/templates/config/SolrMarc/config-test.properties +0 -37
- data/lib/generators/blacklight/templates/config/SolrMarc/config.properties +0 -37
- data/lib/generators/blacklight/templates/config/SolrMarc/index.properties +0 -97
- data/lib/generators/blacklight/templates/config/SolrMarc/index_scripts/dewey.bsh +0 -47
- data/lib/generators/blacklight/templates/config/SolrMarc/index_scripts/format.bsh +0 -126
- data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/README_MAPS +0 -1
- data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/callnumber_map.properties +0 -407
- data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/composition_era_map.properties +0 -56
- data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/country_map.properties +0 -379
- data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/format_map.properties +0 -50
- data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/instrument_map.properties +0 -101
- data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/language_map.properties +0 -490
- data/lib/railties/solr_marc.rake +0 -162
- data/spec/data/test_data.utf8.mrc +0 -1
- data/spec/features/librarian_view_spec.rb +0 -13
- data/spec/helpers/html_head_helper_spec.rb +0 -164
- data/spec/lib/blacklight_solr_document_marc_spec.rb +0 -89
- data/spec/lib/marc_export_spec.rb +0 -746
- data/spec/lib/tasks/solr_marc_task_spec.rb +0 -60
- data/spec/requests/alternate_controller_spec.rb +0 -16
- data/spec/routing/routes_spec.rb +0 -20
- data/spec/views/catalog/_constraints.html.erb_spec.rb +0 -33
- data/spec/views/catalog/_paginate_compact.html.erb_spec.rb +0 -49
- data/test_support/data/test_data.utf8.mrc +0 -1
@@ -1,9 +1,7 @@
|
|
1
|
-
<div id="sortAndPerPage">
|
2
|
-
|
3
|
-
|
4
|
-
</div>
|
1
|
+
<div id="sortAndPerPage" class="clearfix">
|
2
|
+
<%= render :partial => "paginate_compact", :object => @response %>
|
3
|
+
<div class="search-widgets pull-right">
|
5
4
|
<%= render :partial => 'sort_widget' %>
|
6
|
-
|
7
5
|
<%= render :partial => 'per_page_widget' %>
|
8
|
-
|
6
|
+
</div>
|
9
7
|
</div>
|
@@ -1,14 +1,13 @@
|
|
1
1
|
<% if show_sort_and_per_page? and !blacklight_config.sort_fields.blank? %>
|
2
|
-
<div id="sort-dropdown" class="
|
3
|
-
<
|
4
|
-
<li class="btn">
|
2
|
+
<div id="sort-dropdown" class="btn-group">
|
3
|
+
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
5
4
|
<%= link_to(t('blacklight.search.sort.label', :field =>current_sort_field.label), "#") %> <span class="caret"></span>
|
6
|
-
|
5
|
+
</button>
|
6
|
+
|
7
|
+
<ul class="dropdown-menu">
|
7
8
|
<%- blacklight_config.sort_fields.each do |sort_key, field| %>
|
8
9
|
<li><%= link_to(field.label, url_for(params_for_search(:sort => sort_key))) %></li>
|
9
10
|
<%- end -%>
|
10
|
-
</ul>
|
11
|
-
</li>
|
12
11
|
</ul>
|
13
12
|
</div>
|
14
13
|
<% end %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="modal-header">
|
2
2
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
3
|
-
<h1><%= t('blacklight.email.form.title') %></h1>
|
3
|
+
<h1 class="modal-title"><%= t('blacklight.email.form.title') %></h1>
|
4
4
|
</div>
|
5
5
|
<%= render :partial => 'email_form' %>
|
@@ -1,21 +1,15 @@
|
|
1
|
-
<% Deprecation.silence(Blacklight::BlacklightHelperBehavior) do -%>
|
2
|
-
<% sidebar_items << capture do %>
|
3
|
-
<p><%= link_back_to_catalog %></p>
|
4
|
-
<% end %>
|
5
|
-
<% end %>
|
6
|
-
|
7
1
|
<div class="facet_pagination top">
|
8
2
|
<%= render :partial=>'facet_pagination' %>
|
9
3
|
</div>
|
10
4
|
|
11
5
|
<div class="modal-header">
|
12
6
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
13
|
-
<h3><%=
|
7
|
+
<h3 class="modal-title"><%= blacklight_config.facet_fields[params[:id]].label %></h3>
|
14
8
|
</div>
|
15
9
|
<div class="modal-body">
|
16
10
|
<div class="facet_extended_list">
|
17
11
|
|
18
|
-
<ul class="facet_extended_list">
|
12
|
+
<ul class="facet_extended_list facet-values">
|
19
13
|
<% @pagination.items.each do |item| %>
|
20
14
|
<li>
|
21
15
|
<% if facet_in_params?( params[:id], item.value ) %>
|
@@ -1,26 +1,31 @@
|
|
1
|
-
<div id="sidebar" class="
|
1
|
+
<div id="sidebar" class="col-md-3">
|
2
2
|
<%= render 'search_sidebar' %>
|
3
3
|
</div>
|
4
4
|
|
5
|
-
<div id="content" class="
|
5
|
+
<div id="content" class="col-md-9">
|
6
6
|
|
7
7
|
<% unless has_search_parameters? %>
|
8
8
|
<%# if there are no input/search related params, display the "home" partial -%>
|
9
9
|
<%= render 'home' %>
|
10
10
|
<% else %>
|
11
11
|
|
12
|
-
<h2 class="
|
12
|
+
<h2 class="sr-only top-content-title"><%= t('blacklight.search.search_results_header') %></h2>
|
13
13
|
|
14
14
|
<% @page_title = t('blacklight.search.title', :application_name => application_name) %>
|
15
15
|
|
16
16
|
|
17
|
-
<%
|
17
|
+
<% content_for(:head) do -%>
|
18
|
+
<%= render_opensearch_response_metadata %>
|
19
|
+
<%= auto_discovery_link_tag(:rss, url_for(params.merge(:format => 'rss')), :title => t('blacklight.search.rss_feed') ) %>
|
20
|
+
<%= auto_discovery_link_tag(:atom, url_for(params.merge(:format => 'atom')), :title => t('blacklight.search.atom_feed') ) %>
|
21
|
+
<% end -%>
|
22
|
+
|
18
23
|
|
19
24
|
<%= render 'search_header' %>
|
20
25
|
|
21
|
-
<h2 class="
|
26
|
+
<h2 class="sr-only"><%= t('blacklight.search.search_results') %></h2>
|
22
27
|
|
23
|
-
<%- if
|
28
|
+
<%- if response_has_no_search_results? %>
|
24
29
|
<%= render "zero_results" %>
|
25
30
|
<%- elsif render_grouped_response? %>
|
26
31
|
<%= render_grouped_document_index %>
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<div id="content" class="
|
1
|
+
<div id="content" class="col-md-9 show-document">
|
2
2
|
|
3
3
|
<%= render 'previous_next_doc' %>
|
4
4
|
|
5
5
|
|
6
|
-
<% @page_title = t('blacklight.search.show.title', :document_title => document_show_html_title, :application_name => application_name)
|
7
|
-
<%
|
6
|
+
<% @page_title = t('blacklight.search.show.title', :document_title => document_show_html_title, :application_name => application_name) -%>
|
7
|
+
<% content_for(:head) { render_link_rel_alternates } -%>
|
8
8
|
|
9
9
|
<%# this should be in a partial -%>
|
10
10
|
<div id="document" class="<%= render_document_class %>">
|
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
<% # bookmark/folder functions -%>
|
15
|
-
<%= render_document_heading(:h1)
|
15
|
+
<%= render_document_heading(:h1) %>
|
16
16
|
|
17
17
|
<div class="document">
|
18
18
|
<%= render_document_partial @document, :show %>
|
@@ -35,6 +35,6 @@
|
|
35
35
|
|
36
36
|
</div>
|
37
37
|
|
38
|
-
<div id="sidebar" class="
|
38
|
+
<div id="sidebar" class="col-md-3">
|
39
39
|
<%= render_document_sidebar_partial %>
|
40
40
|
</div>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="modal-header">
|
2
2
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
3
|
-
<h1><%= t('blacklight.sms.form.title') %></h1>
|
3
|
+
<h1 class="modal-title"><%= t('blacklight.sms.form.title') %></h1>
|
4
4
|
</div>
|
5
5
|
<%= render :partial => 'sms_form' %>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div class="modal-header">
|
2
2
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
3
|
-
<h1><%= t('blacklight.sms.form.title') %></h1>
|
3
|
+
<h1 class="modal-title"><%= t('blacklight.sms.form.title') %></h1>
|
4
4
|
</div>
|
5
5
|
|
6
6
|
<div class="modal-body">
|
@@ -7,9 +7,29 @@
|
|
7
7
|
paginator: the paginator that renders the pagination tags inside
|
8
8
|
|
9
9
|
Paginator now using the Bootstrap paginator class
|
10
|
-
-%>
|
11
|
-
<%- pagination_info_cache ||= page_entries_info(@response) %>
|
12
10
|
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
page_entries_info is passed into the paginate call, e.g. :
|
12
|
+
|
13
|
+
> paginate collection, :page_entries_info => page_entries_info(collection), :theme => :blacklight_compact
|
14
|
+
|
15
|
+
As of Kaminari 0.15, this paginator doesn't have access to the original collection/scope, so it can't render the page entries info directly.
|
16
|
+
-%>
|
17
|
+
<% if total_pages > 1 -%>
|
18
|
+
<%# #render checks if total_pages > 1, so we can't put our fallback
|
19
|
+
in here .. -%>
|
20
|
+
<%= paginator.render do -%>
|
21
|
+
<div class="page_links">
|
22
|
+
<%= prev_page_tag %> |
|
23
|
+
<span class="page_entries">
|
24
|
+
<%= page_entries_info %>
|
25
|
+
</span> |
|
26
|
+
<%= next_page_tag %>
|
27
|
+
</div>
|
28
|
+
<% end -%>
|
29
|
+
<% else -%>
|
30
|
+
<div class="page_links">
|
31
|
+
<span class="page_entries">
|
32
|
+
<%= page_entries_info %>
|
33
|
+
</span>
|
34
|
+
</div>
|
35
|
+
<% end -%>
|
@@ -19,39 +19,39 @@
|
|
19
19
|
<%= stylesheet_link_tag "application" %>
|
20
20
|
<%= javascript_include_tag "application" %>
|
21
21
|
<%= csrf_meta_tags %>
|
22
|
-
<%=
|
22
|
+
<%= content_for(:head) %>
|
23
23
|
|
24
24
|
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
25
25
|
<!--[if lt IE 9]>
|
26
|
-
<script src="
|
26
|
+
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
27
27
|
<![endif]-->
|
28
28
|
|
29
29
|
</head>
|
30
30
|
<body class="<%= render_body_class %>">
|
31
31
|
<%= render :partial => 'shared/header_navbar' %>
|
32
32
|
|
33
|
-
<div id="ajax-modal" class="modal
|
33
|
+
<div id="ajax-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="modal menu" aria-hidden="true">
|
34
|
+
<div class="modal-dialog">
|
35
|
+
<div class="modal-content">
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</div>
|
34
39
|
|
35
40
|
<!-- /container -->
|
36
41
|
<div id="main-container" class="container">
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
</div>
|
53
|
-
</div>
|
54
|
-
|
55
|
-
<%= render :partial => 'shared/footer' %>
|
56
|
-
</body>
|
42
|
+
<div class="row">
|
43
|
+
<div class="col-md-12">
|
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>
|
57
57
|
</html>
|
@@ -1,11 +1,9 @@
|
|
1
|
-
<div id="content" class="
|
1
|
+
<div id="content" class="col-md-12">
|
2
2
|
<h1><%=t('blacklight.search_history.title')%></h1>
|
3
3
|
<%- if @searches.blank? -%>
|
4
4
|
<h2><%=t('blacklight.search_history.no_history')%></h2>
|
5
5
|
<%- else -%>
|
6
|
-
|
7
|
-
<%= link_to t('blacklight.search_history.clear.action_title'), clear_search_history_path, :method => :delete, :data => { :confirm => t('blacklight.search_history.clear.action_confirm') } %>
|
8
|
-
</p>
|
6
|
+
<%= link_to t('blacklight.search_history.clear.action_title'), clear_search_history_path, :method => :delete, :data => { :confirm => t('blacklight.search_history.clear.action_confirm') }, :class => 'btn btn-danger pull-right' %>
|
9
7
|
<h3><%=t('blacklight.search_history.recent')%></h3>
|
10
8
|
<table class="table table-striped search_history">
|
11
9
|
<%- @searches.each_with_index do |search,index| -%>
|
@@ -14,9 +12,9 @@
|
|
14
12
|
<%- if has_user_authentication_provider? -%>
|
15
13
|
<td class="actions">
|
16
14
|
<%- if current_or_guest_user && search.saved? -%>
|
17
|
-
<%= button_to t('blacklight.search_history.forget'), forget_search_path(search.id) %>
|
15
|
+
<%= button_to t('blacklight.search_history.forget'), forget_search_path(search.id), :class => 'btn btn-default' %>
|
18
16
|
<%- else -%>
|
19
|
-
<%= button_to t('blacklight.search_history.save'), save_search_path(search.id), :method => :put %>
|
17
|
+
<%= button_to t('blacklight.search_history.save'), save_search_path(search.id), :method => :put, :class => 'btn btn-default' %>
|
20
18
|
<%- end -%>
|
21
19
|
</td>
|
22
20
|
<%- end -%>
|
@@ -24,4 +22,4 @@
|
|
24
22
|
<%- end -%>
|
25
23
|
</table>
|
26
24
|
<%- end -%>
|
27
|
-
</div>
|
25
|
+
</div>
|
@@ -1,25 +1,25 @@
|
|
1
|
-
<div id="header-navbar
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
</div>
|
13
|
-
<div class="span6 clearfix" id="searchbar">
|
14
|
-
<%= render_search_bar %>
|
15
|
-
</div>
|
1
|
+
<div id="header-navbar" class="navbar navbar-default navbar-static-top navbar-inverse" role="navigation">
|
2
|
+
<div class="container">
|
3
|
+
<div class="navbar-header">
|
4
|
+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#user-util-collapse">
|
5
|
+
<span class="sr-only">Toggle navigation</span>
|
6
|
+
<span class="icon-bar"></span>
|
7
|
+
<span class="icon-bar"></span>
|
8
|
+
<span class="icon-bar"></span>
|
9
|
+
</button>
|
10
|
+
<%= link_to application_name, root_path, class: "navbar-brand" %>
|
11
|
+
</div>
|
16
12
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
</div>
|
13
|
+
<div class="collapse navbar-collapse" id="user-util-collapse">
|
14
|
+
<%= render :partial=>'/user_util_links' %>
|
15
|
+
</div>
|
16
|
+
</div>
|
25
17
|
</div>
|
18
|
+
|
19
|
+
<div id="search-navbar" class="navbar navbar-default navbar-static-top" role="navigation">
|
20
|
+
<div class="container">
|
21
|
+
<div class="navbar-header">
|
22
|
+
<%= render_search_bar %>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
data/blacklight.gemspec
CHANGED
@@ -11,27 +11,24 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.summary = "Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr) index."
|
12
12
|
s.description = %q{Blacklight is an open source Solr user interface discovery platform. You can use Blacklight to enable searching and browsing of your collections. Blacklight uses the Apache Solr search engine to search full text and/or metadata.}
|
13
13
|
s.license = "Apache 2.0"
|
14
|
-
|
15
|
-
|
14
|
+
|
16
15
|
s.files = `git ls-files`.split("\n")
|
17
16
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
18
|
s.require_paths = ["lib"]
|
20
19
|
|
21
20
|
# PRODUCTION GEM REQUIREMENTS
|
22
|
-
# ---------------------------------------
|
23
|
-
s.add_dependency "rails", "
|
21
|
+
# ---------------------------------------
|
22
|
+
s.add_dependency "rails", ">= 3.2.6", "< 5"
|
24
23
|
s.add_dependency "nokogiri", "~>1.6" # XML Parser
|
25
|
-
# Let's allow future versions of marc, count on
|
26
|
-
# them to be backwards compat until 1.1
|
27
|
-
s.add_dependency "marc", ">= 0.4.3", "< 1.1" # Marc record parser.
|
28
|
-
s.add_dependency "rsolr", "~> 1.0.6" # Library for interacting with rSolr.
|
29
24
|
s.add_dependency "kaminari", "~> 0.13" # the pagination (page 1,2,3, etc..) of our search results
|
30
|
-
s.add_dependency "
|
31
|
-
s.add_dependency "
|
25
|
+
s.add_dependency "rsolr", "~> 1.0.6" # Library for interacting with rSolr.
|
26
|
+
s.add_dependency "sass-rails"
|
27
|
+
s.add_dependency "bootstrap-sass", "~> 3.0"
|
28
|
+
s.add_dependency "deprecation"
|
32
29
|
s.add_development_dependency "jettywrapper", ">= 1.4.1"
|
33
|
-
s.add_development_dependency "
|
34
|
-
s.add_development_dependency "rspec-
|
35
|
-
s.add_development_dependency 'engine_cart', "
|
30
|
+
s.add_development_dependency "blacklight_marc", "0.0.6"
|
31
|
+
s.add_development_dependency "rspec-rails"
|
32
|
+
s.add_development_dependency 'engine_cart', ">= 0.1.0"
|
36
33
|
s.add_development_dependency "equivalent-xml"
|
37
34
|
end
|
@@ -34,9 +34,6 @@ en:
|
|
34
34
|
or: 'or'
|
35
35
|
|
36
36
|
bookmarks:
|
37
|
-
collection:
|
38
|
-
add:
|
39
|
-
button: 'Add to Bookmarks'
|
40
37
|
title: 'Bookmarks'
|
41
38
|
no_bookmarks: 'You have no bookmarks'
|
42
39
|
add:
|
@@ -106,7 +103,6 @@ en:
|
|
106
103
|
refworks: 'Export to Refworks'
|
107
104
|
email: 'Email'
|
108
105
|
sms: 'SMS This'
|
109
|
-
librarian_view: 'Librarian View'
|
110
106
|
clear: 'Clear'
|
111
107
|
|
112
108
|
citation:
|
@@ -168,7 +164,7 @@ en:
|
|
168
164
|
request_error: "Sorry, I don't understand your search."
|
169
165
|
invalid_solr_id: "Sorry, you have requested a record that doesn't exist."
|
170
166
|
per_page:
|
171
|
-
label: '%{count}<span class="
|
167
|
+
label: '%{count}<span class="sr-only"> per page</span>'
|
172
168
|
button_label: '%{count} per page'
|
173
169
|
title: 'Number of results to display per page'
|
174
170
|
submit: 'Update'
|
@@ -212,16 +208,9 @@ en:
|
|
212
208
|
remove:
|
213
209
|
value: 'Remove constraint %{value}'
|
214
210
|
label_value: 'Remove constraint %{label}: %{value}'
|
215
|
-
librarian_view:
|
216
|
-
title: 'Librarian View'
|
217
|
-
leader: 'LEADER %{leader}'
|
218
|
-
empty: 'No MARC data found.'
|
219
211
|
start_over: 'Start Over'
|
220
|
-
index:
|
221
|
-
label: '%{label}'
|
222
212
|
show:
|
223
213
|
title: '%{document_title} - %{application_name}'
|
224
|
-
label: '%{label}'
|
225
214
|
rss_feed: 'RSS for results'
|
226
215
|
atom_feed: 'Atom for results'
|
227
216
|
fields:
|