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.
Files changed (260) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -1
  3. data/.travis.yml +22 -12
  4. data/Gemfile +3 -40
  5. data/LICENSE +1 -2
  6. data/README.md +1 -2
  7. data/Rakefile +0 -4
  8. data/VERSION +1 -1
  9. data/app/assets/images/blacklight/logo.png +0 -0
  10. data/app/assets/javascripts/blacklight/ajax_modal.js +190 -0
  11. data/app/assets/javascripts/blacklight/blacklight.js +7 -17
  12. data/app/assets/javascripts/blacklight/checkbox_submit.js +1 -1
  13. data/app/assets/stylesheets/blacklight/{_blacklight_base.scss → _blacklight_base.css.scss} +0 -21
  14. data/app/assets/stylesheets/blacklight/_bookmark.css.scss +4 -0
  15. data/app/assets/stylesheets/blacklight/_catalog.css.scss +192 -0
  16. data/app/assets/stylesheets/blacklight/_facets.css.scss +141 -0
  17. data/app/assets/stylesheets/blacklight/{_group.scss → _group.css.scss} +1 -1
  18. data/app/assets/stylesheets/blacklight/_header.css.scss +44 -0
  19. data/app/assets/stylesheets/blacklight/_layout.css.scss +5 -0
  20. data/app/assets/stylesheets/blacklight/{_modal.scss → _modal.css.scss} +7 -7
  21. data/app/assets/stylesheets/blacklight/_search_history.css.scss +20 -0
  22. data/app/assets/stylesheets/blacklight/{blacklight.scss → blacklight.css.scss} +0 -0
  23. data/app/assets/stylesheets/blacklight/blacklight_defaults.css.scss +14 -0
  24. data/app/controllers/bookmarks_controller.rb +0 -4
  25. data/app/controllers/feedback_controller.rb +0 -4
  26. data/app/helpers/blacklight/blacklight_helper_behavior.rb +45 -155
  27. data/app/helpers/blacklight/catalog_helper_behavior.rb +8 -41
  28. data/app/helpers/blacklight/facets_helper_behavior.rb +20 -43
  29. data/app/helpers/blacklight/hash_as_hidden_fields_helper_behavior.rb +2 -9
  30. data/app/helpers/blacklight/render_constraints_helper_behavior.rb +9 -14
  31. data/app/helpers/blacklight/search_history_constraints_helper_behavior.rb +6 -6
  32. data/app/views/_flash_msg.html.erb +9 -2
  33. data/app/views/_user_util_links.html.erb +29 -15
  34. data/app/views/bookmarks/_tools.html.erb +4 -7
  35. data/app/views/bookmarks/index.html.erb +3 -2
  36. data/app/views/catalog/_citation.html.erb +1 -1
  37. data/app/views/catalog/_constraints.html.erb +1 -1
  38. data/app/views/catalog/_constraints_element.html.erb +12 -8
  39. data/app/views/catalog/_did_you_mean.html.erb +2 -2
  40. data/app/views/catalog/_document_header.html.erb +3 -3
  41. data/app/views/catalog/_email_form.html.erb +10 -10
  42. data/app/views/catalog/_facet_layout.html.erb +11 -3
  43. data/app/views/catalog/_facet_limit.html.erb +7 -7
  44. data/app/views/catalog/_facet_pagination.html.erb +8 -7
  45. data/app/views/catalog/_facet_pivot.html.erb +3 -1
  46. data/app/views/catalog/_facets.html.erb +12 -9
  47. data/app/views/catalog/_paginate_compact.html.erb +1 -7
  48. data/app/views/catalog/_per_page_widget.html.erb +5 -8
  49. data/app/views/catalog/_previous_next_doc.html.erb +11 -9
  50. data/app/views/catalog/_refworks_form.html.erb +3 -4
  51. data/app/views/catalog/_results_pagination.html.erb +1 -1
  52. data/app/views/catalog/_search_form.html.erb +16 -14
  53. data/app/views/catalog/_show_sidebar.html.erb +7 -9
  54. data/app/views/catalog/_show_tools.html.erb +13 -7
  55. data/app/views/catalog/_sms_form.html.erb +8 -8
  56. data/app/views/catalog/_sort_and_per_page.html.erb +4 -6
  57. data/app/views/catalog/_sort_widget.html.erb +5 -6
  58. data/app/views/catalog/email.html.erb +1 -1
  59. data/app/views/catalog/facet.html.erb +2 -8
  60. data/app/views/catalog/index.html.erb +11 -6
  61. data/app/views/catalog/show.html.erb +5 -5
  62. data/app/views/catalog/sms.html.erb +1 -1
  63. data/app/views/catalog/sms_sent.html.erb +1 -1
  64. data/app/views/feedback/complete.html.erb +2 -2
  65. data/app/views/feedback/show.html.erb +1 -1
  66. data/app/views/kaminari/blacklight/_paginator.html.erb +1 -1
  67. data/app/views/kaminari/blacklight_compact/_paginator.html.erb +25 -5
  68. data/app/views/layouts/blacklight.html.erb +23 -23
  69. data/app/views/saved_searches/index.html.erb +2 -2
  70. data/app/views/search_history/index.html.erb +5 -7
  71. data/app/views/shared/_header_navbar.html.erb +23 -23
  72. data/blacklight.gemspec +10 -13
  73. data/config/locales/blacklight.en.yml +1 -12
  74. data/config/locales/blacklight.fr.yml +1 -12
  75. data/gemfiles/rails3.gemfile +21 -0
  76. data/gemfiles/rails4.gemfile +20 -0
  77. data/lib/blacklight.rb +0 -8
  78. data/lib/blacklight/base.rb +0 -2
  79. data/lib/blacklight/catalog.rb +6 -32
  80. data/lib/blacklight/catalog/search_context.rb +8 -48
  81. data/lib/blacklight/configurable.rb +2 -1
  82. data/lib/blacklight/configuration.rb +1 -2
  83. data/lib/blacklight/configuration/facet_field.rb +0 -2
  84. data/lib/blacklight/engine.rb +3 -3
  85. data/lib/blacklight/legacy_controller_methods.rb +1 -64
  86. data/lib/blacklight/rails/routes.rb +17 -0
  87. data/lib/blacklight/routes.rb +46 -40
  88. data/lib/blacklight/solr.rb +1 -0
  89. data/lib/blacklight/solr/document.rb +21 -42
  90. data/lib/blacklight/solr/facet_paginator.rb +30 -54
  91. data/lib/blacklight/solr/request.rb +45 -0
  92. data/lib/blacklight/solr_helper.rb +16 -53
  93. data/lib/blacklight/solr_response.rb +0 -6
  94. data/lib/blacklight/user.rb +2 -7
  95. data/lib/blacklight/utils.rb +1 -9
  96. data/lib/generators/blacklight/assets_generator.rb +0 -14
  97. data/lib/generators/blacklight/blacklight_generator.rb +17 -14
  98. data/lib/generators/blacklight/templates/blacklight.css.scss +3 -0
  99. data/lib/generators/blacklight/templates/catalog_controller.rb +4 -1
  100. data/lib/railties/blacklight.rake +3 -1
  101. data/solr/sample_solr_documents.yml +641 -0
  102. data/spec/controllers/application_controller_spec.rb +5 -21
  103. data/spec/controllers/bookmarks_controller_spec.rb +11 -11
  104. data/spec/controllers/catalog_controller_spec.rb +122 -119
  105. data/spec/controllers/search_history_controller_spec.rb +8 -8
  106. data/spec/features/alternate_controller_spec.rb +5 -5
  107. data/spec/features/facets_spec.rb +9 -0
  108. data/spec/features/record_view_spec.rb +1 -1
  109. data/spec/features/search_filters_spec.rb +97 -41
  110. data/spec/features/search_results_spec.rb +14 -17
  111. data/spec/features/search_sort_spec.rb +1 -1
  112. data/spec/helpers/blacklight_helper_spec.rb +170 -285
  113. data/spec/helpers/catalog_helper_spec.rb +57 -96
  114. data/spec/helpers/facets_helper_spec.rb +130 -152
  115. data/spec/helpers/hash_as_hidden_fields_spec.rb +9 -15
  116. data/spec/helpers/render_constraints_helper_spec.rb +5 -5
  117. data/spec/helpers/search_history_constraints_helper_spec.rb +21 -21
  118. data/spec/lib/blacklight/routes_spec.rb +25 -0
  119. data/spec/lib/blacklight/solr/request_spec.rb +37 -0
  120. data/spec/lib/blacklight/solr_response/group_response_spec.rb +2 -2
  121. data/spec/lib/blacklight_configurable_spec.rb +16 -16
  122. data/spec/lib/blacklight_configuration_spec.rb +132 -132
  123. data/spec/lib/blacklight_email_spec.rb +4 -4
  124. data/spec/lib/blacklight_sms_spec.rb +4 -4
  125. data/spec/lib/blacklight_solr_document_dublin_core_spec.rb +6 -6
  126. data/spec/lib/blacklight_solr_document_more_like_this_spec.rb +4 -4
  127. data/spec/lib/blacklight_solr_document_spec.rb +36 -36
  128. data/spec/lib/blacklight_solr_response_spec.rb +43 -48
  129. data/spec/lib/blacklight_spec.rb +6 -14
  130. data/spec/lib/blacklight_user_spec.rb +5 -9
  131. data/spec/lib/facet_paginator_spec.rb +59 -51
  132. data/spec/lib/search_fields_spec.rb +13 -13
  133. data/spec/lib/solr_helper_spec.rb +258 -304
  134. data/spec/lib/tasks/blacklight_task_spec.rb +1 -1
  135. data/spec/lib/utils_spec.rb +16 -46
  136. data/spec/models/bookmark_spec.rb +6 -7
  137. data/spec/models/record_mailer_spec.rb +16 -16
  138. data/spec/models/search_spec.rb +8 -8
  139. data/spec/models/solr_document_spec.rb +6 -77
  140. data/spec/routing/catalog_routing_spec.rb +16 -10
  141. data/spec/spec_helper.rb +7 -7
  142. data/spec/support/assert_difference.rb +2 -2
  143. data/spec/support/features.rb +0 -11
  144. data/spec/support/features/session_helpers.rb +3 -3
  145. data/spec/support/include_text.rb +2 -2
  146. data/spec/test_app_templates/Gemfile.extra +10 -2
  147. data/spec/test_app_templates/lib/generators/test_app_generator.rb +12 -18
  148. data/spec/views/catalog/_constraints_element.html.erb_spec.rb +13 -13
  149. data/spec/views/catalog/_document.html.erb_spec.rb +1 -1
  150. data/spec/views/catalog/_document_list.html.erb_spec.rb +1 -1
  151. data/spec/views/catalog/_facets.html.erb_spec.rb +13 -14
  152. data/spec/views/catalog/_index_default.erb_spec.rb +21 -21
  153. data/spec/views/catalog/_search_header.erb_spec.rb +1 -1
  154. data/spec/views/catalog/_show_default.erb_spec.rb +21 -21
  155. data/spec/views/catalog/_show_sidebar.erb_spec.rb +7 -7
  156. data/spec/views/catalog/_thumbnail_default.erb_spec.rb +3 -3
  157. data/spec/views/catalog/index.atom.builder_spec.rb +29 -29
  158. data/spec/views/catalog/index.html.erb_spec.rb +6 -7
  159. data/tasks/blacklight.rake +8 -2
  160. metadata +84 -180
  161. data/app/assets/javascripts/blacklight/css_dropdowns.js +0 -10
  162. data/app/assets/javascripts/blacklight/facet_expand_contract.js +0 -41
  163. data/app/assets/javascripts/blacklight/lightbox_dialog.js +0 -70
  164. data/app/assets/javascripts/blacklight/select_submit.js +0 -27
  165. data/app/assets/javascripts/blacklight/zebra_stripe.js +0 -13
  166. data/app/assets/javascripts/improved-modal/bootstrap-modal.js +0 -355
  167. data/app/assets/javascripts/improved-modal/bootstrap-modalmanager.js +0 -370
  168. data/app/assets/stylesheets/blacklight/_bookmark.scss +0 -33
  169. data/app/assets/stylesheets/blacklight/_catalog.scss +0 -255
  170. data/app/assets/stylesheets/blacklight/_dropdown.scss +0 -57
  171. data/app/assets/stylesheets/blacklight/_facets.scss +0 -197
  172. data/app/assets/stylesheets/blacklight/_footer.scss +0 -0
  173. data/app/assets/stylesheets/blacklight/_header.scss +0 -53
  174. data/app/assets/stylesheets/blacklight/_layout.scss +0 -10
  175. data/app/assets/stylesheets/blacklight/_mixins.scss +0 -0
  176. data/app/assets/stylesheets/blacklight/_print.scss +0 -0
  177. data/app/assets/stylesheets/blacklight/_responsive.scss +0 -3
  178. data/app/assets/stylesheets/blacklight/_search_history.scss +0 -42
  179. data/app/assets/stylesheets/blacklight/blacklight_defaults.scss +0 -49
  180. data/app/assets/stylesheets/blacklight/responsive_partials/_catalog.scss +0 -5
  181. data/app/assets/stylesheets/blacklight/responsive_partials/_facets.scss +0 -37
  182. data/app/assets/stylesheets/blacklight/responsive_partials/_header.scss +0 -30
  183. data/app/assets/stylesheets/improved-modal/bootstrap-modal.css +0 -217
  184. data/app/helpers/blacklight/html_head_helper_behavior.rb +0 -118
  185. data/app/helpers/html_head_helper.rb +0 -3
  186. data/app/views/catalog/_bookmark_form.html.erb +0 -7
  187. data/app/views/catalog/_marc_view.html.erb +0 -32
  188. data/app/views/catalog/librarian_view.html.erb +0 -10
  189. data/config/routes.rb +0 -17
  190. data/doc/Atom-Responses.md +0 -90
  191. data/doc/Blacklight-3.0-Release-Notes-And-Upgrade-Guide.md +0 -107
  192. data/doc/Blacklight-3.2-Release-Notes-and-Upgrade-Guide.md +0 -191
  193. data/doc/Blacklight-3.3-release-notes-and-upgrade-guide.md +0 -37
  194. data/doc/Blacklight-3.4-release-notes-and-upgrade-guide.md +0 -27
  195. data/doc/Blacklight-3.5-release-notes-and-upgrade-guide.md +0 -44
  196. data/doc/Blacklight-3.6-release-notes-and-upgrade-guide.md +0 -25
  197. data/doc/Blacklight-3.7-release-notes-and-upgrade-guide.md +0 -80
  198. data/doc/Blacklight-3.8-release-notes-and-upgrade-guide.md +0 -11
  199. data/doc/Blacklight-4.0-release-notes-and-upgrade-guide.md +0 -135
  200. data/doc/Blacklight-4.1-release-notes-and-upgrade-guide.md +0 -17
  201. data/doc/Blacklight-4.2-release-notes-and-upgrade-guide.md +0 -25
  202. data/doc/Blacklight-4.3-release-notes-and-upgrade-guide.md +0 -21
  203. data/doc/Blacklight-4.4-release-notes-and-upgrade-guide.md +0 -41
  204. data/doc/Blacklight-Add-ons.md +0 -28
  205. data/doc/Blacklight-configuration.md +0 -411
  206. data/doc/Blacklight-on-Heroku.md +0 -135
  207. data/doc/Code4Lib-2014.md +0 -48
  208. data/doc/Community-principles.md +0 -44
  209. data/doc/Configuring-and-Customizing-Blacklight.md +0 -271
  210. data/doc/Configuring-rails-routes.md +0 -13
  211. data/doc/Contributing-to-Blacklight.md +0 -25
  212. data/doc/Examples.md +0 -94
  213. data/doc/Extending-or-Modifying-Blacklight-Search-Behavior.md +0 -141
  214. data/doc/FAQs.md +0 -1
  215. data/doc/Home.md +0 -80
  216. data/doc/How-to-release-a-version.md +0 -29
  217. data/doc/Indexing-your-data-into-solr.md +0 -32
  218. data/doc/Integration-with-Rails-Footnotes.md +0 -20
  219. data/doc/Internationalization.md +0 -32
  220. data/doc/JSON-API.md +0 -17
  221. data/doc/Pagination.md +0 -51
  222. data/doc/Providing-your-own-view-templates.md +0 -109
  223. data/doc/Quickstart.md +0 -115
  224. data/doc/README_SOLR.md +0 -245
  225. data/doc/Release-Notes-And-Upgrade-Guides.md +0 -20
  226. data/doc/Roadmap.md +0 -43
  227. data/doc/Sunspot-for-indexing.md +0 -46
  228. data/doc/Theming.md +0 -64
  229. data/doc/User-Authentication.md +0 -60
  230. data/doc/testing.md +0 -57
  231. data/lib/SolrMarc.jar +0 -0
  232. data/lib/blacklight/mash.rb +0 -19
  233. data/lib/blacklight/solr/document/marc.rb +0 -71
  234. data/lib/blacklight/solr/document/marc_export.rb +0 -590
  235. data/lib/generators/blacklight/marc_generator.rb +0 -66
  236. data/lib/generators/blacklight/templates/blacklight.scss +0 -4
  237. data/lib/generators/blacklight/templates/config/SolrMarc/config-test.properties +0 -37
  238. data/lib/generators/blacklight/templates/config/SolrMarc/config.properties +0 -37
  239. data/lib/generators/blacklight/templates/config/SolrMarc/index.properties +0 -97
  240. data/lib/generators/blacklight/templates/config/SolrMarc/index_scripts/dewey.bsh +0 -47
  241. data/lib/generators/blacklight/templates/config/SolrMarc/index_scripts/format.bsh +0 -126
  242. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/README_MAPS +0 -1
  243. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/callnumber_map.properties +0 -407
  244. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/composition_era_map.properties +0 -56
  245. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/country_map.properties +0 -379
  246. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/format_map.properties +0 -50
  247. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/instrument_map.properties +0 -101
  248. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/language_map.properties +0 -490
  249. data/lib/railties/solr_marc.rake +0 -162
  250. data/spec/data/test_data.utf8.mrc +0 -1
  251. data/spec/features/librarian_view_spec.rb +0 -13
  252. data/spec/helpers/html_head_helper_spec.rb +0 -164
  253. data/spec/lib/blacklight_solr_document_marc_spec.rb +0 -89
  254. data/spec/lib/marc_export_spec.rb +0 -746
  255. data/spec/lib/tasks/solr_marc_task_spec.rb +0 -60
  256. data/spec/requests/alternate_controller_spec.rb +0 -16
  257. data/spec/routing/routes_spec.rb +0 -20
  258. data/spec/views/catalog/_constraints.html.erb_spec.rb +0 -33
  259. data/spec/views/catalog/_paginate_compact.html.erb_spec.rb +0 -49
  260. data/test_support/data/test_data.utf8.mrc +0 -1
