blacklight 3.0pre1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. data/.gitignore +17 -0
  2. data/.gitmodules +6 -0
  3. data/.yardopts +4 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE +14 -0
  6. data/README.rdoc +168 -0
  7. data/Rakefile +9 -0
  8. data/app/controllers/bookmarks_controller.rb +98 -0
  9. data/app/controllers/feedback_controller.rb +37 -0
  10. data/app/controllers/folder_controller.rb +49 -0
  11. data/app/controllers/saved_searches_controller.rb +45 -0
  12. data/app/controllers/search_history_controller.rb +25 -0
  13. data/app/helpers/blacklight_helper.rb +606 -0
  14. data/app/helpers/bookmarks_helper.rb +3 -0
  15. data/app/helpers/catalog_helper.rb +65 -0
  16. data/app/helpers/feedback_helper.rb +2 -0
  17. data/app/helpers/hash_as_hidden_fields.rb +57 -0
  18. data/app/helpers/render_constraints_helper.rb +120 -0
  19. data/app/helpers/saved_searches_helper.rb +2 -0
  20. data/app/helpers/search_history_helper.rb +2 -0
  21. data/app/models/bookmark.rb +6 -0
  22. data/app/models/record_mailer.rb +43 -0
  23. data/app/models/search.rb +19 -0
  24. data/app/views/_flash_msg.html.erb +6 -0
  25. data/app/views/_user_util_links.html.erb +13 -0
  26. data/app/views/bookmarks/index.html.erb +33 -0
  27. data/app/views/catalog/_bookmark_control.html.erb +25 -0
  28. data/app/views/catalog/_bookmark_form.html.erb +8 -0
  29. data/app/views/catalog/_citation.html.erb +15 -0
  30. data/app/views/catalog/_constraints.html.erb +7 -0
  31. data/app/views/catalog/_constraints_element.html.erb +33 -0
  32. data/app/views/catalog/_did_you_mean.html.erb +10 -0
  33. data/app/views/catalog/_document_list.html.erb +30 -0
  34. data/app/views/catalog/_email_form.html.erb +11 -0
  35. data/app/views/catalog/_facet_limit.html.erb +33 -0
  36. data/app/views/catalog/_facet_pagination.html.erb +28 -0
  37. data/app/views/catalog/_facets.html.erb +9 -0
  38. data/app/views/catalog/_folder_control.html.erb +12 -0
  39. data/app/views/catalog/_home.html.erb +6 -0
  40. data/app/views/catalog/_home_text.html.erb +6 -0
  41. data/app/views/catalog/_index_partials/_default.erb +11 -0
  42. data/app/views/catalog/_marc_view.html.erb +33 -0
  43. data/app/views/catalog/_opensearch_response_metadata.html.erb +3 -0
  44. data/app/views/catalog/_previous_next_doc.html.erb +6 -0
  45. data/app/views/catalog/_refworks_form.html.erb +7 -0
  46. data/app/views/catalog/_results_pagination.html.erb +11 -0
  47. data/app/views/catalog/_search_form.html.erb +14 -0
  48. data/app/views/catalog/_show_partials/_default.html.erb +9 -0
  49. data/app/views/catalog/_show_sidebar.html.erb +1 -0
  50. data/app/views/catalog/_show_tools.html.erb +46 -0
  51. data/app/views/catalog/_sms_form.html.erb +23 -0
  52. data/app/views/catalog/_solr_request.html.erb +5 -0
  53. data/app/views/catalog/_sort_and_per_page.html.erb +20 -0
  54. data/app/views/catalog/_unapi_microformat.html.erb +1 -0
  55. data/app/views/catalog/citation.html.erb +1 -0
  56. data/app/views/catalog/email.erb +1 -0
  57. data/app/views/catalog/endnote.endnote.erb +1 -0
  58. data/app/views/catalog/facet.html.erb +28 -0
  59. data/app/views/catalog/index.atom.builder +108 -0
  60. data/app/views/catalog/index.html.erb +37 -0
  61. data/app/views/catalog/index.rss.builder +19 -0
  62. data/app/views/catalog/librarian_view.html.erb +3 -0
  63. data/app/views/catalog/opensearch.json.erb +0 -0
  64. data/app/views/catalog/opensearch.xml.erb +11 -0
  65. data/app/views/catalog/send_email_record.erb +0 -0
  66. data/app/views/catalog/show.endnote.erb +1 -0
  67. data/app/views/catalog/show.html.erb +42 -0
  68. data/app/views/catalog/show.refworks.erb +1 -0
  69. data/app/views/catalog/sms.erb +1 -0
  70. data/app/views/catalog/unapi.xml.builder +6 -0
  71. data/app/views/feedback/complete.html.erb +3 -0
  72. data/app/views/feedback/show.html.erb +20 -0
  73. data/app/views/folder/_tools.html.erb +23 -0
  74. data/app/views/folder/index.html.erb +44 -0
  75. data/app/views/layouts/blacklight.html.erb +49 -0
  76. data/app/views/record_mailer/email_record.erb +6 -0
  77. data/app/views/record_mailer/sms_record.erb +4 -0
  78. data/app/views/saved_searches/index.html.erb +27 -0
  79. data/app/views/search_history/index.html.erb +23 -0
  80. data/blacklight.gemspec +50 -0
  81. data/config.ru +4 -0
  82. data/config/routes.rb +54 -0
  83. data/db/seeds.rb +7 -0
  84. data/features/generators.feature +77 -0
  85. data/features/support/aruba.rb +9 -0
  86. data/install.rb +0 -0
  87. data/install/solr.yml +8 -0
  88. data/lib/blacklight.rb +121 -0
  89. data/lib/blacklight/catalog.rb +311 -0
  90. data/lib/blacklight/comma_link_renderer.rb +27 -0
  91. data/lib/blacklight/configurable.rb +46 -0
  92. data/lib/blacklight/controller.rb +121 -0
  93. data/lib/blacklight/engine.rb +32 -0
  94. data/lib/blacklight/exceptions.rb +13 -0
  95. data/lib/blacklight/marc.rb +46 -0
  96. data/lib/blacklight/marc/citation.rb +251 -0
  97. data/lib/blacklight/search_fields.rb +107 -0
  98. data/lib/blacklight/solr.rb +7 -0
  99. data/lib/blacklight/solr/document.rb +239 -0
  100. data/lib/blacklight/solr/document/dublin_core.rb +40 -0
  101. data/lib/blacklight/solr/document/email.rb +15 -0
  102. data/lib/blacklight/solr/document/marc.rb +84 -0
  103. data/lib/blacklight/solr/document/marc_export.rb +430 -0
  104. data/lib/blacklight/solr/document/sms.rb +13 -0
  105. data/lib/blacklight/solr/facet_paginator.rb +93 -0
  106. data/lib/blacklight/solr_helper.rb +413 -0
  107. data/lib/blacklight/user.rb +55 -0
  108. data/lib/blacklight/version.rb +3 -0
  109. data/lib/colorize.rb +196 -0
  110. data/lib/generators/blacklight/blacklight_generator.rb +134 -0
  111. data/lib/generators/blacklight/templates/SolrMarc.jar +0 -0
  112. data/lib/generators/blacklight/templates/catalog_controller.rb +8 -0
  113. data/lib/generators/blacklight/templates/config/SolrMarc/config-test.properties +37 -0
  114. data/lib/generators/blacklight/templates/config/SolrMarc/config.properties +37 -0
  115. data/lib/generators/blacklight/templates/config/SolrMarc/index.properties +97 -0
  116. data/lib/generators/blacklight/templates/config/SolrMarc/index_scripts/dewey.bsh +47 -0
  117. data/lib/generators/blacklight/templates/config/SolrMarc/index_scripts/format.bsh +126 -0
  118. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/README_MAPS +1 -0
  119. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/callnumber_map.properties +407 -0
  120. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/composition_era_map.properties +56 -0
  121. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/country_map.properties +379 -0
  122. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/format_map.properties +50 -0
  123. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/instrument_map.properties +101 -0
  124. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/language_map.properties +490 -0
  125. data/lib/generators/blacklight/templates/config/blacklight_config.rb +245 -0
  126. data/lib/generators/blacklight/templates/config/solr.yml +6 -0
  127. data/lib/generators/blacklight/templates/migrations/add_user_types_to_bookmarks_searches.rb +11 -0
  128. data/lib/generators/blacklight/templates/migrations/create_bookmarks.rb +17 -0
  129. data/lib/generators/blacklight/templates/migrations/create_searches.rb +15 -0
  130. data/lib/generators/blacklight/templates/migrations/remove_editable_fields_from_bookmarks.rb +11 -0
  131. data/lib/generators/blacklight/templates/public/images/blacklight/bg.png +0 -0
  132. data/lib/generators/blacklight/templates/public/images/blacklight/border.png +0 -0
  133. data/lib/generators/blacklight/templates/public/images/blacklight/bul_sq_gry.gif +0 -0
  134. data/lib/generators/blacklight/templates/public/images/blacklight/checkmark.gif +0 -0
  135. data/lib/generators/blacklight/templates/public/images/blacklight/logo.png +0 -0
  136. data/lib/generators/blacklight/templates/public/images/blacklight/magnifying_glass.gif +0 -0
  137. data/lib/generators/blacklight/templates/public/images/blacklight/remove.gif +0 -0
  138. data/lib/generators/blacklight/templates/public/images/blacklight/separator.gif +0 -0
  139. data/lib/generators/blacklight/templates/public/images/blacklight/start_over.gif +0 -0
  140. data/lib/generators/blacklight/templates/public/javascripts/blacklight.js +485 -0
  141. data/lib/generators/blacklight/templates/public/javascripts/jquery-1.4.2.min.js +154 -0
  142. data/lib/generators/blacklight/templates/public/javascripts/jquery-ui-1.8.1.custom.min.js +756 -0
  143. data/lib/generators/blacklight/templates/public/stylesheets/blacklight.css +487 -0
  144. data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  145. data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  146. data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  147. data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  148. data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  149. data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  150. data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_gloss-wave_35_558fd0_500x100.png +0 -0
  151. data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  152. data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  153. data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  154. data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  155. data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-icons_2e4f81_256x240.png +0 -0
  156. data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  157. data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  158. data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/jquery-ui-1.8.1.custom.css +486 -0
  159. data/lib/generators/blacklight/templates/public/stylesheets/yui.css +31 -0
  160. data/lib/generators/blacklight/templates/solr_document.rb +30 -0
  161. data/lib/railties/blacklight.rake +66 -0
  162. data/lib/railties/cucumber.rake +53 -0
  163. data/lib/railties/rspec.rake +188 -0
  164. data/lib/railties/solr_marc.rake +148 -0
  165. data/lib/railties/test_solr_server.rb +130 -0
  166. data/spec/helpers/catalog_helper_spec.rb +111 -0
  167. data/spec/views/catalog/_sms_form.html.erb_spec.rb +19 -0
  168. data/tasks/blacklight_tasks.rake +4 -0
  169. data/uninstall.rb +1 -0
  170. metadata +431 -0
