blacklight-marc 6.0.0 → 7.0.0
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.
- checksums.yaml +5 -5
- data/.gitignore +1 -2
- data/.solr_wrapper.yaml +5 -0
- data/.travis.yml +9 -11
- data/Gemfile +30 -14
- data/README.md +29 -8
- data/Rakefile +8 -20
- data/app/assets/stylesheets/blacklight_marc.scss +4 -6
- data/app/helpers/blacklight_marc_helper.rb +5 -4
- data/app/models/concerns/blacklight/solr/document/marc.rb +13 -12
- data/app/models/concerns/blacklight/solr/document/marc_export.rb +53 -50
- data/app/views/bookmarks/_endnote.html.erb +1 -1
- data/app/views/bookmarks/_refworks.html.erb +1 -1
- data/app/views/catalog/_marc_view.html.erb +4 -4
- data/app/views/catalog/endnote.endnote.erb +1 -1
- data/app/views/catalog/librarian_view.html.erb +7 -4
- data/blacklight-marc.gemspec +12 -12
- data/config/routes.rb +1 -1
- data/lib/blacklight/marc/catalog.rb +9 -15
- data/lib/blacklight/marc/engine.rb +2 -0
- data/lib/blacklight/marc/indexer.rb +9 -39
- data/lib/blacklight/marc/indexer/formats.rb +13 -15
- data/lib/blacklight/marc/routes.rb +2 -39
- data/lib/blacklight/marc/routes/marc_viewable.rb +20 -0
- data/lib/blacklight/marc/version.rb +1 -1
- data/lib/generators/blacklight/marc/install_generator.rb +16 -9
- data/lib/generators/blacklight/marc/templates/app/models/marc_indexer.rb +59 -59
- data/lib/generators/blacklight/marc/templates/config/translation_maps/callnumber_map.properties +149 -11
- data/lib/railties/solr_marc.rake +33 -33
- data/solr/conf/_rest_managed.json +3 -0
- data/solr/conf/admin-extra.html +31 -0
- data/solr/conf/elevate.xml +36 -0
- data/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/solr/conf/protwords.txt +21 -0
- data/solr/conf/schema.xml +388 -0
- data/solr/conf/scripts.conf +24 -0
- data/solr/conf/solrconfig.xml +195 -0
- data/solr/conf/spellings.txt +2 -0
- data/solr/conf/stopwords.txt +58 -0
- data/solr/conf/stopwords_en.txt +58 -0
- data/solr/conf/synonyms.txt +31 -0
- data/solr/conf/xslt/example.xsl +132 -0
- data/solr/conf/xslt/example_atom.xsl +67 -0
- data/solr/conf/xslt/example_rss.xsl +66 -0
- data/solr/conf/xslt/luke.xsl +337 -0
- data/spec/controllers/catalog_controller_spec.rb +11 -6
- data/spec/features/bookmarks_spec.rb +2 -1
- data/spec/features/search_formats_spec.rb +3 -3
- data/spec/integration/solr_document_spec.rb +19 -19
- data/spec/lib/blacklight_solr_document_marc_spec.rb +7 -7
- data/spec/lib/indexer/dewey_spec.rb +4 -4
- data/spec/lib/indexer/formats_spec.rb +9 -1
- data/spec/lib/marc_export_spec.rb +46 -46
- data/spec/lib/tasks/solr_marc_task_spec.rb +7 -7
- data/spec/lib/traject_indexer_spec.rb +6 -2
- data/spec/routing/routes_spec.rb +0 -6
- data/spec/spec_helper.rb +2 -2
- data/spec/test_app_templates/Gemfile.extra +2 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +15 -14
- data/spec/views/bookmarks/_endnote.html.erb_spec.rb +16 -6
- data/spec/views/bookmarks/_refworks.html.erb_spec.rb +17 -7
- data/spec/views/catalog/index.atom.builder_spec.rb +12 -17
- data/test_support/config/translation_maps/test_formats.properties +3 -1
- metadata +85 -60
- data/app/helpers/blacklight_bookmarks_helper.rb +0 -3
- data/config/jetty.yml +0 -4
@@ -16,15 +16,15 @@ describe "solr:marc:*" do
|
|
16
16
|
ensure
|
17
17
|
$stdout = STDOUT
|
18
18
|
end
|
19
|
-
|
19
|
+
|
20
20
|
before(:all) do
|
21
|
-
@rake = Rake::Application.new
|
21
|
+
@rake = Rake::Application.new
|
22
22
|
Rake.application = @rake
|
23
23
|
Rake.application.rake_require "../lib/railties/solr_marc"
|
24
24
|
Rake::Task.define_task(:environment)
|
25
25
|
end
|
26
26
|
|
27
|
-
describe 'solr:marc:index_test_data' do
|
27
|
+
describe 'solr:marc:index_test_data' do
|
28
28
|
it 'should print out usage using NOOP=true' do
|
29
29
|
root = Rails.root
|
30
30
|
ENV['NOOP'] = "true"
|
@@ -33,9 +33,9 @@ describe "solr:marc:*" do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
expect(o).to match(Regexp.escape("Possible environment variables, with settings as invoked"))
|
36
|
-
end
|
36
|
+
end
|
37
37
|
end
|
38
|
-
|
38
|
+
|
39
39
|
describe "solr:marc:index" do
|
40
40
|
after do
|
41
41
|
SolrMarc.indexer= nil
|
@@ -50,7 +50,7 @@ describe "solr:marc:*" do
|
|
50
50
|
@rake['solr:marc:index:work'].invoke
|
51
51
|
end
|
52
52
|
end
|
53
|
-
|
54
|
-
end
|
53
|
+
|
54
|
+
end
|
55
55
|
end
|
56
56
|
|
@@ -70,7 +70,7 @@ module TestIndexer
|
|
70
70
|
store "marc_source.type", "xml"
|
71
71
|
store "writer_class_name", "TestIndexer::Writer"
|
72
72
|
end
|
73
|
-
to_field "id",
|
73
|
+
to_field "id", extract_marc("001"), first_only, trim
|
74
74
|
to_field "format", extract_marc('007[0-1]') do |rec, acc|
|
75
75
|
legacy_formats = Traject::TranslationMap.new("test_formats")
|
76
76
|
acc << rec.leader[6..7]
|
@@ -80,7 +80,9 @@ module TestIndexer
|
|
80
80
|
acc << 'Unknown' # the default
|
81
81
|
acc.replace Array(acc[0]) # just take the first
|
82
82
|
end
|
83
|
-
to_field "mapped",
|
83
|
+
to_field "mapped", literal('k'), translation_map("test_formats","test_dewey")
|
84
|
+
to_field "mapped_second", literal('000'), translation_map("test_dewey","test_formats")
|
85
|
+
to_field "mapped_third", literal('000'), translation_map("test_dewey")
|
84
86
|
end
|
85
87
|
class Writer
|
86
88
|
def self.accumulator=(acc)
|
@@ -127,6 +129,8 @@ describe Blacklight::Marc::Indexer do
|
|
127
129
|
json = vals.first
|
128
130
|
expect(json['format']).to eql(['Sound Disc'])
|
129
131
|
expect(json['mapped']).to eql(['Image'])
|
132
|
+
expect(json['mapped_second']).to eql(['Bad Metadata'])
|
133
|
+
expect(json['mapped_third']).to eql(['000s - Computer Science, Information & General Works'])
|
130
134
|
end
|
131
135
|
end
|
132
136
|
end
|
data/spec/routing/routes_spec.rb
CHANGED
@@ -6,11 +6,5 @@ describe "Routing" do
|
|
6
6
|
expect({ :get => "/catalog/111/librarian_view" }).to route_to(:controller => 'catalog', :action => 'librarian_view', :id => "111")
|
7
7
|
expect({ :get => librarian_view_solr_document_path('111') }).to route_to(:controller => 'catalog', :action => 'librarian_view', :id => "111")
|
8
8
|
end
|
9
|
-
it "should map {:controller => 'catalog', :action => 'endnote'} to /catalog/endnote" do
|
10
|
-
expect({ :get => "/catalog/endnote" }).to route_to(:controller => 'catalog', :action => 'endnote')
|
11
|
-
expect({ :get => endnote_solr_document_path }).to route_to(:controller => 'catalog', :action => 'endnote')
|
12
|
-
end
|
13
9
|
end
|
14
10
|
end
|
15
|
-
|
16
|
-
|
data/spec/spec_helper.rb
CHANGED
@@ -20,8 +20,8 @@ require 'rspec/active_model/mocks'
|
|
20
20
|
|
21
21
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
22
22
|
# in spec/support/ and its subdirectories.
|
23
|
-
# Blacklight, again, make sure we're looking in the right place for em.
|
24
|
-
# Relative to HERE, NOT to Rails.root, which is off somewhere else.
|
23
|
+
# Blacklight, again, make sure we're looking in the right place for em.
|
24
|
+
# Relative to HERE, NOT to Rails.root, which is off somewhere else.
|
25
25
|
Dir[Pathname.new(File.expand_path("../support/**/*.rb", __FILE__))].each {|f| require f}
|
26
26
|
|
27
27
|
RSpec.configure do |config|
|
@@ -1,35 +1,36 @@
|
|
1
1
|
require 'rails/generators'
|
2
2
|
|
3
3
|
class TestAppGenerator < Rails::Generators::Base
|
4
|
-
def fix_travis_rails_4
|
4
|
+
def fix_travis_rails_4
|
5
5
|
if ENV['TRAVIS']
|
6
|
-
insert_into_file 'app/assets/stylesheets/application.css', :before =>'/*' do
|
6
|
+
insert_into_file 'app/assets/stylesheets/application.css', :before =>'/*' do
|
7
7
|
"@charset \"UTF-8\";\n"
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
|
-
def
|
13
|
-
|
14
|
-
end
|
15
|
-
|
16
|
-
def run_blacklight_generator
|
17
|
-
say_status("warning", "GENERATING BL", :yellow)
|
18
|
-
gem 'blacklight'
|
19
|
-
gem "traject", '~>2.0'
|
12
|
+
def add_gems
|
13
|
+
gem 'rsolr', '>= 1.0', '< 3'
|
20
14
|
Bundler.with_clean_env do
|
21
|
-
run
|
15
|
+
run 'bundle install'
|
22
16
|
end
|
17
|
+
end
|
23
18
|
|
24
|
-
|
19
|
+
def remove_index
|
20
|
+
remove_file "public/index.html"
|
21
|
+
end
|
22
|
+
|
23
|
+
def run_blacklight_generator
|
24
|
+
say_status("warning", "GENERATING BL", :yellow)
|
25
|
+
generate 'blacklight:install', '--devise'
|
25
26
|
end
|
26
27
|
|
27
28
|
def run_test_support_generator
|
28
|
-
say_status("warning", "GENERATING test_support", :yellow)
|
29
|
+
say_status("warning", "GENERATING test_support", :yellow)
|
29
30
|
|
30
31
|
generate 'blacklight:test_support'
|
31
32
|
end
|
32
|
-
|
33
|
+
|
33
34
|
def run_blacklight_marc_generator
|
34
35
|
generate 'blacklight:marc:install'
|
35
36
|
end
|
@@ -1,13 +1,23 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe 'bookmarks/_endnote.html.erb' do
|
3
|
+
RSpec.describe 'bookmarks/_endnote.html.erb' do
|
4
4
|
before do
|
5
|
-
allow(controller).to receive(:blacklight_config)
|
5
|
+
allow(controller).to receive(:blacklight_config)
|
6
|
+
.and_return(CatalogController.blacklight_config)
|
7
|
+
assign(:response, response)
|
8
|
+
render
|
6
9
|
end
|
7
10
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
11
|
+
let(:response) do
|
12
|
+
instance_double(Blacklight::Solr::Response,
|
13
|
+
documents: documents)
|
14
|
+
end
|
15
|
+
let(:documents) do
|
16
|
+
[mock_model(Bookmark, document_id: 7, exports_as?: true),
|
17
|
+
mock_model(Bookmark, document_id: 8, exports_as?: true)]
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'has a link' do
|
21
|
+
expect(rendered).to have_link 'Export to EndNote'
|
12
22
|
end
|
13
23
|
end
|
@@ -1,15 +1,25 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe 'bookmarks/_refworks.html.erb' do
|
3
|
+
RSpec.describe 'bookmarks/_refworks.html.erb' do
|
4
4
|
before do
|
5
|
-
allow(controller).to receive(:blacklight_config)
|
6
|
-
|
7
|
-
|
8
|
-
it "should have a link" do
|
5
|
+
allow(controller).to receive(:blacklight_config)
|
6
|
+
.and_return(CatalogController.blacklight_config)
|
9
7
|
allow(view).to receive_messages(encrypt_user_id: 1)
|
10
8
|
allow(view).to receive_messages(current_or_guest_user: mock_model(User))
|
11
|
-
assign(:
|
9
|
+
assign(:response, response)
|
12
10
|
render
|
13
|
-
|
11
|
+
end
|
12
|
+
|
13
|
+
let(:response) do
|
14
|
+
instance_double(Blacklight::Solr::Response,
|
15
|
+
documents: documents)
|
16
|
+
end
|
17
|
+
let(:documents) do
|
18
|
+
[mock_model(Bookmark, document_id: 7, exports_as?: true),
|
19
|
+
mock_model(Bookmark, document_id: 8, exports_as?: true)]
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'has a link' do
|
23
|
+
expect(rendered).to have_link 'Export to Refworks'
|
14
24
|
end
|
15
25
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require 'rexml/document'
|
3
3
|
|
4
|
-
describe "catalog/index" do
|
4
|
+
describe "catalog/index" do
|
5
5
|
|
6
6
|
before(:all) do
|
7
7
|
@config = Blacklight::Configuration.new.configure do |config|
|
@@ -10,34 +10,31 @@ describe "catalog/index" do
|
|
10
10
|
:rows => 10
|
11
11
|
}
|
12
12
|
end
|
13
|
-
|
14
|
-
@params = { 'content_format' => 'marc', :f => { :format => ['Book'] }, :page => 2 }
|
15
13
|
|
16
|
-
|
17
|
-
c = CatalogController.new
|
18
|
-
c.blacklight_config = @config
|
19
|
-
@response, @document_list = c.search_results(@params)
|
14
|
+
@params = { :content_format => 'marc', :f => { :format => ['Book'] }, :page => 2 }
|
20
15
|
|
21
|
-
#
|
22
|
-
|
23
|
-
@
|
16
|
+
# run a solr query to get our data
|
17
|
+
service = CatalogController.search_service_class.new(config: @config, user_params: @params)
|
18
|
+
@response, _ = service.search_results
|
19
|
+
@document_list = @response.documents
|
24
20
|
end
|
21
|
+
|
25
22
|
before(:each) do
|
26
23
|
# Not sure what Assigns was doing here ... dhf
|
27
24
|
# assigns[:response] = @rsolr_response
|
28
25
|
# assigns[:document_list] = @document_list
|
29
26
|
# not sure why we can't use assigns for 'params', instead this weird way,
|
30
|
-
# but okay.
|
27
|
+
# but okay.
|
31
28
|
|
32
29
|
params.merge!( @params )
|
33
30
|
allow(view).to receive(:blacklight_config).and_return(@config)
|
34
31
|
allow(view).to receive(:search_field_options_for_select).and_return([])
|
35
32
|
|
36
|
-
render :template => 'catalog/index', :formats => [:atom]
|
33
|
+
render :template => 'catalog/index', :formats => [:atom]
|
37
34
|
|
38
|
-
# We need to use rexml to test certain things that have_tag wont' test
|
39
|
-
# note that response is depricated rails 3, use "redered" instead.
|
40
|
-
@response_xml = REXML::Document.new(rendered)
|
35
|
+
# We need to use rexml to test certain things that have_tag wont' test
|
36
|
+
# note that response is depricated rails 3, use "redered" instead.
|
37
|
+
@response_xml = REXML::Document.new(rendered)
|
41
38
|
end
|
42
39
|
|
43
40
|
describe "when content_format is specified" do
|
@@ -54,5 +51,3 @@ describe "catalog/index" do
|
|
54
51
|
end
|
55
52
|
end
|
56
53
|
end
|
57
|
-
|
58
|
-
|
metadata
CHANGED
@@ -1,57 +1,51 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight-marc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: blacklight
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 6.0.0.pre3
|
20
|
-
- - "<"
|
17
|
+
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: '7'
|
19
|
+
version: '7.0'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 6.0.0.pre3
|
30
|
-
- - "<"
|
24
|
+
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version: '7'
|
26
|
+
version: '7.0'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
28
|
+
name: library_stdnums
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
|
-
- - "
|
31
|
+
- - ">="
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
40
|
-
type: :
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
41
35
|
prerelease: false
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
43
37
|
requirements:
|
44
|
-
- - "
|
38
|
+
- - ">="
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
40
|
+
version: '0'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
42
|
+
name: rails
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
44
|
requirements:
|
51
45
|
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
|
-
type: :
|
48
|
+
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
51
|
requirements:
|
@@ -59,13 +53,33 @@ dependencies:
|
|
59
53
|
- !ruby/object:Gem::Version
|
60
54
|
version: '0'
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
56
|
+
name: marc
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.4.3
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '1.1'
|
65
|
+
type: :runtime
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: 0.4.3
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '1.1'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: traject
|
63
77
|
requirement: !ruby/object:Gem::Requirement
|
64
78
|
requirements:
|
65
79
|
- - "~>"
|
66
80
|
- !ruby/object:Gem::Version
|
67
81
|
version: '3.0'
|
68
|
-
type: :
|
82
|
+
type: :runtime
|
69
83
|
prerelease: false
|
70
84
|
version_requirements: !ruby/object:Gem::Requirement
|
71
85
|
requirements:
|
@@ -73,13 +87,13 @@ dependencies:
|
|
73
87
|
- !ruby/object:Gem::Version
|
74
88
|
version: '3.0'
|
75
89
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
90
|
+
name: marc-fastxmlwriter
|
77
91
|
requirement: !ruby/object:Gem::Requirement
|
78
92
|
requirements:
|
79
93
|
- - ">="
|
80
94
|
- !ruby/object:Gem::Version
|
81
95
|
version: '0'
|
82
|
-
type: :
|
96
|
+
type: :runtime
|
83
97
|
prerelease: false
|
84
98
|
version_requirements: !ruby/object:Gem::Requirement
|
85
99
|
requirements:
|
@@ -87,7 +101,7 @@ dependencies:
|
|
87
101
|
- !ruby/object:Gem::Version
|
88
102
|
version: '0'
|
89
103
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
104
|
+
name: bundler
|
91
105
|
requirement: !ruby/object:Gem::Requirement
|
92
106
|
requirements:
|
93
107
|
- - ">="
|
@@ -101,7 +115,7 @@ dependencies:
|
|
101
115
|
- !ruby/object:Gem::Version
|
102
116
|
version: '0'
|
103
117
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
118
|
+
name: rake
|
105
119
|
requirement: !ruby/object:Gem::Requirement
|
106
120
|
requirements:
|
107
121
|
- - ">="
|
@@ -115,27 +129,27 @@ dependencies:
|
|
115
129
|
- !ruby/object:Gem::Version
|
116
130
|
version: '0'
|
117
131
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
132
|
+
name: rspec-rails
|
119
133
|
requirement: !ruby/object:Gem::Requirement
|
120
134
|
requirements:
|
121
135
|
- - "~>"
|
122
136
|
- !ruby/object:Gem::Version
|
123
|
-
version: '0
|
137
|
+
version: '4.0'
|
124
138
|
type: :development
|
125
139
|
prerelease: false
|
126
140
|
version_requirements: !ruby/object:Gem::Requirement
|
127
141
|
requirements:
|
128
142
|
- - "~>"
|
129
143
|
- !ruby/object:Gem::Version
|
130
|
-
version: '0
|
144
|
+
version: '4.0'
|
131
145
|
- !ruby/object:Gem::Dependency
|
132
|
-
name:
|
146
|
+
name: rspec-activemodel-mocks
|
133
147
|
requirement: !ruby/object:Gem::Requirement
|
134
148
|
requirements:
|
135
149
|
- - ">="
|
136
150
|
- !ruby/object:Gem::Version
|
137
151
|
version: '0'
|
138
|
-
type: :
|
152
|
+
type: :development
|
139
153
|
prerelease: false
|
140
154
|
version_requirements: !ruby/object:Gem::Requirement
|
141
155
|
requirements:
|
@@ -143,13 +157,13 @@ dependencies:
|
|
143
157
|
- !ruby/object:Gem::Version
|
144
158
|
version: '0'
|
145
159
|
- !ruby/object:Gem::Dependency
|
146
|
-
name:
|
160
|
+
name: solr_wrapper
|
147
161
|
requirement: !ruby/object:Gem::Requirement
|
148
162
|
requirements:
|
149
163
|
- - ">="
|
150
164
|
- !ruby/object:Gem::Version
|
151
165
|
version: '0'
|
152
|
-
type: :
|
166
|
+
type: :development
|
153
167
|
prerelease: false
|
154
168
|
version_requirements: !ruby/object:Gem::Requirement
|
155
169
|
requirements:
|
@@ -157,53 +171,47 @@ dependencies:
|
|
157
171
|
- !ruby/object:Gem::Version
|
158
172
|
version: '0'
|
159
173
|
- !ruby/object:Gem::Dependency
|
160
|
-
name:
|
174
|
+
name: capybara
|
161
175
|
requirement: !ruby/object:Gem::Requirement
|
162
176
|
requirements:
|
163
177
|
- - ">="
|
164
178
|
- !ruby/object:Gem::Version
|
165
|
-
version: 0
|
166
|
-
|
167
|
-
- !ruby/object:Gem::Version
|
168
|
-
version: '1.1'
|
169
|
-
type: :runtime
|
179
|
+
version: '0'
|
180
|
+
type: :development
|
170
181
|
prerelease: false
|
171
182
|
version_requirements: !ruby/object:Gem::Requirement
|
172
183
|
requirements:
|
173
184
|
- - ">="
|
174
185
|
- !ruby/object:Gem::Version
|
175
|
-
version: 0
|
176
|
-
- - "<"
|
177
|
-
- !ruby/object:Gem::Version
|
178
|
-
version: '1.1'
|
186
|
+
version: '0'
|
179
187
|
- !ruby/object:Gem::Dependency
|
180
|
-
name:
|
188
|
+
name: simplecov
|
181
189
|
requirement: !ruby/object:Gem::Requirement
|
182
190
|
requirements:
|
183
|
-
- - "
|
191
|
+
- - ">="
|
184
192
|
- !ruby/object:Gem::Version
|
185
|
-
version: '
|
186
|
-
type: :
|
193
|
+
version: '0'
|
194
|
+
type: :development
|
187
195
|
prerelease: false
|
188
196
|
version_requirements: !ruby/object:Gem::Requirement
|
189
197
|
requirements:
|
190
|
-
- - "
|
198
|
+
- - ">="
|
191
199
|
- !ruby/object:Gem::Version
|
192
|
-
version: '
|
200
|
+
version: '0'
|
193
201
|
- !ruby/object:Gem::Dependency
|
194
|
-
name:
|
202
|
+
name: engine_cart
|
195
203
|
requirement: !ruby/object:Gem::Requirement
|
196
204
|
requirements:
|
197
|
-
- - "
|
205
|
+
- - "~>"
|
198
206
|
- !ruby/object:Gem::Version
|
199
|
-
version: '0'
|
200
|
-
type: :
|
207
|
+
version: '2.0'
|
208
|
+
type: :development
|
201
209
|
prerelease: false
|
202
210
|
version_requirements: !ruby/object:Gem::Requirement
|
203
211
|
requirements:
|
204
|
-
- - "
|
212
|
+
- - "~>"
|
205
213
|
- !ruby/object:Gem::Version
|
206
|
-
version: '0'
|
214
|
+
version: '2.0'
|
207
215
|
description: MARC support for Blacklight
|
208
216
|
email:
|
209
217
|
- justin@curationexperts.com
|
@@ -212,13 +220,13 @@ extensions: []
|
|
212
220
|
extra_rdoc_files: []
|
213
221
|
files:
|
214
222
|
- ".gitignore"
|
223
|
+
- ".solr_wrapper.yaml"
|
215
224
|
- ".travis.yml"
|
216
225
|
- Gemfile
|
217
226
|
- LICENSE
|
218
227
|
- README.md
|
219
228
|
- Rakefile
|
220
229
|
- app/assets/stylesheets/blacklight_marc.scss
|
221
|
-
- app/helpers/blacklight_bookmarks_helper.rb
|
222
230
|
- app/helpers/blacklight_marc_helper.rb
|
223
231
|
- app/models/concerns/blacklight/solr/document/marc.rb
|
224
232
|
- app/models/concerns/blacklight/solr/document/marc_export.rb
|
@@ -231,7 +239,6 @@ files:
|
|
231
239
|
- app/views/catalog/librarian_view.html.erb
|
232
240
|
- app/views/catalog/show.refworks.erb
|
233
241
|
- blacklight-marc.gemspec
|
234
|
-
- config/jetty.yml
|
235
242
|
- config/locales/blacklight_marc.de.yml
|
236
243
|
- config/locales/blacklight_marc.en.yml
|
237
244
|
- config/locales/blacklight_marc.es.yml
|
@@ -246,6 +253,7 @@ files:
|
|
246
253
|
- lib/blacklight/marc/indexer/dewey.rb
|
247
254
|
- lib/blacklight/marc/indexer/formats.rb
|
248
255
|
- lib/blacklight/marc/routes.rb
|
256
|
+
- lib/blacklight/marc/routes/marc_viewable.rb
|
249
257
|
- lib/blacklight/marc/version.rb
|
250
258
|
- lib/generators/blacklight/marc/install_generator.rb
|
251
259
|
- lib/generators/blacklight/marc/templates/app/models/marc_indexer.rb
|
@@ -257,6 +265,22 @@ files:
|
|
257
265
|
- lib/generators/blacklight/marc/templates/config/translation_maps/instrument_map.properties
|
258
266
|
- lib/generators/blacklight/marc/templates/config/translation_maps/language_map.properties
|
259
267
|
- lib/railties/solr_marc.rake
|
268
|
+
- solr/conf/_rest_managed.json
|
269
|
+
- solr/conf/admin-extra.html
|
270
|
+
- solr/conf/elevate.xml
|
271
|
+
- solr/conf/mapping-ISOLatin1Accent.txt
|
272
|
+
- solr/conf/protwords.txt
|
273
|
+
- solr/conf/schema.xml
|
274
|
+
- solr/conf/scripts.conf
|
275
|
+
- solr/conf/solrconfig.xml
|
276
|
+
- solr/conf/spellings.txt
|
277
|
+
- solr/conf/stopwords.txt
|
278
|
+
- solr/conf/stopwords_en.txt
|
279
|
+
- solr/conf/synonyms.txt
|
280
|
+
- solr/conf/xslt/example.xsl
|
281
|
+
- solr/conf/xslt/example_atom.xsl
|
282
|
+
- solr/conf/xslt/example_rss.xsl
|
283
|
+
- solr/conf/xslt/luke.xsl
|
260
284
|
- spec/controllers/catalog_controller_spec.rb
|
261
285
|
- spec/features/bookmarks_spec.rb
|
262
286
|
- spec/features/librarian_view_spec.rb
|
@@ -273,6 +297,7 @@ files:
|
|
273
297
|
- spec/routing/routes_spec.rb
|
274
298
|
- spec/spec_helper.rb
|
275
299
|
- spec/support/controller_level_helpers.rb
|
300
|
+
- spec/test_app_templates/Gemfile.extra
|
276
301
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
277
302
|
- spec/views/bookmarks/_endnote.html.erb_spec.rb
|
278
303
|
- spec/views/bookmarks/_refworks.html.erb_spec.rb
|
@@ -283,7 +308,7 @@ files:
|
|
283
308
|
- test_support/data/test_data.utf8.mrc
|
284
309
|
homepage: https://github.com/projectblacklight/blacklight-marc
|
285
310
|
licenses:
|
286
|
-
- Apache
|
311
|
+
- Apache-2.0
|
287
312
|
metadata: {}
|
288
313
|
post_install_message:
|
289
314
|
rdoc_options: []
|
@@ -300,8 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
300
325
|
- !ruby/object:Gem::Version
|
301
326
|
version: '0'
|
302
327
|
requirements: []
|
303
|
-
|
304
|
-
rubygems_version: 2.4.5.1
|
328
|
+
rubygems_version: 3.1.2
|
305
329
|
signing_key:
|
306
330
|
specification_version: 4
|
307
331
|
summary: MARC support for Blacklight
|
@@ -322,6 +346,7 @@ test_files:
|
|
322
346
|
- spec/routing/routes_spec.rb
|
323
347
|
- spec/spec_helper.rb
|
324
348
|
- spec/support/controller_level_helpers.rb
|
349
|
+
- spec/test_app_templates/Gemfile.extra
|
325
350
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
326
351
|
- spec/views/bookmarks/_endnote.html.erb_spec.rb
|
327
352
|
- spec/views/bookmarks/_refworks.html.erb_spec.rb
|