@@ -1,9 +1,7 @@
1
- <div id="sortAndPerPage">
2
- <div class="page_links">
3
- <%= render :partial => "paginate_compact" %>
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="dropdown pull-right hidden-phone">
3
- <ul class="css-dropdown">
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
- <ul>
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><%= facet_field_labels[params[:id]] %></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="span3">
1
+ <div id="sidebar" class="col-md-3">
2
2
  <%= render 'search_sidebar' %>
3
3
  </div>
4
4
 
5
- <div id="content" class="span9">
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="hide-text top-content-title"><%= t('blacklight.search.search_results_header') %></h2>
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
- <% Deprecation.silence(Blacklight::LegacyControllerMethods) { extra_head_content << render_opensearch_response_metadata.html_safe } %>
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="hide-text"><%= t('blacklight.search.search_results') %></h2>
26
+ <h2 class="sr-only"><%= t('blacklight.search.search_results') %></h2>
22
27
 
23
- <%- if @response.empty? %>
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="span9 show-document">
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
- <% Deprecation.silence(Blacklight::LegacyControllerMethods) { extra_head_content << render_link_rel_alternates } %>
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).html_safe %>
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="span3">
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">
@@ -1,5 +1,5 @@
1
- <div id="content" class="span9">
1
+ <div id="content" class="col-md-9">
2
2
  <h1><%= t('blacklight.feedback.complete.title') %></h1>