@@ -0,0 +1,130 @@
1
+ # The ASF licenses this file to You under the Apache License, Version 2.0
2
+ # (the "License"); you may not use this file except in compliance with
3
+ # the License. You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+
13
+ # A singleton class for starting/stopping a Solr server for testing purposes
14
+ # The behavior of TestSolrServer can be modified prior to start() by changing
15
+ # port, solr_home, and quiet properties.
16
+
17
+ class TestSolrServer
18
+ require 'singleton'
19
+ include Singleton
20
+ attr_accessor :port, :jetty_home, :solr_home, :quiet
21
+
22
+ # configure the singleton with some defaults
23
+ def initialize
24
+ @pid = nil
25
+ end
26
+
27
+ def self.wrap(params = {})
28
+ error = false
29
+ solr_server = self.instance
30
+ solr_server.quiet = params[:quiet] || true
31
+ solr_server.jetty_home = params[:jetty_home]
32
+ solr_server.solr_home = params[:solr_home]
33
+ solr_server.port = params[:jetty_port] || 8888
34
+ begin
35
+ puts "starting solr server on #{RUBY_PLATFORM}"
36
+ solr_server.start
37
+ sleep params[:startup_wait] || 5
38
+ yield
39
+ rescue
40
+ error = $!
41
+ puts "*** Solr/Jetty Startup Error: #{error}"
42
+ ensure
43
+ puts "stopping solr server"
44
+ solr_server.stop
45
+ end
46
+
47
+ return error
48
+ end
49
+
50
+ def jetty_command
51
+ "java -Djetty.port=#{@port} -Dsolr.solr.home=#{@solr_home} -jar start.jar"
52
+ end
53
+
54
+ def start
55
+ puts "jetty_home: #{@jetty_home}"
56
+ puts "solr_home: #{@solr_home}"
57
+ puts "jetty_command: #{jetty_command}"
58
+ platform_specific_start
59
+ end
60
+
61
+ def stop
62
+ platform_specific_stop
63
+ end
64
+
65
+ if RUBY_PLATFORM =~ /mswin32/
66
+ require 'win32/process'
67
+
68
+ # start the solr server
69
+ def platform_specific_start
70
+ Dir.chdir(@jetty_home) do
71
+ @pid = Process.create(
72
+ :app_name => jetty_command,
73
+ :creation_flags => Process::DETACHED_PROCESS,
74
+ :process_inherit => false,
75
+ :thread_inherit => true,
76
+ :cwd => "#{@jetty_home}"
77
+ ).process_id
78
+ end
79
+ end
80
+
81
+ # stop a running solr server
82
+ def platform_specific_stop
83
+ Process.kill(1, @pid)
84
+ Process.wait
85
+ end
86
+ else # Not Windows
87
+
88
+ def jruby_raise_error?
89
+ raise 'JRuby requires that you start solr manually, then run "rake spec" or "rake features"' if defined?(JRUBY_VERSION)
90
+ end
91
+
92
+ # start the solr server
93
+ def platform_specific_start
94
+
95
+ jruby_raise_error?
96
+
97
+ puts self.inspect
98
+ Dir.chdir(@jetty_home) do
99
+ @pid = fork do
100
+ STDERR.close if @quiet
101
+ exec jetty_command
102
+ end
103
+ end
104
+ end
105
+
106
+ # stop a running solr server
107
+ def platform_specific_stop
108
+ jruby_raise_error?
109
+ Process.kill('TERM', @pid)
110
+ Process.wait
111
+ end
112
+ end
113
+
114
+ end
115
+ #
116
+ # puts "hello"
117
+ # SOLR_PARAMS = {
118
+ # :quiet => ENV['SOLR_CONSOLE'] ? false : true,
119
+ # :jetty_home => ENV['SOLR_JETTY_HOME'] || File.expand_path('../../jetty'),
120
+ # :jetty_port => ENV['SOLR_JETTY_PORT'] || 8888,
121
+ # :solr_home => ENV['SOLR_HOME'] || File.expand_path('test')
122
+ # }
123
+ #
124
+ # # wrap functional tests with a test-specific Solr server
125
+ # got_error = TestSolrServer.wrap(SOLR_PARAMS) do
126
+ # puts `ps aux | grep start.jar`
127
+ # end
128
+ #
129
+ # raise "test failures" if got_error
130
+ #
@@ -0,0 +1,111 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+ describe CatalogHelper do
3
+ include CatalogHelper
4
+
5
+ class MockResponse
6
+ attr_reader :total
7
+
8
+ def initialize args
9
+ @total = args[:total]
10
+ end
11
+ end
12
+
13
+ # In case RSolr's duck typing diverages from WillPaginate::Collection
14
+ class MockCollection
15
+ attr_reader :current_page, :per_page
16
+
17
+ def initialize args
18
+ @current_page= args[:current_page] || 1
19
+ @total = args[:total] || 0
20
+ @per_page = args[:per_page] || 10
21
+ end
22
+
23
+ def previous_page
24
+ [@current_page - 1, 1].max
25
+ end
26
+
27
+ def next_page
28
+ @current_page + 1
29
+ end
30
+
31
+ def total_pages
32
+ (@total.to_f / @per_page).ceil
33
+ end
34
+
35
+ def size
36
+ return @per_page unless @current_page * @per_page > @total
37
+ @total % @per_page
38
+ end
39
+ end
40
+
41
+ def mock_collection args
42
+ current_page = args[:current_page] || 1
43
+ per_page = args[:per_page] || 10
44
+ total = args[:total]
45
+ arr = (1..total).to_a
46
+
47
+ page_results = WillPaginate::Collection.create(current_page, per_page, total) do |pager|
48
+ pager.replace(arr)
49
+ end
50
+ end
51
+
52
+ describe "page_entries_info" do
53
+ before(:all) do
54
+ end
55
+
56
+ it "with no results" do
57
+ @response = MockResponse.new :total => 0
58
+ @collection = MockCollection.new :total => @response.total
59
+
60
+ html = page_entries_info(@collection, { :entry_name => 'entry_name' })
61
+ html.should == "No entry_names found"
62
+ html.html_safe?.should == true
63
+ end
64
+
65
+ it "with a single result" do
66
+ @response = MockResponse.new :total => 1
67
+ @collection = MockCollection.new :total => @response.total
68
+
69
+ html = page_entries_info(@collection, { :entry_name => 'entry_name' })
70
+ html.should == "Displaying <b>1</b> entry_name"
71
+ html.html_safe?.should == true
72
+ end
73
+
74
+ it "with a single page of results" do
75
+ @response = MockResponse.new :total => 7
76
+ @collection = MockCollection.new :total => @response.total
77
+
78
+ html = page_entries_info(@collection, { :entry_name => 'entry_name' })
79
+ html.should == "Displaying <b>all 7</b> entry_names"
80
+ html.html_safe?.should == true
81
+ end
82
+
83
+ it "on the first page of multiple pages of results" do
84
+ @response = MockResponse.new :total => 15
85
+ @collection = MockCollection.new :total => @response.total, :per_page => 10
86
+
87
+ html = page_entries_info(@collection, { :entry_name => 'entry_name' })
88
+ html.should == "Displaying entry_names <b>1 - 10</b> of <b>15</b>"
89
+ html.html_safe?.should == true
90
+ end
91
+
92
+ it "on the second page of multiple pages of results" do
93
+ @response = MockResponse.new :total => 47
94
+ @collection = MockCollection.new :total => @response.total, :per_page => 10, :current_page => 2
95
+
96
+ html = page_entries_info(@collection, { :entry_name => 'entry_name' })
97
+ html.should == "Displaying entry_names <b>11 - 20</b> of <b>47</b>"
98
+ html.html_safe?.should == true
99
+ end
100
+
101
+ it "on the last page of results" do
102
+ @response = MockResponse.new :total => 47
103
+ @collection = MockCollection.new :total => @response.total, :per_page => 10, :current_page => 5
104
+
105
+ html = page_entries_info(@collection, { :entry_name => 'entry_name' })
106
+ html.should == "Displaying entry_names <b>41 - 47</b> of <b>47</b>"
107
+ html.html_safe?.should == true
108
+ end
109
+
110
+ end
111
+ end
@@ -0,0 +1,19 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
2
+
3
+ describe "catalog/_sms_form.html.erb" do
4
+ before do
5
+ assigns[:documents] = [mock("document", :get => "fake_value")]
6
+ render :partial => "catalog/sms_form.html.erb"
7
+ end
8
+ describe "SMS form carrier select input" do
9
+ it "should have the prompt value first" do
10
+ response.should have_tag("option:nth-child(1)[value='']")
11
+ end
12
+ #it "should have other values alphabetized" do
13
+ # sorry can't figure out how to get rspec to do this
14
+ #end
15
+
16
+ end
17
+
18
+
19
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :blacklight do
3
+ # # Task goes here
4
+ # end
@@ -0,0 +1 @@
1
+ # Uninstall hook code here
metadata ADDED
@@ -0,0 +1,431 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: blacklight
3
+ version: !ruby/object:Gem::Version
4
+ hash: 1923831915
5
+ prerelease: 3
6
+ segments:
7
+ - 3
8
+ - 0
9
+ - pre
10
+ - 1
11
+ version: 3.0pre1
12
+ platform: ruby
13
+ authors:
14
+ - jrochkind
15
+ - Matt Mitchell
16
+ - Chris Beer
17
+ - Jessie Keck
18
+ - Jason Ronallo
19
+ - Vernon Chapman
20
+ - Marck A. Matienzo
21
+ autorequire:
22
+ bindir: bin
23
+ cert_chain: []
24
+
25
+ date: 2011-04-26 00:00:00 -04:00
26
+ default_executable:
27
+ dependencies:
28
+ - !ruby/object:Gem::Dependency
29
+ name: unicode
30
+ prerelease: false
31
+ requirement: &id001 !ruby/object:Gem::Requirement
32
+ none: false
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ hash: 3
37
+ segments:
38
+ - 0
39
+ version: "0"
40
+ type: :runtime
41
+ version_requirements: *id001
42
+ - !ruby/object:Gem::Dependency
43
+ name: rails
44
+ prerelease: false
45
+ requirement: &id002 !ruby/object:Gem::Requirement
46
+ none: false
47
+ requirements:
48
+ - - "="
49
+ - !ruby/object:Gem::Version
50
+ hash: 11
51
+ segments:
52
+ - 3
53
+ - 0
54
+ - 6
55
+ version: 3.0.6
56
+ type: :runtime
57
+ version_requirements: *id002
58
+ - !ruby/object:Gem::Dependency
59
+ name: nokogiri
60
+ prerelease: false
61
+ requirement: &id003 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ~>
65
+ - !ruby/object:Gem::Version
66
+ hash: 62196437
67
+ segments:
68
+ - 1
69
+ - 5
70
+ - 0
71
+ - beta
72
+ - 3
73
+ version: 1.5.0.beta.3
74
+ type: :runtime
75
+ version_requirements: *id003
76
+ - !ruby/object:Gem::Dependency
77
+ name: marc
78
+ prerelease: false
79
+ requirement: &id004 !ruby/object:Gem::Requirement
80
+ none: false
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ hash: 3
85
+ segments:
86
+ - 0
87
+ version: "0"
88
+ type: :runtime
89
+ version_requirements: *id004
90
+ - !ruby/object:Gem::Dependency
91
+ name: rsolr
92
+ prerelease: false
93
+ requirement: &id005 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - "="
97
+ - !ruby/object:Gem::Version
98
+ hash: 23
99
+ segments:
100
+ - 1
101
+ - 0
102
+ - 0
103
+ version: 1.0.0
104
+ type: :runtime
105
+ version_requirements: *id005
106
+ - !ruby/object:Gem::Dependency
107
+ name: rsolr-ext
108
+ prerelease: false
109
+ requirement: &id006 !ruby/object:Gem::Requirement
110
+ none: false
111
+ requirements:
112
+ - - "="
113
+ - !ruby/object:Gem::Version
114
+ hash: 23
115
+ segments:
116
+ - 1
117
+ - 0
118
+ - 0
119
+ version: 1.0.0
120
+ type: :runtime
121
+ version_requirements: *id006
122
+ - !ruby/object:Gem::Dependency
123
+ name: will_paginate
124
+ prerelease: false
125
+ requirement: &id007 !ruby/object:Gem::Requirement
126
+ none: false
127
+ requirements:
128
+ - - "="
129
+ - !ruby/object:Gem::Version
130
+ hash: 1923831917
131
+ segments:
132
+ - 3
133
+ - 0
134
+ - pre
135
+ - 2
136
+ version: 3.0.pre2
137
+ type: :runtime
138
+ version_requirements: *id007
139
+ description: "Blacklight is a free and open source ruby-on-rails based discovery interface (a.k.a. \xE2\x80\x9Cnext-generation catalog\xE2\x80\x9D) especially optimized for heterogeneous collections. You can use it as a library catalog, as a front end for a digital repository, or as a single-search interface to aggregate digital content that would otherwise be siloed."
140
+ email:
141
+ - blacklight-development@googlegroups.com
142
+ executables: []
143
+
144
+ extensions: []
145
+
146
+ extra_rdoc_files: []
147
+
148
+ files:
149
+ - .gitignore
150
+ - .gitmodules
151
+ - .yardopts
152
+ - Gemfile
153
+ - LICENSE
154
+ - README.rdoc
155
+ - Rakefile
156
+ - app/controllers/bookmarks_controller.rb
157
+ - app/controllers/feedback_controller.rb
158
+ - app/controllers/folder_controller.rb
159
+ - app/controllers/saved_searches_controller.rb
160
+ - app/controllers/search_history_controller.rb
161
+ - app/helpers/blacklight_helper.rb
162
+ - app/helpers/bookmarks_helper.rb
163
+ - app/helpers/catalog_helper.rb
164
+ - app/helpers/feedback_helper.rb
165
+ - app/helpers/hash_as_hidden_fields.rb
166
+ - app/helpers/render_constraints_helper.rb
167
+ - app/helpers/saved_searches_helper.rb
168
+ - app/helpers/search_history_helper.rb
169
+ - app/models/bookmark.rb
170
+ - app/models/record_mailer.rb
171
+ - app/models/search.rb
172
+ - app/views/_flash_msg.html.erb
173
+ - app/views/_user_util_links.html.erb
174
+ - app/views/bookmarks/index.html.erb
175
+ - app/views/catalog/_bookmark_control.html.erb
176
+ - app/views/catalog/_bookmark_form.html.erb
177
+ - app/views/catalog/_citation.html.erb
178
+ - app/views/catalog/_constraints.html.erb
179
+ - app/views/catalog/_constraints_element.html.erb
180
+ - app/views/catalog/_did_you_mean.html.erb
181
+ - app/views/catalog/_document_list.html.erb
182
+ - app/views/catalog/_email_form.html.erb
183
+ - app/views/catalog/_facet_limit.html.erb
184
+ - app/views/catalog/_facet_pagination.html.erb
185
+ - app/views/catalog/_facets.html.erb
186
+ - app/views/catalog/_folder_control.html.erb
187
+ - app/views/catalog/_home.html.erb
188
+ - app/views/catalog/_home_text.html.erb
189
+ - app/views/catalog/_index_partials/_default.erb
190
+ - app/views/catalog/_marc_view.html.erb
191
+ - app/views/catalog/_opensearch_response_metadata.html.erb
192
+ - app/views/catalog/_previous_next_doc.html.erb
193
+ - app/views/catalog/_refworks_form.html.erb
194
+ - app/views/catalog/_results_pagination.html.erb
195
+ - app/views/catalog/_search_form.html.erb
196
+ - app/views/catalog/_show_partials/_default.html.erb
197
+ - app/views/catalog/_show_sidebar.html.erb
198
+ - app/views/catalog/_show_tools.html.erb
199
+ - app/views/catalog/_sms_form.html.erb
200
+ - app/views/catalog/_solr_request.html.erb
201
+ - app/views/catalog/_sort_and_per_page.html.erb
202
+ - app/views/catalog/_unapi_microformat.html.erb
203
+ - app/views/catalog/citation.html.erb
204
+ - app/views/catalog/email.erb
205
+ - app/views/catalog/endnote.endnote.erb
206
+ - app/views/catalog/facet.html.erb
207
+ - app/views/catalog/index.atom.builder
208
+ - app/views/catalog/index.html.erb
209
+ - app/views/catalog/index.rss.builder
210
+ - app/views/catalog/librarian_view.html.erb
211
+ - app/views/catalog/opensearch.json.erb
212
+ - app/views/catalog/opensearch.xml.erb
213
+ - app/views/catalog/send_email_record.erb
214
+ - app/views/catalog/show.endnote.erb
215
+ - app/views/catalog/show.html.erb
216
+ - app/views/catalog/show.refworks.erb
217
+ - app/views/catalog/sms.erb
218
+ - app/views/catalog/unapi.xml.builder
219
+ - app/views/feedback/complete.html.erb
220
+ - app/views/feedback/show.html.erb
221
+ - app/views/folder/_tools.html.erb
222
+ - app/views/folder/index.html.erb
223
+ - app/views/layouts/blacklight.html.erb
224
+ - app/views/record_mailer/email_record.erb
225
+ - app/views/record_mailer/sms_record.erb
226
+ - app/views/saved_searches/index.html.erb
227
+ - app/views/search_history/index.html.erb
228
+ - blacklight.gemspec
229
+ - config.ru
230
+ - config/routes.rb
231
+ - db/seeds.rb
232
+ - features/generators.feature
233
+ - features/support/aruba.rb
234
+ - install.rb
235
+ - install/solr.yml
236
+ - lib/.DS_Store
237
+ - lib/blacklight.rb
238
+ - lib/blacklight/catalog.rb
239
+ - lib/blacklight/comma_link_renderer.rb
240
+ - lib/blacklight/configurable.rb
241
+ - lib/blacklight/controller.rb
242
+ - lib/blacklight/engine.rb
243
+ - lib/blacklight/exceptions.rb
244
+ - lib/blacklight/marc.rb
245
+ - lib/blacklight/marc/citation.rb
246
+ - lib/blacklight/search_fields.rb
247
+ - lib/blacklight/solr.rb
248
+ - lib/blacklight/solr/document.rb
249
+ - lib/blacklight/solr/document/dublin_core.rb
250
+ - lib/blacklight/solr/document/email.rb
251
+ - lib/blacklight/solr/document/marc.rb
252
+ - lib/blacklight/solr/document/marc_export.rb
253
+ - lib/blacklight/solr/document/sms.rb
254
+ - lib/blacklight/solr/facet_paginator.rb
255
+ - lib/blacklight/solr_helper.rb
256
+ - lib/blacklight/user.rb
257
+ - lib/blacklight/version.rb
258
+ - lib/colorize.rb
259
+ - lib/generators/blacklight/blacklight_generator.rb
260
+ - lib/generators/blacklight/templates/SolrMarc.jar
261
+ - lib/generators/blacklight/templates/catalog_controller.rb
262
+ - lib/generators/blacklight/templates/config/SolrMarc/config-test.properties
263
+ - lib/generators/blacklight/templates/config/SolrMarc/config.properties
264
+ - lib/generators/blacklight/templates/config/SolrMarc/index.properties
265
+ - lib/generators/blacklight/templates/config/SolrMarc/index_scripts/dewey.bsh
266
+ - lib/generators/blacklight/templates/config/SolrMarc/index_scripts/format.bsh
267
+ - lib/generators/blacklight/templates/config/SolrMarc/translation_maps/README_MAPS
268
+ - lib/generators/blacklight/templates/config/SolrMarc/translation_maps/callnumber_map.properties
269
+ - lib/generators/blacklight/templates/config/SolrMarc/translation_maps/composition_era_map.properties
270
+ - lib/generators/blacklight/templates/config/SolrMarc/translation_maps/country_map.properties
271
+ - lib/generators/blacklight/templates/config/SolrMarc/translation_maps/format_map.properties
272
+ - lib/generators/blacklight/templates/config/SolrMarc/translation_maps/instrument_map.properties
273
+ - lib/generators/blacklight/templates/config/SolrMarc/translation_maps/language_map.properties
274
+ - lib/generators/blacklight/templates/config/blacklight_config.rb
275
+ - lib/generators/blacklight/templates/config/solr.yml
276
+ - lib/generators/blacklight/templates/migrations/add_user_types_to_bookmarks_searches.rb
277
+ - lib/generators/blacklight/templates/migrations/create_bookmarks.rb
278
+ - lib/generators/blacklight/templates/migrations/create_searches.rb
279
+ - lib/generators/blacklight/templates/migrations/remove_editable_fields_from_bookmarks.rb
280
+ - lib/generators/blacklight/templates/public/images/blacklight/bg.png
281
+ - lib/generators/blacklight/templates/public/images/blacklight/border.png
282
+ - lib/generators/blacklight/templates/public/images/blacklight/bul_sq_gry.gif
283
+ - lib/generators/blacklight/templates/public/images/blacklight/checkmark.gif
284
+ - lib/generators/blacklight/templates/public/images/blacklight/logo.png
285
+ - lib/generators/blacklight/templates/public/images/blacklight/magnifying_glass.gif
286
+ - lib/generators/blacklight/templates/public/images/blacklight/remove.gif
287
+ - lib/generators/blacklight/templates/public/images/blacklight/separator.gif
288
+ - lib/generators/blacklight/templates/public/images/blacklight/start_over.gif
289
+ - lib/generators/blacklight/templates/public/javascripts/blacklight.js
290
+ - lib/generators/blacklight/templates/public/javascripts/jquery-1.4.2.min.js
291
+ - lib/generators/blacklight/templates/public/javascripts/jquery-ui-1.8.1.custom.min.js
292
+ - lib/generators/blacklight/templates/public/stylesheets/blacklight.css
293
+ - lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
294
+ - lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
295
+ - lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
296
+ - lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
297
+ - lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
298
+ - lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
299
+ - lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_gloss-wave_35_558fd0_500x100.png
300
+ - lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
301
+ - lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
302
+ - lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-icons_222222_256x240.png
303
+ - lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-icons_228ef1_256x240.png
304
+ - lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-icons_2e4f81_256x240.png
305
+ - lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffd27a_256x240.png
306
+ - lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffffff_256x240.png
307
+ - lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/jquery-ui-1.8.1.custom.css
308
+ - lib/generators/blacklight/templates/public/stylesheets/yui.css
309
+ - lib/generators/blacklight/templates/solr_document.rb
310
+ - lib/railties/blacklight.rake
311
+ - lib/railties/cucumber.rake
312
+ - lib/railties/rspec.rake
313
+ - lib/railties/solr_marc.rake
314
+ - lib/railties/test_solr_server.rb
315
+ - spec/helpers/catalog_helper_spec.rb
316
+ - spec/views/catalog/_sms_form.html.erb_spec.rb
317
+ - tasks/blacklight_tasks.rake
318
+ - test_app/.gitignore
319
+ - test_app/.rspec
320
+ - test_app/features/bookmarks.feature
321
+ - test_app/features/did_you_mean.feature
322
+ - test_app/features/folder.feature
323
+ - test_app/features/librarian_view.feature
324
+ - test_app/features/record_view.feature
325
+ - test_app/features/saved_searches.feature
326
+ - test_app/features/search.feature
327
+ - test_app/features/search_filters.feature
328
+ - test_app/features/search_history.feature
329
+ - test_app/features/search_results.feature
330
+ - test_app/features/search_sort.feature
331
+ - test_app/features/step_definitions/bookmarks_steps.rb
332
+ - test_app/features/step_definitions/error_steps.rb
333
+ - test_app/features/step_definitions/folder_steps.rb
334
+ - test_app/features/step_definitions/general_steps.rb
335
+ - test_app/features/step_definitions/record_view_steps.rb
336
+ - test_app/features/step_definitions/saved_searches_steps.rb
337
+ - test_app/features/step_definitions/search_facets_steps.rb
338
+ - test_app/features/step_definitions/search_history_steps.rb
339
+ - test_app/features/step_definitions/search_result_steps.rb
340
+ - test_app/features/step_definitions/search_steps.rb
341
+ - test_app/features/step_definitions/user_steps.rb
342
+ - test_app/features/step_definitions/web_steps.rb
343
+ - test_app/features/support/env.rb
344
+ - test_app/features/support/paths.rb
345
+ - test_app/features/unapi.feature
346
+ - test_app/spec/controllers/application_controller_spec.rb
347
+ - test_app/spec/controllers/catalog_controller_spec.rb
348
+ - test_app/spec/controllers/folder_controller_spec.rb
349
+ - test_app/spec/controllers/search_history_controller_spec.rb
350
+ - test_app/spec/data/sample_docs.yml
351
+ - test_app/spec/data/test_data.utf8.mrc
352
+ - test_app/spec/helpers/blacklight_helper_spec.rb
353
+ - test_app/spec/helpers/hash_as_hidden_fields_spec.rb
354
+ - test_app/spec/helpers/render_constraints_helper_spec.rb
355
+ - test_app/spec/helpers/search_history_helper_spec.rb
356
+ - test_app/spec/helpers/solr_helper_spec.rb
357
+ - test_app/spec/lib/blacklight_email_spec.rb
358
+ - test_app/spec/lib/blacklight_marc_spec.rb
359
+ - test_app/spec/lib/blacklight_sms_spec.rb
360
+ - test_app/spec/lib/blacklight_solr_document_dublin_core_spec.rb
361
+ - test_app/spec/lib/blacklight_solr_document_marc_spec.rb
362
+ - test_app/spec/lib/blacklight_solr_document_spec.rb
363
+ - test_app/spec/lib/blacklight_spec.rb
364
+ - test_app/spec/lib/configurable_spec.rb
365
+ - test_app/spec/lib/facet_paginator_spec.rb
366
+ - test_app/spec/lib/marc_citation_spec.rb
367
+ - test_app/spec/lib/marc_export_spec.rb
368
+ - test_app/spec/lib/search_fields_spec.rb
369
+ - test_app/spec/lib/tasks/blacklight_task_spec.rb
370
+ - test_app/spec/lib/tasks/solr_marc_task_spec.rb
371
+ - test_app/spec/lib/test_solr_server.rb
372
+ - test_app/spec/models/bookmark_spec.rb
373
+ - test_app/spec/models/record_mailer_spec.rb
374
+ - test_app/spec/models/search_spec.rb
375
+ - test_app/spec/models/solr_docment_spec.rb
376
+ - test_app/spec/rcov.opts
377
+ - test_app/spec/spec.opts
378
+ - test_app/spec/spec_helper.rb
379
+ - test_app/spec/support/action_controller.rb
380
+ - test_app/spec/support/assert_difference.rb
381
+ - test_app/spec/support/include_text.rb
382
+ - test_app/spec/views/catalog/_constraints_element.html.erb_spec.rb
383
+ - test_app/spec/views/catalog/_document_list.html.erb_spec.rb
384
+ - test_app/spec/views/catalog/_facets.html.erb_spec.rb
385
+ - test_app/spec/views/catalog/_index_partials/_default.erb_spec.rb
386
+ - test_app/spec/views/catalog/_show_partials/_default.html.erb_spec.rb
387
+ - test_app/spec/views/catalog/index.atom.builder_spec.rb
388
+ - test_app/spec/views/catalog/show.html.erb_spec.rb
389
+ - test_app/spec/views/catalog/unapi.xml.builder_spec.rb
390
+ - uninstall.rb
391
+ has_rdoc: true
392
+ homepage: http://projectblacklight.org/
393
+ licenses: []
394
+
395
+ post_install_message:
396
+ rdoc_options: []
397
+
398
+ require_paths:
399
+ - lib
400
+ required_ruby_version: !ruby/object:Gem::Requirement
401
+ none: false
402
+ requirements:
403
+ - - ">="
404
+ - !ruby/object:Gem::Version
405
+ hash: 3
406
+ segments:
407
+ - 0
408
+ version: "0"
409
+ required_rubygems_version: !ruby/object:Gem::Requirement
410
+ none: false
411
+ requirements:
412
+ - - ">"
413
+ - !ruby/object:Gem::Version
414
+ hash: 25
415
+ segments:
416
+ - 1
417
+ - 3
418
+ - 1
419
+ version: 1.3.1
420
+ requirements: []
421
+
422
+ rubyforge_project: blacklight
423
+ rubygems_version: 1.5.1
424
+ signing_key:
425
+ specification_version: 3
426
+ summary: A next-geration Library Catalag for Universities
427
+ test_files:
428
+ - features/generators.feature
429
+ - features/support/aruba.rb
430
+ - spec/helpers/catalog_helper_spec.rb
431
+ - spec/views/catalog/_sms_form.html.erb_spec.rb