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,7 +1,7 @@
|
|
1
1
|
|
2
2
|
<% @documents.each do |document| %>
|
3
3
|
|
4
|
-
<h3><%=
|
4
|
+
<h3 class="modal-title"><%= citation_title(document) %></h3>
|
5
5
|
|
6
6
|
<% if document.respond_to?(:export_as_mla_citation_txt) %>
|
7
7
|
<h4><%= t('blacklight.citation.mla') %></h4>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div id="appliedParams" class="constraints-container">
|
3
3
|
<span class="constraints-label"><%= t('blacklight.search.filters.title') %></span>
|
4
4
|
|
5
|
-
|
5
|
+
<%=link_to t('blacklight.search.start_over'), url_for(:action=>'index'), :class => "catalog_startOverLink", :id=>"startOverLink" %>
|
6
6
|
<%= render_constraints(params) %>
|
7
7
|
|
8
8
|
</div>
|
@@ -9,24 +9,28 @@
|
|
9
9
|
options[:escape_value] = true unless options.has_key?(:escape_value)
|
10
10
|
-%>
|
11
11
|
|
12
|
-
<span class="appliedFilter constraint <%= options[:classes].join(" ") if options[:classes] %>">
|
12
|
+
<span class="btn-group appliedFilter constraint <%= options[:classes].join(" ") if options[:classes] %>">
|
13
|
+
<a href="#" class="constraint-value btn btn-sm btn-default btn-disabled">
|
13
14
|
<%- unless label.blank? -%>
|
14
15
|
<span class="filterName"><%= options[:escape_label] ? h(label) : raw(label) %></span>
|
15
16
|
<%- end -%>
|
16
17
|
<%- unless value.blank? -%>
|
17
18
|
<span class="filterValue"><%= options[:escape_value] ? h(value) : raw(value) %></span>
|
18
|
-
<%- end -%>
|
19
|
+
<%- end -%>
|
20
|
+
</a>
|
21
|
+
|
19
22
|
<%- unless options[:remove].blank? -%>
|
20
|
-
<% accessible_remove_label =
|
23
|
+
<% accessible_remove_label = content_tag :span, :class => 'sr-only' do
|
21
24
|
if label.blank?
|
22
25
|
t('blacklight.search.filters.remove.value', :value => (options[:escape_value] ? h(value) : value))
|
23
26
|
else
|
24
27
|
t('blacklight.search.filters.remove.label_value', :label => (options[:escape_label] ? h(label) : label), :value => (options[:escape_value] ? h(value) : value))
|
25
|
-
end
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
28
|
+
end
|
29
|
+
end
|
30
|
+
%>
|
31
|
+
|
32
|
+
<%= link_to(content_tag(:span, '', :class => 'glyphicon glyphicon-remove') + accessible_remove_label,
|
33
|
+
options[:remove], :class => 'btn btn-default btn-sm remove dropdown-toggle'
|
30
34
|
) %>
|
31
35
|
<%- end -%>
|
32
36
|
</span>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
<% if
|
1
|
+
<% if @response.total <= spell_check_max and @response.spelling.words.size > 0 %>
|
2
2
|
<div id="spell">
|
3
|
-
<h4 class="suggest"><em><%= t('blacklight.did_you_mean', :options =>
|
3
|
+
<h4 class="suggest"><em><%= t('blacklight.did_you_mean', :options => safe_join(@response.spelling.words.map { |word| link_to_query(word) }, " #{t('blacklight.or')} ".html_safe)).html_safe %></em></h4>
|
4
4
|
</div>
|
5
5
|
<% end %>
|
@@ -1,15 +1,15 @@
|
|
1
1
|
|
2
2
|
<% # header bar for doc items in index view -%>
|
3
|
-
<div class="documentHeader
|
3
|
+
<div class="documentHeader row">
|
4
4
|
|
5
5
|
<%- # main title container for doc partial view -%>
|
6
|
-
<h5 class="index_title">
|
6
|
+
<h5 class="index_title col-sm-10">
|
7
7
|
<% counter = document_counter_with_offset(document_counter) %>
|
8
8
|
<%= t('blacklight.search.documents.counter', :counter => counter) if counter %>
|
9
9
|
<%= link_to_document document, :label=>document_show_link_field(document), :counter => counter %>
|
10
10
|
</h5>
|
11
11
|
|
12
12
|
<% # bookmark functions for items/docs -%>
|
13
|
-
<%= render_index_doc_actions document, :wrapping_class => "documentFunctions
|
13
|
+
<%= render_index_doc_actions document, :wrapping_class => "documentFunctions col-sm-2" %>
|
14
14
|
</div>
|
15
15
|
|
@@ -2,22 +2,22 @@
|
|
2
2
|
|
3
3
|
<div class="modal-body">
|
4
4
|
<%= render :partial=>'/flash_msg' %>
|
5
|
-
<div class="
|
6
|
-
<label class="control-label" for="to">
|
5
|
+
<div class="form-group">
|
6
|
+
<label class="control-label col-sm-2" for="to">
|
7
7
|
<%= t('blacklight.email.form.to') %>
|
8
8
|
</label>
|
9
|
-
<div class="
|
10
|
-
|
11
|
-
<%= text_field_tag :to, params[:to] %><br/>
|
9
|
+
<div class="col-sm-10">
|
10
|
+
<%= text_field_tag :to, params[:to], class: 'form-control' %>
|
12
11
|
</div>
|
13
12
|
</div>
|
14
|
-
|
15
|
-
|
13
|
+
|
14
|
+
<div class="form-group">
|
15
|
+
<label class="control-label col-sm-2" for="message">
|
16
16
|
<%= t('blacklight.email.form.message') %>
|
17
17
|
</label>
|
18
|
-
<div class="
|
19
|
-
|
20
|
-
|
18
|
+
<div class="col-sm-10">
|
19
|
+
<%= text_area_tag :message, params[:message], class: 'form-control' %>
|
20
|
+
</div>
|
21
21
|
</div>
|
22
22
|
|
23
23
|
<% @documents.each do |doc| %>
|
@@ -1,4 +1,12 @@
|
|
1
|
-
<div class="facet_limit blacklight-<%= facet_field.field.parameterize %>">
|
2
|
-
<
|
3
|
-
|
1
|
+
<div class="panel panel-default facet_limit blacklight-<%= facet_field.field.parameterize %> <%= 'facet_limit-active' if facet_field_in_params?(facet_field.field) %>">
|
2
|
+
<div class="<%= "collapsed" unless facet_field_in_params?(facet_field.field) %> collapse-toggle panel-heading" data-toggle="collapse" data-target="#facet-<%= facet_field.label.parameterize %>">
|
3
|
+
<h5 class="panel-title">
|
4
|
+
<%= link_to facet_field.label, "#", :"data-no-turbolink" => true %>
|
5
|
+
</h5>
|
6
|
+
</div>
|
7
|
+
<div id="facet-<%= facet_field.label.parameterize %>" class="panel-collapse <%= facet_field_in_params?(facet_field.field) ? 'in' : 'collapse' %>">
|
8
|
+
<div class="panel-body">
|
9
|
+
<%= yield %>
|
10
|
+
</div>
|
11
|
+
</div>
|
4
12
|
</div>
|
@@ -1,14 +1,14 @@
|
|
1
|
-
<ul>
|
2
|
-
<% paginator =
|
3
|
-
Blacklight::Solr::FacetPaginator.new(display_facet.items,
|
1
|
+
<ul class="facet-values list-unstyled">
|
2
|
+
<% paginator =
|
3
|
+
Blacklight::Solr::FacetPaginator.new(display_facet.items,
|
4
4
|
:limit => facet_limit_for(solr_field))
|
5
5
|
%>
|
6
6
|
<% paginator.items.each do |item| -%>
|
7
7
|
<li>
|
8
|
-
<% if facet_in_params?( solr_field, item.value ) %>
|
9
|
-
<%= render_selected_facet_value(solr_field, item) %>
|
10
|
-
<% else %>
|
11
|
-
<%= render_facet_value(solr_field, item) %>
|
8
|
+
<% if facet_in_params?( solr_field, item.value ) %>
|
9
|
+
<%= render_selected_facet_value(solr_field, item) %>
|
10
|
+
<% else %>
|
11
|
+
<%= render_facet_value(solr_field, item) %>
|
12
12
|
<% end -%>
|
13
13
|
</li>
|
14
14
|
<% end %>
|
@@ -1,21 +1,22 @@
|
|
1
1
|
|
2
2
|
<div class="prev_next_links btn-group pull-left">
|
3
|
-
<%= link_to_previous_page @pagination, raw(t('views.pagination.previous')), :params => params, :param_name => Blacklight::Solr::FacetPaginator.request_keys[:page], :class => 'btn' do %>
|
4
|
-
<span class="disabled btn"><%= raw(t('views.pagination.previous')) %></span>
|
3
|
+
<%= link_to_previous_page @pagination, raw(t('views.pagination.previous')), :params => params, :param_name => Blacklight::Solr::FacetPaginator.request_keys[:page], :class => 'btn btn-link', :data => {:ajax_modal => "preserve"} do %>
|
4
|
+
<span class="disabled btn btn-disabled"><%= raw(t('views.pagination.previous')) %></span>
|
5
5
|
<% end %>
|
6
|
-
<%= link_to_next_page @pagination, raw(t('views.pagination.next')), :params => params, :param_name => Blacklight::Solr::FacetPaginator.request_keys[:page], :class => 'btn' do %>
|
6
|
+
<%= link_to_next_page @pagination, raw(t('views.pagination.next')), :params => params, :param_name => Blacklight::Solr::FacetPaginator.request_keys[:page], :class => 'btn btn-link', :data => {:ajax_modal => "preserve"} do %>
|
7
7
|
|
8
|
-
<span class="disabled btn"><%= raw(t('views.pagination.next')) %></span>
|
8
|
+
<span class="disabled btn btn-disabled"><%= raw(t('views.pagination.next')) %></span>
|
9
9
|
<% end %>
|
10
10
|
|
11
11
|
</div>
|
12
12
|
|
13
13
|
<div class="sort_options btn-group pull-right">
|
14
14
|
<% if @pagination.sort == 'index' -%>
|
15
|
-
<span class="active az btn"><%= t('blacklight.search.facets.sort.index') %></span><%= link_to_unless(@pagination.sort == 'count', t('blacklight.search.facets.sort.count'),
|
16
|
-
@pagination.params_for_resort_url('count', params), :class => "sort_change numeric btn"
|
15
|
+
<span class="active az btn btn-default"><%= t('blacklight.search.facets.sort.index') %></span><%= link_to_unless(@pagination.sort == 'count', t('blacklight.search.facets.sort.count'),
|
16
|
+
@pagination.params_for_resort_url('count', params), :class => "sort_change numeric btn btn-default",
|
17
|
+
:data => {:ajax_modal => "preserve"}) %>
|
17
18
|
<% elsif @pagination.sort == 'count' -%>
|
18
19
|
<%= link_to(t('blacklight.search.facets.sort.index'), @pagination.params_for_resort_url('index', params),
|
19
|
-
:class => "sort_change az btn") %><span class="active numeric btn"><%= t('blacklight.search.facets.sort.count') %></span>
|
20
|
+
:class => "sort_change az btn btn-default", :data => {:ajax_modal => "preserve"}) %><span class="active numeric btn btn-default"><%= t('blacklight.search.facets.sort.count') %></span>
|
20
21
|
<% end -%>
|
21
22
|
</div>
|
@@ -1,11 +1,13 @@
|
|
1
|
-
<ul>
|
1
|
+
<ul class="pivot-facet list-unstyled">
|
2
2
|
<% display_facet.items.each do |item| -%>
|
3
3
|
<li>
|
4
|
+
<span class="facet-values">
|
4
5
|
<% if facet_in_params?( solr_field, item ) %>
|
5
6
|
<%= render_selected_facet_value(solr_field, item) %>
|
6
7
|
<% else %>
|
7
8
|
<%= render_facet_value(solr_field, item) %>
|
8
9
|
<% end -%>
|
10
|
+
</span>
|
9
11
|
|
10
12
|
<% unless item.items.blank? %>
|
11
13
|
<%= render :partial => 'facet_pivot', :locals => { :display_facet => item, :solr_field => solr_field } %>
|
@@ -1,18 +1,21 @@
|
|
1
1
|
<% # main container for facets/limits menu -%>
|
2
2
|
<% if has_facet_values? %>
|
3
3
|
<div id="facets" class="facets sidenav">
|
4
|
-
|
5
|
-
|
6
|
-
<h4 data-toggle="collapse" data-target=".facets-collapse">
|
7
4
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
5
|
+
<div class="top-panel-heading panel-heading">
|
6
|
+
<button type="button" class="facets-toggle" data-toggle="collapse" data-target="#facet-panel-collapse">
|
7
|
+
<span class="sr-only">Toggle facets</span>
|
8
|
+
<span class="icon-bar"></span>
|
9
|
+
<span class="icon-bar"></span>
|
10
|
+
<span class="icon-bar"></span>
|
11
|
+
</button>
|
13
12
|
|
13
|
+
<h4>
|
14
|
+
<%= t('blacklight.search.facets.title') %>
|
14
15
|
</h4>
|
15
|
-
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<div id="facet-panel-collapse" class="collapse panel-group">
|
16
19
|
<%= render_facet_partials %>
|
17
20
|
</div>
|
18
21
|
</div>
|
@@ -1,7 +1 @@
|
|
1
|
-
|
2
|
-
<% response = paginate_compact || @response -%>
|
3
|
-
<% if response.total_pages > 1 %>
|
4
|
-
<%= paginate response, :pagination_info_cache => page_entries_info(response), :theme => :blacklight_compact %>
|
5
|
-
<% else %>
|
6
|
-
<%= page_entries_info(response) %>
|
7
|
-
<% end %>
|
1
|
+
<%= paginate paginate_compact, :page_entries_info => page_entries_info(paginate_compact), :theme => :blacklight_compact %>
|
@@ -1,15 +1,12 @@
|
|
1
1
|
<% if show_sort_and_per_page? and !blacklight_config.per_page.blank? %>
|
2
|
-
|
3
|
-
<span class="
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
<ul>
|
2
|
+
|
3
|
+
<span class="sr-only"><%= t('blacklight.search.per_page.title') %></span>
|
4
|
+
<div id="per_page-dropdown" class="btn-group">
|
5
|
+
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><%= link_to(t(:'blacklight.search.per_page.button_label', :count => current_per_page), "#") %> <span class="caret"></span></button>
|
6
|
+
<ul class="dropdown-menu">
|
8
7
|
<%- blacklight_config.per_page.each do |count| %>
|
9
8
|
<li><%= link_to(t(:'blacklight.search.per_page.label', :count => count).html_safe, url_for(params_for_search(:per_page => count))) %></li>
|
10
9
|
<%- end -%>
|
11
|
-
</ul>
|
12
|
-
</li>
|
13
10
|
</ul>
|
14
11
|
</div>
|
15
12
|
<% end %>
|
@@ -1,16 +1,18 @@
|
|
1
1
|
<% #Using the Bootstrap Pagination class -%>
|
2
2
|
<% if @previous_document || @next_document %>
|
3
|
-
<div
|
4
|
-
|
3
|
+
<div id="previousNextDocument">
|
4
|
+
<div class="page_links">
|
5
|
+
<%= link_to_previous_document @previous_document %> |
|
5
6
|
|
6
|
-
|
7
|
+
<%= item_page_entry_info %> |
|
7
8
|
|
8
|
-
|
9
|
+
<%= link_to_next_document @next_document %>
|
10
|
+
</div>
|
9
11
|
|
10
|
-
<div class="pull-right">
|
11
|
-
|
12
|
-
|
13
|
-
|
12
|
+
<div class="pull-right search-widgets">
|
13
|
+
<%= link_back_to_catalog :class => 'btn' %>
|
14
|
+
|
15
|
+
<%=link_to "#{t('blacklight.search.start_over')}", catalog_index_path, :id=>"startOverLink", :class => 'btn' %>
|
16
|
+
</div>
|
14
17
|
</div>
|
15
|
-
</div>
|
16
18
|
<% end %>
|
@@ -1,6 +1,5 @@
|
|
1
|
-
<%= form_tag "http://www.refworks.com/express/expressimport.asp?vendor=#{application_name}&filter=MARC%20Format&encoding=65001", :name => "refworks", :target => "_blank", :id => "refworks-form" do %>
|
1
|
+
<%= form_tag "http://www.refworks.com/express/expressimport.asp?vendor=#{application_name}&filter=MARC%20Format&encoding=65001", :name => "refworks", :role => 'form', :target => "_blank", :id => "refworks-form" do %>
|
2
2
|
|
3
3
|
<%= hidden_field_tag "ImportData", render_refworks_texts(documents) %>
|
4
|
-
<%= submit_tag t('blacklight.tools.refworks'), :class => 'submit btn'%>
|
5
|
-
<% end %>
|
6
|
-
|
4
|
+
<%= submit_tag t('blacklight.tools.refworks'), :class => 'submit btn btn-default'%>
|
5
|
+
<% end %>
|
@@ -1,21 +1,23 @@
|
|
1
|
-
<%= form_tag search_action_url, :method => :get, :class => 'search-query-form form-inline clearfix' do %>
|
2
|
-
<%=
|
1
|
+
<%= form_tag search_action_url, :method => :get, :class => 'search-query-form form-inline clearfix navbar-form' do %>
|
2
|
+
<%= search_as_hidden_fields(:omit_keys => [:q, :search_field, :qt, :page, :utf8]) %>
|
3
3
|
|
4
|
+
<div class="input-group">
|
4
5
|
<% unless search_fields.empty? %>
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
|
7
|
+
<span class="input-group-addon">
|
8
|
+
<label for="search_field" class="sr-only"><%= t('blacklight.search.form.search_field.label') %></label>
|
9
|
+
<%= select_tag(:search_field, options_for_select(search_fields, h(params[:search_field])), :title => t('blacklight.search.form.search_field.title'), :class=>"search_field") %>
|
10
|
+
<span class="sr-only"><%= t('blacklight.search.form.search_field.post_label') %></span>
|
11
|
+
</span>
|
10
12
|
<% end %>
|
11
|
-
|
12
|
-
|
13
|
-
|
13
|
+
<label for="q" class="sr-only"><%= t('blacklight.search.form.q') %></label>
|
14
|
+
<%= text_field_tag :q, params[:q], :placeholder => t('blacklight.search.form.q'), :class => "search_q q form-control", :id => "q", :autofocus => should_autofocus_on_search_box? %>
|
15
|
+
|
16
|
+
<span class="input-group-btn">
|
14
17
|
<button type="submit" class="btn btn-primary search-btn" id="search">
|
15
18
|
<span class="submit-search-text"><%=t('blacklight.search.form.submit')%></span>
|
16
|
-
<
|
19
|
+
<span class="glyphicon glyphicon-search"></span>
|
17
20
|
</button>
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
+
</span>
|
22
|
+
</div>
|
21
23
|
<% end %>
|
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
<%= render :partial => 'show_tools' %>
|
3
|
-
</div><!--/well -->
|
1
|
+
<%= render :partial => 'show_tools' %>
|
4
2
|
|
5
3
|
<% unless @document.more_like_this.empty? %>
|
6
|
-
<div class="
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
</div
|
4
|
+
<div class="panel panel-default">
|
5
|
+
<div class="panel-heading">More Like This</div>
|
6
|
+
<div class="panel-body">
|
7
|
+
<%= render :collection => @document.more_like_this, :partial => 'show_more_like_this', :as => :document %>
|
8
|
+
</div>
|
9
|
+
</div>
|
12
10
|
<% end %>
|
@@ -6,16 +6,20 @@
|
|
6
6
|
# item view. While "document tools" contains external export type
|
7
7
|
# functions by default only on detail.
|
8
8
|
|
9
|
-
#Added Bootstrap class well and 'hidden-phone' for the tools-bar
|
10
9
|
-%>
|
10
|
+
<div class="panel panel-default show-tools">
|
11
|
+
<div class="panel-heading">
|
12
|
+
<%= t('blacklight.tools.title') %>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="panel-body">
|
11
16
|
<ul class="nav nav-list">
|
12
|
-
<li class="nav-header"><%= t('blacklight.tools.title') %></li>
|
13
17
|
<li>
|
14
18
|
<%= render_show_doc_actions @document %>
|
15
19
|
</li>
|
16
20
|
<% if (@document.respond_to?(:export_as_mla_citation_txt) || @document.respond_to?(:export_as_apa_citation_txt)) %>
|
17
21
|
<li class="cite">
|
18
|
-
<%= link_to t('blacklight.tools.cite'), citation_catalog_path(:id => @document), {:id => 'citeLink', :
|
22
|
+
<%= link_to t('blacklight.tools.cite'), citation_catalog_path(:id => @document), {:id => 'citeLink', :data => {:ajax_modal => "trigger"}} %>
|
19
23
|
</li>
|
20
24
|
<% end %>
|
21
25
|
<% if @document.export_formats.keys.include?( :refworks_marc_txt ) %>
|
@@ -30,18 +34,20 @@
|
|
30
34
|
<% end %>
|
31
35
|
<% if @document.respond_to?( :to_email_text ) %>
|
32
36
|
<li class="email">
|
33
|
-
<%= link_to t('blacklight.tools.email'), email_catalog_path(:id => @document), {:id => 'emailLink', :
|
37
|
+
<%= link_to t('blacklight.tools.email'), email_catalog_path(:id => @document), {:id => 'emailLink', :data => {:ajax_modal => "trigger"}} %>
|
34
38
|
</li>
|
35
39
|
<%- end -%>
|
36
40
|
<%- if @document.respond_to?( :to_sms_text ) -%>
|
37
41
|
<li class="sms">
|
38
|
-
<%= link_to t('blacklight.tools.sms'), sms_catalog_path(:id => @document), {:id => 'smsLink', :
|
42
|
+
<%= link_to t('blacklight.tools.sms'), sms_catalog_path(:id => @document), {:id => 'smsLink', :data => {:ajax_modal => "trigger"}} %>
|
39
43
|
</li>
|
40
44
|
<%- end -%>
|
41
45
|
|
42
|
-
<% if @document.respond_to?(:to_marc) %>
|
46
|
+
<% if respond_to? :librarian_view_catalog_path and @document.respond_to?(:to_marc) %>
|
43
47
|
<li class="librarian_view">
|
44
|
-
<%= link_to t('blacklight.tools.librarian_view'), librarian_view_catalog_path(@document), {:id => 'librarianLink', :
|
48
|
+
<%= link_to t('blacklight.tools.librarian_view'), librarian_view_catalog_path(@document), {:id => 'librarianLink', :data => {:ajax_modal => "trigger"}} %>
|
45
49
|
</li>
|
46
50
|
<% end %>
|
47
51
|
</ul>
|
52
|
+
</div>
|
53
|
+
</div>
|
@@ -1,20 +1,20 @@
|
|
1
1
|
<%= form_tag url_for(:controller => "catalog", :action => "sms"), :id => 'sms_form', :class => "form-horizontal ajax_form", :method => :post do %>
|
2
2
|
<div class="modal-body">
|
3
3
|
<%= render :partial=>'/flash_msg' %>
|
4
|
-
<div class="
|
5
|
-
<label class="control-label" for="to">
|
4
|
+
<div class="form-group">
|
5
|
+
<label class="control-label col-sm-2" for="to">
|
6
6
|
<%= t('blacklight.sms.form.to') %>
|
7
7
|
</label>
|
8
|
-
<div class="
|
9
|
-
<%= text_field_tag :to, params[:to] %>
|
8
|
+
<div class="col-sm-10">
|
9
|
+
<%= text_field_tag :to, params[:to], class: 'form-control' %>
|
10
10
|
</div>
|
11
11
|
</div>
|
12
|
-
<div class="
|
13
|
-
<label class="control-label" for="carrier">
|
12
|
+
<div class="form-group">
|
13
|
+
<label class="control-label col-sm-2" for="carrier">
|
14
14
|
<%= t('blacklight.sms.form.carrier') %>
|
15
15
|
</label>
|
16
|
-
<div class="
|
17
|
-
<%= select_tag(:carrier, options_for_select(sms_mappings.to_a.sort.unshift([t('blacklight.sms.form.carrier_prompt'),'']), params[:carrier])) %><br/>
|
16
|
+
<div class="col-sm-10">
|
17
|
+
<%= select_tag(:carrier, options_for_select(sms_mappings.to_a.sort.unshift([t('blacklight.sms.form.carrier_prompt'),'']), params[:carrier]), class: 'form-control') %><br/>
|
18
18
|
</div>
|
19
19
|
|
20
20
|
</div>
|