3
3
 
4
4
  <%= link_to t('blacklight.back_to_search'), catalog_index_path %>
5
- </div>
5
+ </div>
@@ -1,4 +1,4 @@
1
- <div id="content" class="span9">
1
+ <div id="content" class="col-md-9">
2
2
  <h1>Send Us Feedback</h1>
3
3
 
4
4
  <% unless @errors.empty? %>
@@ -9,7 +9,7 @@
9
9
  Paginator now using the Bootstrap paginator class
10
10
  -%>
11
11
  <%= paginator.render do -%>
12
- <ul>
12
+ <ul class="pagination">
13
13
  <%= prev_page_tag %>
14
14
  <%= next_page_tag %>
15
15
  <% each_relevant_page do |page| -%>
@@ -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
- <%= paginator.render do -%>
14
- <%= prev_page_tag %> | <%= pagination_info_cache %> | <%= next_page_tag %>
15
- <% end -%>
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
- <%= Deprecation.silence(Blacklight::HtmlHeadHelperBehavior) { raw(render_head_content) } %>
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="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
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 hide fade" tabindex="-1"></div>
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
- <!-- Top bar -->
38
- <div id="search-found" class="row hidden-phone">
39
- <%= Deprecation.silence(Blacklight::BlacklightHelperBehavior) { topbar_items.join('').html_safe } %>
40
- </div>
41
- <!-- /Top bar -->
42
- <div class="row">
43
- <div class="span12">
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>
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,4 +1,4 @@
1
- <div id="content" class="span9">
1
+ <div id="content" class="col-md-9">
2
2
  <h1><%= t('blacklight.saved_searches.title') %></h1>
3
3
 
4
4
  <%- if current_or_guest_user.blank? -%>
@@ -26,4 +26,4 @@
26
26
 
27
27
  <%- end -%>
28
28
 
29
- </div>
29
+ </div>
@@ -1,11 +1,9 @@
1
- <div id="content" class="span12">
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
- <p>
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-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>
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
- <div class="span3 nav-collapse">
18
- <%= render :partial=>'/user_util_links' %>
19
-
20
- </div>
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>
@@ -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
- s.rubyforge_project = "blacklight"
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", "~> 4.0"
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 "bootstrap-sass", ">= 2.2.0", "< 2.4"
31
- s.add_dependency "deprecation", "~> 0.1"
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 "rspec-rails", "~> 3.0"
34
- s.add_development_dependency "rspec-its"
35
- s.add_development_dependency 'engine_cart', "~> 2.0"
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="hide-text"> per page</span>'
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: