blacklight 3.0.0pre4 → 3.0.0pre6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/controllers/bookmarks_controller.rb +1 -1
- data/app/controllers/folder_controller.rb +1 -1
- data/app/helpers/blacklight_helper.rb +5 -4
- data/app/helpers/catalog_helper.rb +22 -18
- data/app/views/bookmarks/index.html.erb +1 -1
- data/app/views/catalog/_citation.html.erb +6 -1
- data/app/views/catalog/_results_pagination.html.erb +2 -7
- data/app/views/catalog/_sms_form.html.erb +1 -1
- data/app/views/catalog/index.html.erb +1 -1
- data/app/views/kaminari/blacklight/_first_page.html.erb +11 -0
- data/app/views/kaminari/blacklight/_gap.html.erb +8 -0
- data/app/views/kaminari/blacklight/_last_page.html.erb +11 -0
- data/app/views/kaminari/blacklight/_next_page.html.erb +11 -0
- data/app/views/kaminari/blacklight/_page.html.erb +12 -0
- data/app/views/kaminari/blacklight/_paginator.html.erb +23 -0
- data/app/views/kaminari/blacklight/_prev_page.html.erb +11 -0
- data/app/views/record_mailer/email_record.text.erb +5 -0
- data/app/views/record_mailer/sms_record.text.erb +4 -0
- data/blacklight.gemspec +4 -5
- data/config/locales/kaminari.yml +10 -0
- data/config/routes.rb +8 -46
- data/features/default_setup.feature +2 -1
- data/lib/blacklight.rb +5 -7
- data/lib/blacklight/catalog.rb +7 -24
- data/lib/blacklight/controller.rb +7 -1
- data/lib/blacklight/engine.rb +0 -11
- data/lib/blacklight/routes.rb +91 -0
- data/lib/blacklight/solr/document.rb +16 -1
- data/lib/blacklight/solr/document/marc_export.rb +174 -4
- data/lib/blacklight/solr_helper.rb +7 -2
- data/lib/generators/blacklight/blacklight_generator.rb +6 -0
- data/lib/generators/blacklight/templates/public/stylesheets/blacklight/blacklight.css +3 -3
- data/lib/railties/all_tests.rake +18 -6
- data/lib/railties/blacklight.rake +3 -2
- data/lib/railties/blacklight_cucumber.rake +1 -1
- data/lib/railties/blacklight_rspec.rake +1 -1
- data/lib/railties/solr_marc.rake +1 -1
- data/test_support/spec/controllers/application_controller_spec.rb +2 -2
- data/test_support/spec/controllers/catalog_controller_spec.rb +0 -24
- data/test_support/spec/helpers/blacklight_helper_spec.rb +4 -4
- data/test_support/spec/helpers/catalog_helper_spec.rb +22 -18
- data/test_support/spec/helpers/solr_helper_spec.rb +22 -5
- data/test_support/spec/lib/blacklight_solr_document_spec.rb +16 -9
- data/test_support/spec/lib/marc_export_spec.rb +308 -8
- data/test_support/spec/lib/tasks/solr_marc_task_spec.rb +1 -1
- data/test_support/spec/views/catalog/index.atom.builder_spec.rb +1 -1
- data/test_support/spec/views/catalog/show.html.erb_spec.rb +3 -3
- metadata +26 -18
- data/app/views/record_mailer/email_record.erb +0 -6
- data/app/views/record_mailer/sms_record.erb +0 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.0pre6
|
@@ -34,7 +34,7 @@ class BookmarksController < ApplicationController
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def index
|
37
|
-
@bookmarks = current_user.bookmarks.
|
37
|
+
@bookmarks = current_user.bookmarks.page(params[:page])
|
38
38
|
end
|
39
39
|
|
40
40
|
# For adding a single bookmark, suggest use PUT/#update to
|
@@ -83,7 +83,7 @@ module BlacklightHelper
|
|
83
83
|
def render_stylesheet_includes
|
84
84
|
return "".html_safe unless respond_to?(:stylesheet_links)
|
85
85
|
|
86
|
-
stylesheet_links.collect do |args|
|
86
|
+
stylesheet_links.uniq.collect do |args|
|
87
87
|
stylesheet_link_tag(*args)
|
88
88
|
end.join("\n").html_safe
|
89
89
|
end
|
@@ -97,7 +97,7 @@ module BlacklightHelper
|
|
97
97
|
def render_js_includes
|
98
98
|
return "".html_safe unless respond_to?(:javascript_includes)
|
99
99
|
|
100
|
-
javascript_includes.collect do |args|
|
100
|
+
javascript_includes.uniq.collect do |args|
|
101
101
|
javascript_include_tag(*args)
|
102
102
|
end.join("\n").html_safe
|
103
103
|
end
|
@@ -132,7 +132,7 @@ module BlacklightHelper
|
|
132
132
|
unless( options[:exclude].include?(format) ||
|
133
133
|
(options[:unique] && seen.include?(spec[:content_type]))
|
134
134
|
)
|
135
|
-
html << tag(:link, {:rel=>"alternate", :title=>format, :type => spec[:content_type], :href=> catalog_url(document
|
135
|
+
html << tag(:link, {:rel=>"alternate", :title=>format, :type => spec[:content_type], :href=> catalog_url(document.id, format)}) << "\n"
|
136
136
|
|
137
137
|
seen.add(spec[:content_type]) if options[:unique]
|
138
138
|
end
|
@@ -282,6 +282,7 @@ module BlacklightHelper
|
|
282
282
|
|
283
283
|
def render_field_value value=nil
|
284
284
|
value = [value] unless value.is_a? Array
|
285
|
+
value = value.collect { |x| x.respond_to?(:force_encoding) ? x.force_encoding("UTF-8") : x}
|
285
286
|
return value.map { |v| html_escape v }.join(field_value_separator).html_safe
|
286
287
|
end
|
287
288
|
|
@@ -444,7 +445,7 @@ module BlacklightHelper
|
|
444
445
|
# so we only need the +counter+ param here. We also need to know if we are viewing to document as part of search results.
|
445
446
|
def link_to_document(doc, opts={:label=>Blacklight.config[:index][:show_link].to_sym, :counter => nil, :results_view => true})
|
446
447
|
label = render_document_index_label doc, opts
|
447
|
-
link_to_with_data(label, catalog_path(doc
|
448
|
+
link_to_with_data(label, catalog_path(doc.id), {:method => :put, :class => label.parameterize, :data => opts}).html_safe
|
448
449
|
end
|
449
450
|
|
450
451
|
# link_back_to_catalog(:label=>'Back to Search')
|
@@ -1,33 +1,37 @@
|
|
1
1
|
module CatalogHelper
|
2
|
+
|
3
|
+
def paginate_rsolr_response(response, options = {}, &block)
|
4
|
+
per_page = response.rows
|
5
|
+
per_page = 1 if per_page < 1
|
6
|
+
current_page = (response.start / per_page).ceil + 1
|
7
|
+
num_pages = (response.total / per_page.to_f).ceil
|
8
|
+
|
9
|
+
paginate Struct.new(:current_page, :num_pages, :limit_value).new(current_page, num_pages, per_page), options, &block
|
10
|
+
end
|
11
|
+
|
2
12
|
#
|
3
13
|
# shortcut for built-in Rails helper, "number_with_delimiter"
|
4
14
|
#
|
5
15
|
def format_num(num); number_with_delimiter(num) end
|
6
16
|
|
7
17
|
#
|
8
|
-
# Displays the "showing X through Y of N" message.
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
# actual WillPaginate::Collection's have #total_entries. RSolr::Ext::Response
|
17
|
-
# has #total instead. We want this to work for both, to do what we want
|
18
|
-
# for RSolr, but not break WillPaginate's usual use.
|
19
|
-
total_hits = collection.respond_to?(:total_entries) ? collection.total_entries : collection.total
|
18
|
+
# Displays the "showing X through Y of N" message.
|
19
|
+
def render_pagination_info(response, options = {})
|
20
|
+
start = response.start + 1
|
21
|
+
per_page = response.rows
|
22
|
+
current_page = (response.start / per_page).ceil + 1
|
23
|
+
num_pages = (response.total / per_page.to_f).ceil
|
24
|
+
total_hits = response.total
|
20
25
|
|
21
26
|
start_num = format_num(start)
|
22
|
-
end_num = format_num(start +
|
27
|
+
end_num = format_num(start + response.docs.length - 1)
|
23
28
|
total_num = format_num(total_hits)
|
24
|
-
# end_num = total_num if total_hits < (start + collection.per_page - 1)
|
25
29
|
|
26
30
|
entry_name = options[:entry_name] ||
|
27
|
-
(
|
31
|
+
(response.empty?? 'entry' : response.docs.first.class.name.underscore.sub('_', ' '))
|
28
32
|
|
29
|
-
if
|
30
|
-
case
|
33
|
+
if num_pages < 2
|
34
|
+
case response.docs.length
|
31
35
|
when 0; "No #{h(entry_name.pluralize)} found".html_safe
|
32
36
|
when 1; "Displaying <b>1</b> #{h(entry_name)}".html_safe
|
33
37
|
else; "Displaying <b>all #{total_num}</b> #{entry_name.pluralize}".html_safe
|
@@ -53,7 +57,7 @@ module CatalogHelper
|
|
53
57
|
|
54
58
|
# Export to Refworks URL, called in _show_tools
|
55
59
|
def refworks_export_url(document = @document)
|
56
|
-
"http://www.refworks.com/express/expressimport.asp?vendor=#{CGI.escape(application_name)}&filter=MARC%20Format&encoding=65001&url=#{CGI.escape(catalog_path(document
|
60
|
+
"http://www.refworks.com/express/expressimport.asp?vendor=#{CGI.escape(application_name)}&filter=MARC%20Format&encoding=65001&url=#{CGI.escape(catalog_path(document.id, :format => 'refworks_marc_txt', :only_path => false))}"
|
57
61
|
end
|
58
62
|
|
59
63
|
def render_document_class(document = @document)
|
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
<%- else -%>
|
12
12
|
|
13
|
-
|
13
|
+
<%= paginate @bookmarks, :theme => 'blacklight' %>
|
14
14
|
<div id="userBookmarks">
|
15
15
|
<p>
|
16
16
|
<%= link_to "Clear Bookmarks", clear_bookmarks_path, :method => :delete, :confirm => "Clear your bookmarks?" %>
|
@@ -9,7 +9,12 @@
|
|
9
9
|
|
10
10
|
<% if document.respond_to?(:export_as_apa_citation_txt) %>
|
11
11
|
<h4>APA</h4>
|
12
|
-
<%= document.send(:export_as_apa_citation_txt).html_safe
|
12
|
+
<%= document.send(:export_as_apa_citation_txt).html_safe %><br/><br/>
|
13
13
|
<% end %>
|
14
14
|
|
15
|
+
<%- if document.respond_to?(:export_as_chicago_citation_txt) -%>
|
16
|
+
<h4>Chicago</h4>
|
17
|
+
<%= document.send(:export_as_chicago_citation_txt).html_safe %>
|
18
|
+
<%- end -%>
|
19
|
+
|
15
20
|
<% end %>
|
@@ -1,11 +1,6 @@
|
|
1
|
-
<% if @response.
|
1
|
+
<% if @response.total > 1 %>
|
2
2
|
<div class="pagination">
|
3
|
-
<% # will_paginate is called oddly because we want next/prev together
|
4
|
-
# at left for screen reader accessibility. We use CSS to restore
|
5
|
-
# a more conventional next-on-right.
|
6
|
-
%>
|
7
3
|
<h2>Results navigation</h2>
|
8
|
-
<%=
|
9
|
-
<%= will_paginate @response.docs, :next_label => '', :previous_label => '', :class => "page_links", :renderer => Blacklight::CommaLinkRenderer %>
|
4
|
+
<%= paginate_rsolr_response @response, :theme => 'blacklight' %>
|
10
5
|
</div>
|
11
6
|
<% end %>
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<%= render 'constraints', :localized_params=>params %>
|
16
16
|
|
17
17
|
<div class="pageEntriesInfo">
|
18
|
-
<%=
|
18
|
+
<%= render_pagination_info @response, :entry_name=>'item' %>
|
19
19
|
<%=link_to "start over", catalog_index_path, :id=>"startOverLink" %>
|
20
20
|
</div>
|
21
21
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%# Link to the "First" page
|
2
|
+
- available local variables
|
3
|
+
url: url to the first page
|
4
|
+
current_page: a page object for the currently displayed page
|
5
|
+
num_pages: total number of pages
|
6
|
+
per_page: number of items to fetch per page
|
7
|
+
remote: data-remote
|
8
|
+
-%>
|
9
|
+
<span class="first">
|
10
|
+
<%= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote %>
|
11
|
+
</span>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%# Non-link tag that stands for skipped pages...
|
2
|
+
- available local variables
|
3
|
+
current_page: a page object for the currently displayed page
|
4
|
+
num_pages: total number of pages
|
5
|
+
per_page: number of items to fetch per page
|
6
|
+
remote: data-remote
|
7
|
+
-%>
|
8
|
+
<span class="page gap"><%= raw(t 'views.pagination.truncate') %></span>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%# Link to the "Last" page
|
2
|
+
- available local variables
|
3
|
+
url: url to the last page
|
4
|
+
current_page: a page object for the currently displayed page
|
5
|
+
num_pages: total number of pages
|
6
|
+
per_page: number of items to fetch per page
|
7
|
+
remote: data-remote
|
8
|
+
-%>
|
9
|
+
<span class="last">
|
10
|
+
<%= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote} %>
|
11
|
+
</span>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%# Link to the "Next" page
|
2
|
+
- available local variables
|
3
|
+
url: url to the next page
|
4
|
+
current_page: a page object for the currently displayed page
|
5
|
+
num_pages: total number of pages
|
6
|
+
per_page: number of items to fetch per page
|
7
|
+
remote: data-remote
|
8
|
+
-%>
|
9
|
+
<span class="next next_page <%= 'disabled' if current_page.last? %>">
|
10
|
+
<%= link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote %>
|
11
|
+
</span>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<%# Link showing page number
|
2
|
+
- available local variables
|
3
|
+
page: a page object for "this" page
|
4
|
+
url: url to this page
|
5
|
+
current_page: a page object for the currently displayed page
|
6
|
+
num_pages: total number of pages
|
7
|
+
per_page: number of items to fetch per page
|
8
|
+
remote: data-remote
|
9
|
+
-%>
|
10
|
+
<span class="page<%= ' current' if page.current? %>">
|
11
|
+
<%= link_to_unless page.current?, page, url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
|
12
|
+
</span>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<%# The container tag
|
2
|
+
- available local variables
|
3
|
+
current_page: a page object for the currently displayed page
|
4
|
+
num_pages: total number of pages
|
5
|
+
per_page: number of items to fetch per page
|
6
|
+
remote: data-remote
|
7
|
+
paginator: the paginator that renders the pagination tags inside
|
8
|
+
-%>
|
9
|
+
<%= paginator.render do -%>
|
10
|
+
<nav class="pagination-container">
|
11
|
+
<%= prev_page_tag %>
|
12
|
+
<%= next_page_tag %>
|
13
|
+
<div class="page_links">
|
14
|
+
<% each_page do |page| -%>
|
15
|
+
<% if page.left_outer? || page.right_outer? || page.inside_window? -%>
|
16
|
+
<%= page_tag page %>
|
17
|
+
<% elsif !page.was_truncated? -%>
|
18
|
+
<%= gap_tag %>
|
19
|
+
<% end -%>
|
20
|
+
<% end -%>
|
21
|
+
</div>
|
22
|
+
</nav>
|
23
|
+
<% end -%>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%# Link to the "Previous" page
|
2
|
+
- available local variables
|
3
|
+
url: url to the previous page
|
4
|
+
current_page: a page object for the currently displayed page
|
5
|
+
num_pages: total number of pages
|
6
|
+
per_page: number of items to fetch per page
|
7
|
+
remote: data-remote
|
8
|
+
-%>
|
9
|
+
<span class="prev prev_page <%= 'disabled' if current_page.first? %>">
|
10
|
+
<%= link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote %>
|
11
|
+
</span>
|
data/blacklight.gemspec
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
|
-
require "lib/blacklight/version"
|
2
|
+
require File.join(File.dirname(__FILE__), "lib/blacklight/version")
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "blacklight"
|
6
6
|
s.version = Blacklight::VERSION
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
|
-
s.authors = ["
|
8
|
+
s.authors = ["Jonathan Rochkind", "Matt Mitchell", "Chris Beer", "Jessie Keck", "Jason Ronallo", "Vernon Chapman", "Mark A. Matienzo", "Dan Funk"]
|
9
9
|
s.email = ["blacklight-development@googlegroups.com"]
|
10
10
|
s.homepage = "http://projectblacklight.org/"
|
11
11
|
s.summary = "A next-geration Library Catalag for Universities"
|
@@ -30,11 +30,10 @@ Gem::Specification.new do |s|
|
|
30
30
|
# Required Gems
|
31
31
|
s.add_dependency "rails", "~> 3.0"
|
32
32
|
s.add_dependency "nokogiri", "~>1.5.0.beta.3" # XML Parser
|
33
|
-
s.add_dependency "marc", "~> 0.3" # Marc record parser
|
33
|
+
s.add_dependency "marc", "~> 0.4.3" # Marc record parser
|
34
34
|
s.add_dependency "rsolr", '~> 1.0' # Library for interacting with rSolr.
|
35
35
|
s.add_dependency "rsolr-ext", '~> 1.0' # extension to the above for some rails-ish behaviors - currently embedded in our solr document ojbect.
|
36
|
-
s.add_dependency "
|
37
|
-
|
36
|
+
s.add_dependency "kaminari" # the pagination (page 1,2,3, etc..) of our search results
|
38
37
|
|
39
38
|
# TESTING GEM REQUIREMENTS
|
40
39
|
# -------------------------------------------
|
data/config/routes.rb
CHANGED
@@ -1,54 +1,16 @@
|
|
1
1
|
Rails.application.routes.draw do
|
2
|
-
|
3
|
-
# Root context
|
4
|
-
root :to => "catalog#index"
|
5
|
-
|
6
2
|
# A Note on User Sessions:
|
7
3
|
# Blacklight expects the following named routes or at least the associated path helper methods to be defined.
|
8
4
|
# new_user_session (for logging in) - pages that require a log in will redirect users here.
|
9
5
|
# destroy_user_session (for logging out)
|
10
6
|
|
11
|
-
|
12
|
-
#
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
#
|
17
|
-
|
18
|
-
|
19
|
-
resources :folder, :only => [:index, :update, :destroy]
|
20
|
-
|
21
|
-
# Search History
|
22
|
-
match "search_history", :to => "search_history#index", :as => "search_history"
|
23
|
-
match "search_history/clear", :to => "search_history#clear", :as => "clear_search_history"
|
24
|
-
match "search_history/destroy/:id", :to => "search_history#destroy", :as => "delete_search"
|
25
|
-
|
26
|
-
# Saved Searches
|
27
|
-
match "saved_searches/clear", :to => "saved_searches#clear", :as => "clear_saved_searches"
|
28
|
-
match "saved_searches", :to => "saved_searches#index", :as => "saved_searches"
|
29
|
-
match "saved_searches/save/:id", :to => "saved_searches#save", :as => "save_search"
|
30
|
-
match "saved_searches/forget/:id", :to => "saved_searches#forget", :as => "forget_search"
|
31
|
-
|
32
|
-
# Catalog stuff.
|
33
|
-
match 'catalog/map', :as => "map_catalog"
|
34
|
-
match 'catalog/opensearch', :as => "opensearch_catalog"
|
35
|
-
match 'catalog/citation', :as => "citation_catalog"
|
36
|
-
match 'catalog/email', :as => "email_catalog"
|
37
|
-
match 'catalog/sms', :as => "sms_catalog"
|
38
|
-
match 'catalog/endnote', :as => "endnote_catalog"
|
39
|
-
match 'catalog/send_email_record', :as => "send_email_record_catalog"
|
40
|
-
match "catalog/facet/:id", :to => 'catalog#facet', :as => 'catalog_facet'
|
41
|
-
match 'catalog/unapi', :to => "catalog#unapi", :as => 'unapi'
|
42
|
-
resources :catalog, :only => [:index, :show, :update]
|
43
|
-
match 'catalog/:id/image', :to => "catalog#image"
|
44
|
-
match 'catalog/:id/status', :to => "catalog#status"
|
45
|
-
match 'catalog/:id/availability', :to => "catalog#availability"
|
46
|
-
match 'catalog/:id/librarian_view', :to => "catalog#librarian_view", :as => "librarian_view_catalog"
|
47
|
-
|
48
|
-
|
49
|
-
# Feedback
|
50
|
-
match "feedback", :to => "feedback#show"
|
51
|
-
match "feedback/complete", :to => "feedback#complete"
|
52
|
-
|
7
|
+
# Routes for the Blacklight application are defined in Blacklight::Routes
|
8
|
+
#
|
9
|
+
# These routes can be injected into your Rails application by adding
|
10
|
+
# Blacklight.add_routes(self)
|
11
|
+
# to the application's ./config/routes.rb. The injected routes can be
|
12
|
+
# customized as well, e.g.:
|
13
|
+
# Blacklight.add_routes(self, :only => [:bookmarks]) # will only look bookmark routes
|
14
|
+
# Blacklight.add_routes(self, :except => [:catalog]) # will not load catalog routes
|
53
15
|
end
|
54
16
|
|
@@ -28,6 +28,7 @@ Feature:
|
|
28
28
|
|
29
29
|
Then the file "app/models/user.rb" should not exist
|
30
30
|
And I run `rails generate blacklight -d`
|
31
|
+
Then the exit status should be 0
|
31
32
|
|
32
33
|
# Devise should now be installed.
|
33
34
|
Then a file named "app/models/user.rb" should exist
|
@@ -48,4 +49,4 @@ Feature:
|
|
48
49
|
Then the output should contain "0 failures"
|
49
50
|
And I remove the file "public/index.html"
|
50
51
|
And I run `rake blacklight:cucumber:with_solr`
|
51
|
-
Then the
|
52
|
+
Then the exit status should be 0
|
data/lib/blacklight.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'kaminari'
|
2
2
|
require 'marc'
|
3
3
|
require 'rsolr'
|
4
4
|
require 'rsolr-ext'
|
@@ -22,6 +22,8 @@ module Blacklight
|
|
22
22
|
autoload :Controller, 'blacklight/controller'
|
23
23
|
autoload :Catalog, 'blacklight/catalog'
|
24
24
|
|
25
|
+
autoload :Routes, 'blacklight/routes'
|
26
|
+
|
25
27
|
extend Configurable
|
26
28
|
extend SearchFields
|
27
29
|
|
@@ -41,12 +43,8 @@ module Blacklight
|
|
41
43
|
"#{::Rails.root.to_s}/config/solr.yml"
|
42
44
|
end
|
43
45
|
|
44
|
-
def self.
|
45
|
-
|
46
|
-
logger.info("BLACKLIGHT: running version #{Blacklight.version}")
|
47
|
-
logger.info("BLACKLIGHT: initialized with Blacklight.solr_config: #{Blacklight.solr_config.inspect}")
|
48
|
-
logger.info("BLACKLIGHT: initialized with Blacklight.solr: #{Blacklight.solr.inspect}")
|
49
|
-
logger.info("BLACKLIGHT: initialized with Blacklight.config: #{Blacklight.config.inspect}")
|
46
|
+
def self.add_routes(router, options = {})
|
47
|
+
Blacklight::Routes.new(router, options).draw
|
50
48
|
end
|
51
49
|
|
52
50
|
def self.solr
|