blacklight-marc 5.10.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/.travis.yml +12 -17
- data/Gemfile +21 -14
- data/README.md +18 -1
- data/Rakefile +2 -2
- data/app/assets/stylesheets/blacklight_marc.scss +42 -0
- data/app/helpers/blacklight_marc_helper.rb +17 -0
- data/{lib → app/models/concerns}/blacklight/solr/document/marc.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/solr/document/marc_export.rb +0 -20
- data/app/views/bookmarks/_endnote.html.erb +1 -1
- data/app/views/bookmarks/_refworks.html.erb +1 -1
- data/app/views/catalog/_refworks_form.html.erb +6 -0
- data/app/views/catalog/show.refworks.erb +1 -0
- data/blacklight-marc.gemspec +9 -5
- data/config/locales/blacklight_marc.de.yml +5 -0
- data/config/locales/{blacklight.en.yml → blacklight_marc.en.yml} +2 -2
- data/config/locales/blacklight_marc.es.yml +5 -0
- data/config/locales/{blacklight.fr.yml → blacklight_marc.fr.yml} +0 -0
- data/config/locales/blacklight_marc.it.yml +5 -0
- data/config/locales/blacklight_marc.pt-BR.yml +5 -0
- data/lib/blacklight/marc.rb +2 -4
- data/lib/blacklight/marc/catalog.rb +23 -0
- data/lib/blacklight/marc/engine.rb +18 -0
- data/lib/blacklight/marc/indexer.rb +80 -0
- data/lib/blacklight/marc/indexer/dewey.rb +35 -0
- data/lib/blacklight/marc/indexer/formats.rb +194 -0
- data/lib/blacklight/marc/routes.rb +2 -2
- data/lib/blacklight/marc/version.rb +1 -1
- data/lib/generators/blacklight/marc/install_generator.rb +21 -7
- data/lib/generators/blacklight/marc/templates/app/models/marc_indexer.rb +161 -0
- data/lib/generators/blacklight/marc/templates/config/{SolrMarc/translation_maps → translation_maps}/README_MAPS +0 -0
- data/lib/generators/blacklight/marc/templates/config/{SolrMarc/translation_maps → translation_maps}/callnumber_map.properties +0 -0
- data/lib/generators/blacklight/marc/templates/config/{SolrMarc/translation_maps → translation_maps}/composition_era_map.properties +0 -0
- data/lib/generators/blacklight/marc/templates/config/{SolrMarc/translation_maps → translation_maps}/country_map.properties +0 -0
- data/lib/generators/blacklight/marc/templates/config/{SolrMarc/translation_maps → translation_maps}/format_map.properties +0 -0
- data/lib/generators/blacklight/marc/templates/config/{SolrMarc/translation_maps → translation_maps}/instrument_map.properties +0 -0
- data/lib/generators/blacklight/marc/templates/config/{SolrMarc/translation_maps → translation_maps}/language_map.properties +0 -0
- data/lib/railties/solr_marc.rake +24 -27
- data/spec/features/bookmarks_spec.rb +17 -0
- data/spec/features/librarian_view_spec.rb +1 -1
- data/spec/features/record_view_spec.rb +13 -0
- data/spec/features/search_formats_spec.rb +31 -0
- data/spec/helpers/blacklight_marc_helper_spec.rb +20 -0
- data/spec/lib/indexer/dewey_spec.rb +86 -0
- data/spec/lib/indexer/formats_spec.rb +65 -0
- data/spec/lib/tasks/solr_marc_task_spec.rb +14 -18
- data/spec/lib/traject_indexer_spec.rb +132 -0
- data/spec/routing/routes_spec.rb +2 -2
- data/spec/spec_helper.rb +8 -1
- data/spec/support/controller_level_helpers.rb +21 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +1 -3
- data/spec/views/bookmarks/_endnote.html.erb_spec.rb +4 -0
- data/spec/views/bookmarks/_refworks.html.erb_spec.rb +4 -0
- data/spec/views/catalog/_document_action.html.erb_spec.rb +21 -0
- data/spec/views/catalog/index.atom.builder_spec.rb +58 -0
- data/test_support/config/translation_maps/test_dewey.properties +99 -0
- data/test_support/config/translation_maps/test_formats.properties +22 -0
- metadata +101 -30
- data/lib/SolrMarc.jar +0 -0
- data/lib/blacklight/marc/railtie.rb +0 -17
- data/lib/generators/blacklight/marc/templates/config/SolrMarc/config-test.properties +0 -37
- data/lib/generators/blacklight/marc/templates/config/SolrMarc/config.properties +0 -37
- data/lib/generators/blacklight/marc/templates/config/SolrMarc/index.properties +0 -97
- data/lib/generators/blacklight/marc/templates/config/SolrMarc/index_scripts/dewey.bsh +0 -47
- data/lib/generators/blacklight/marc/templates/config/SolrMarc/index_scripts/format.bsh +0 -126
- data/lib/generators/blacklight_marc/marc_generator.rb +0 -9
data/spec/routing/routes_spec.rb
CHANGED
@@ -4,11 +4,11 @@ describe "Routing" do
|
|
4
4
|
describe "Paths Generated by Custom Routes:" do
|
5
5
|
it "should map {:controller => 'catalog', :id => '111', :action => 'librarian_view'} to /catalog/111/librarian_view" do
|
6
6
|
expect({ :get => "/catalog/111/librarian_view" }).to route_to(:controller => 'catalog', :action => 'librarian_view', :id => "111")
|
7
|
-
expect({ :get =>
|
7
|
+
expect({ :get => librarian_view_solr_document_path('111') }).to route_to(:controller => 'catalog', :action => 'librarian_view', :id => "111")
|
8
8
|
end
|
9
9
|
it "should map {:controller => 'catalog', :action => 'endnote'} to /catalog/endnote" do
|
10
10
|
expect({ :get => "/catalog/endnote" }).to route_to(:controller => 'catalog', :action => 'endnote')
|
11
|
-
expect({ :get =>
|
11
|
+
expect({ :get => endnote_solr_document_path }).to route_to(:controller => 'catalog', :action => 'endnote')
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -12,7 +12,8 @@ if ENV['COVERAGE'] and RUBY_VERSION =~ /^1.9/ and ruby_engine != "jruby"
|
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
15
|
-
require
|
15
|
+
require 'engine_cart'
|
16
|
+
EngineCart.load_application!
|
16
17
|
|
17
18
|
require 'rspec/rails'
|
18
19
|
require 'rspec/active_model/mocks'
|
@@ -36,4 +37,10 @@ RSpec.configure do |config|
|
|
36
37
|
# # Equivalent to being in spec/controllers
|
37
38
|
# end
|
38
39
|
config.infer_spec_type_from_file_location!
|
40
|
+
|
41
|
+
config.include(ControllerLevelHelpers, type: :helper)
|
42
|
+
config.before(:each, type: :helper) { initialize_controller_helpers(helper) }
|
43
|
+
|
44
|
+
config.include(ControllerLevelHelpers, type: :view)
|
45
|
+
config.before(:each, type: :view) { initialize_controller_helpers(view) }
|
39
46
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module ControllerLevelHelpers
|
2
|
+
module ControllerViewHelpers
|
3
|
+
include Blacklight::Facet
|
4
|
+
|
5
|
+
def blacklight_config
|
6
|
+
controller.blacklight_config
|
7
|
+
end
|
8
|
+
|
9
|
+
def search_state
|
10
|
+
@search_state ||= Blacklight::SearchState.new(params, blacklight_config)
|
11
|
+
end
|
12
|
+
|
13
|
+
def blacklight_configuration_context
|
14
|
+
@blacklight_configuration_context ||= Blacklight::Configuration::Context.new(controller)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def initialize_controller_helpers(helper)
|
19
|
+
helper.extend ControllerViewHelpers
|
20
|
+
end
|
21
|
+
end
|
@@ -1,8 +1,6 @@
|
|
1
1
|
require 'rails/generators'
|
2
2
|
|
3
3
|
class TestAppGenerator < Rails::Generators::Base
|
4
|
-
source_root File.expand_path("../../../../test_app_templates", __FILE__)
|
5
|
-
|
6
4
|
def fix_travis_rails_4
|
7
5
|
if ENV['TRAVIS']
|
8
6
|
insert_into_file 'app/assets/stylesheets/application.css', :before =>'/*' do
|
@@ -18,7 +16,7 @@ class TestAppGenerator < Rails::Generators::Base
|
|
18
16
|
def run_blacklight_generator
|
19
17
|
say_status("warning", "GENERATING BL", :yellow)
|
20
18
|
gem 'blacklight'
|
21
|
-
|
19
|
+
gem "traject", '~>2.0'
|
22
20
|
Bundler.with_clean_env do
|
23
21
|
run "bundle install"
|
24
22
|
end
|
@@ -1,6 +1,10 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe 'bookmarks/_endnote.html.erb' do
|
4
|
+
before do
|
5
|
+
allow(controller).to receive(:blacklight_config).and_return(CatalogController.blacklight_config)
|
6
|
+
end
|
7
|
+
|
4
8
|
it "should have a link" do
|
5
9
|
assign(:document_list, [mock_model(Bookmark, document_id: 7, exports_as?: true), mock_model(Bookmark, document_id: 8, exports_as?: true)])
|
6
10
|
render
|
@@ -1,6 +1,10 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe 'bookmarks/_refworks.html.erb' do
|
4
|
+
before do
|
5
|
+
allow(controller).to receive(:blacklight_config).and_return(CatalogController.blacklight_config)
|
6
|
+
end
|
7
|
+
|
4
8
|
it "should have a link" do
|
5
9
|
allow(view).to receive_messages(encrypt_user_id: 1)
|
6
10
|
allow(view).to receive_messages(current_or_guest_user: mock_model(User))
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'catalog/_document_action' do
|
4
|
+
let(:document_action_config) { Blacklight::Configuration::ToolConfig.new(tool_config) }
|
5
|
+
let(:document) { SolrDocument.new(id: '123') }
|
6
|
+
|
7
|
+
before do
|
8
|
+
allow(view).to receive_messages(controller_name: 'catalog')
|
9
|
+
render 'catalog/document_action', document_action_config: document_action_config, document: document
|
10
|
+
end
|
11
|
+
|
12
|
+
context "for refworks" do
|
13
|
+
let(:tool_config) { { if: :render_refworks_action?, partial: "document_action",
|
14
|
+
name: :refworks, key: :refworks, modal: false } }
|
15
|
+
|
16
|
+
it "should not be modal" do
|
17
|
+
expect(rendered).to have_link('Export to Refworks')
|
18
|
+
expect(rendered).not_to have_selector('a[data-ajax-modal]')
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'rexml/document'
|
3
|
+
|
4
|
+
describe "catalog/index" do
|
5
|
+
|
6
|
+
before(:all) do
|
7
|
+
@config = Blacklight::Configuration.new.configure do |config|
|
8
|
+
config.default_solr_params = {
|
9
|
+
:fl => '*',
|
10
|
+
:rows => 10
|
11
|
+
}
|
12
|
+
end
|
13
|
+
|
14
|
+
@params = { 'content_format' => 'marc', :f => { :format => ['Book'] }, :page => 2 }
|
15
|
+
|
16
|
+
# run a solr query to get our data
|
17
|
+
c = CatalogController.new
|
18
|
+
c.blacklight_config = @config
|
19
|
+
@response, @document_list = c.search_results(@params)
|
20
|
+
|
21
|
+
# munge the solr response to match test expectations
|
22
|
+
@document_list[1] = SolrDocument.new(@document_list[1].with_indifferent_access.reject! { |k,v| k == "author_display" })
|
23
|
+
@document_list[5] = SolrDocument.new(@document_list[1].with_indifferent_access.reject! { |k,v| k == "marc_display" })
|
24
|
+
end
|
25
|
+
before(:each) do
|
26
|
+
# Not sure what Assigns was doing here ... dhf
|
27
|
+
# assigns[:response] = @rsolr_response
|
28
|
+
# assigns[:document_list] = @document_list
|
29
|
+
# not sure why we can't use assigns for 'params', instead this weird way,
|
30
|
+
# but okay.
|
31
|
+
|
32
|
+
params.merge!( @params )
|
33
|
+
allow(view).to receive(:blacklight_config).and_return(@config)
|
34
|
+
allow(view).to receive(:search_field_options_for_select).and_return([])
|
35
|
+
|
36
|
+
render :template => 'catalog/index', :formats => [:atom]
|
37
|
+
|
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)
|
41
|
+
end
|
42
|
+
|
43
|
+
describe "when content_format is specified" do
|
44
|
+
describe "for an entry with content available" do
|
45
|
+
before do
|
46
|
+
@entry = @response_xml.elements.to_a("/feed/entry")[0]
|
47
|
+
end
|
48
|
+
it "should include a link rel tag" do
|
49
|
+
expect(@entry.to_s).to have_selector("link[rel=alternate][type='application/marc']")
|
50
|
+
end
|
51
|
+
it "should have content embedded" do
|
52
|
+
expect(@entry.to_s).to have_selector("content")
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
|
@@ -0,0 +1,99 @@
|
|
1
|
+
000 = 000s - Computer Science, Information & General Works
|
2
|
+
010 = 010s - Bibliography
|
3
|
+
020 = 020s - Library & Information Sciences
|
4
|
+
030 = 030s - General Encyclopedic Works
|
5
|
+
050 = 050s - General Serials & their Indexes
|
6
|
+
060 = 060s - General Organization & Museology
|
7
|
+
070 = 070s - News Media, Journalism, Publishing
|
8
|
+
080 = 080s - General Collections
|
9
|
+
090 = 090s - Manuscripts & Rare Books
|
10
|
+
100 = 100s - Philosophy & Psychology
|
11
|
+
110 = 110s - Metaphysics
|
12
|
+
120 = 120s - Epistemology, Causation, Humankind
|
13
|
+
130 = 130s - Paranormal Phenomena
|
14
|
+
140 = 140s - Specific Philosophical Schools
|
15
|
+
150 = 150s - Psychology
|
16
|
+
160 = 160s - Logic
|
17
|
+
170 = 170s - Ethics (Moral Philosophy)
|
18
|
+
180 = 180s - Ancient, Medieval, Oriental Philosophy
|
19
|
+
190 = 190s - Modern Western Philosophy
|
20
|
+
200 = 200s - Religion
|
21
|
+
210 = 210s - Natural Theology
|
22
|
+
220 = 220s - Bible
|
23
|
+
230 = 230s - Christian Theology
|
24
|
+
240 = 240s - Christian Moral & Devotional Theology
|
25
|
+
250 = 250s - Christian Orders & Local Church
|
26
|
+
260 = 260s - Christian Social Theology
|
27
|
+
270 = 270s - Christian Church History
|
28
|
+
280 = 280s - Christian Denominations & Sects
|
29
|
+
290 = 290s - Other & Comparative Religions
|
30
|
+
300 = 300s - Social Sciences
|
31
|
+
310 = 310s - General Statistics
|
32
|
+
320 = 320s - Political Science
|
33
|
+
330 = 330s - Economics
|
34
|
+
340 = 340s - Law
|
35
|
+
350 = 350s - Public Administration
|
36
|
+
360 = 360s - Social Services; Association
|
37
|
+
370 = 370s - Education
|
38
|
+
380 = 380s - Commerce, Communications, Transport
|
39
|
+
390 = 390s - Customs, Etiquette, Folklore
|
40
|
+
400 = 400s - Language
|
41
|
+
410 = 410s - Linguistics
|
42
|
+
420 = 420s - English & Old English
|
43
|
+
430 = 430s - Germanic Languages German
|
44
|
+
440 = 440s - Romance Languages French
|
45
|
+
450 = 450s - Italian, Romanian, Rhaeto-Romantic
|
46
|
+
460 = 460s - Spanish & Portugese Languages
|
47
|
+
470 = 470s - Italic Latin
|
48
|
+
480 = 480s - Hellenic Languages Classical Greek
|
49
|
+
490 = 490s - Other Languages
|
50
|
+
500 = 500s - Science
|
51
|
+
510 = 510s - Mathematics
|
52
|
+
520 = 520s - Astronomy & Allied Sciences
|
53
|
+
530 = 530s - Physics
|
54
|
+
540 = 540s - Chemistry & Allied Sciences
|
55
|
+
550 = 550s - Earth Sciences
|
56
|
+
560 = 560s - Paleontology Paleozoology
|
57
|
+
570 = 570s - Life Sciences
|
58
|
+
580 = 580s - Botanical Sciences
|
59
|
+
590 = 590s - Zoological Sciences
|
60
|
+
600 = 600s - Technology
|
61
|
+
610 = 610s - Medical Sciences Medicine
|
62
|
+
620 = 620s - Engineering & Allied Operations
|
63
|
+
630 = 630s - Agriculture
|
64
|
+
640 = 640s - Home economics & Family Living
|
65
|
+
650 = 650s - Management & Auxiliary Services
|
66
|
+
660 = 660s - Chemical Engineering
|
67
|
+
670 = 670s - Manufacturing
|
68
|
+
680 = 680s - Manufacture for Specific Uses
|
69
|
+
690 = 690s - Buildings
|
70
|
+
700 = 700s - Arts & Recreation
|
71
|
+
710 = 710s - Civic & Landscape Art
|
72
|
+
720 = 720s - Architecture
|
73
|
+
730 = 730s - Plastic Arts Sculpture
|
74
|
+
740 = 740s - Drawing & Decorative Arts
|
75
|
+
750 = 750s - Painting & Paintings
|
76
|
+
760 = 760s - Graphic Arts Printmaking & Prints
|
77
|
+
770 = 770s - Photography & Photographs
|
78
|
+
780 = 780s - Music
|
79
|
+
790 = 790s - Recreational & Performing Arts
|
80
|
+
800 = 800s - Literature
|
81
|
+
810 = 810s - American Literature in English
|
82
|
+
820 = 820s - English & Old English Literatures
|
83
|
+
830 = 830s - Literatures of Germanic Languages
|
84
|
+
840 = 840s - Literatures of Romance Languages
|
85
|
+
850 = 850s - Italian, Romanian, Rhaeto-Romanic
|
86
|
+
860 = 860s - Spanish & Portuguese Literatures
|
87
|
+
870 = 870s - Italic Literatures Latin
|
88
|
+
880 = 880s - Hellenic Literatures Classical Greek
|
89
|
+
890 = 890s - Literatures of Other Languages
|
90
|
+
900 = 900s - History & Geography
|
91
|
+
910 = 910s - Geography & Travel
|
92
|
+
920 = 920s - Biography, Genealogy, Insignia
|
93
|
+
930 = 930s - History of Ancient World
|
94
|
+
940 = 940s - General History of Europe
|
95
|
+
950 = 950s - General History of Asia Far East
|
96
|
+
960 = 960s - General History of Africa
|
97
|
+
970 = 970s - General History of North America
|
98
|
+
980 = 980s - General History of South America
|
99
|
+
990 = 990s - General History of Other Areas
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# format mapping
|
2
|
+
# leader 06-07
|
3
|
+
aa = Book
|
4
|
+
ab = Serial
|
5
|
+
am = Book
|
6
|
+
as = Serial
|
7
|
+
ta = Book
|
8
|
+
tm = Book
|
9
|
+
sd = Sound Disc
|
10
|
+
# leader 06
|
11
|
+
c = Musical Score
|
12
|
+
d = Musical Score
|
13
|
+
e = Map or Globe
|
14
|
+
f = Map or Globe
|
15
|
+
i = Non-musical Recording
|
16
|
+
j = Musical Recording
|
17
|
+
k = Image
|
18
|
+
m = Computer File
|
19
|
+
# 007[0] when it doesn't clash with above
|
20
|
+
h = Microform
|
21
|
+
q = Musical Score
|
22
|
+
v = Video
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight-marc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-21 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
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 6.0.0.pre3
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
22
|
+
version: '7'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
29
|
+
version: 6.0.0.pre3
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '7'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: bundler
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +120,28 @@ dependencies:
|
|
114
120
|
requirements:
|
115
121
|
- - "~>"
|
116
122
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0.
|
123
|
+
version: '0.8'
|
118
124
|
type: :development
|
119
125
|
prerelease: false
|
120
126
|
version_requirements: !ruby/object:Gem::Requirement
|
121
127
|
requirements:
|
122
128
|
- - "~>"
|
123
129
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0.
|
130
|
+
version: '0.8'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: library_stdnums
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
type: :runtime
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
125
145
|
- !ruby/object:Gem::Dependency
|
126
146
|
name: rails
|
127
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,6 +176,34 @@ dependencies:
|
|
156
176
|
- - "<"
|
157
177
|
- !ruby/object:Gem::Version
|
158
178
|
version: '1.1'
|
179
|
+
- !ruby/object:Gem::Dependency
|
180
|
+
name: traject
|
181
|
+
requirement: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - "~>"
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: '2.1'
|
186
|
+
type: :runtime
|
187
|
+
prerelease: false
|
188
|
+
version_requirements: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - "~>"
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '2.1'
|
193
|
+
- !ruby/object:Gem::Dependency
|
194
|
+
name: marc-fastxmlwriter
|
195
|
+
requirement: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - ">="
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '0'
|
200
|
+
type: :runtime
|
201
|
+
prerelease: false
|
202
|
+
version_requirements: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
159
207
|
description: MARC support for Blacklight
|
160
208
|
email:
|
161
209
|
- justin@curationexperts.com
|
@@ -169,57 +217,71 @@ files:
|
|
169
217
|
- LICENSE
|
170
218
|
- README.md
|
171
219
|
- Rakefile
|
220
|
+
- app/assets/stylesheets/blacklight_marc.scss
|
172
221
|
- app/helpers/blacklight_bookmarks_helper.rb
|
173
222
|
- app/helpers/blacklight_marc_helper.rb
|
223
|
+
- app/models/concerns/blacklight/solr/document/marc.rb
|
224
|
+
- app/models/concerns/blacklight/solr/document/marc_export.rb
|
174
225
|
- app/views/bookmarks/_endnote.html.erb
|
175
226
|
- app/views/bookmarks/_marc_tools.html.erb
|
176
227
|
- app/views/bookmarks/_refworks.html.erb
|
177
228
|
- app/views/catalog/_marc_view.html.erb
|
229
|
+
- app/views/catalog/_refworks_form.html.erb
|
178
230
|
- app/views/catalog/endnote.endnote.erb
|
179
231
|
- app/views/catalog/librarian_view.html.erb
|
232
|
+
- app/views/catalog/show.refworks.erb
|
180
233
|
- blacklight-marc.gemspec
|
181
234
|
- config/jetty.yml
|
182
|
-
- config/locales/
|
183
|
-
- config/locales/
|
235
|
+
- config/locales/blacklight_marc.de.yml
|
236
|
+
- config/locales/blacklight_marc.en.yml
|
237
|
+
- config/locales/blacklight_marc.es.yml
|
238
|
+
- config/locales/blacklight_marc.fr.yml
|
239
|
+
- config/locales/blacklight_marc.it.yml
|
240
|
+
- config/locales/blacklight_marc.pt-BR.yml
|
184
241
|
- config/routes.rb
|
185
|
-
- lib/SolrMarc.jar
|
186
242
|
- lib/blacklight/marc.rb
|
187
243
|
- lib/blacklight/marc/catalog.rb
|
188
244
|
- lib/blacklight/marc/engine.rb
|
189
|
-
- lib/blacklight/marc/
|
245
|
+
- lib/blacklight/marc/indexer.rb
|
246
|
+
- lib/blacklight/marc/indexer/dewey.rb
|
247
|
+
- lib/blacklight/marc/indexer/formats.rb
|
190
248
|
- lib/blacklight/marc/routes.rb
|
191
249
|
- lib/blacklight/marc/version.rb
|
192
|
-
- lib/blacklight/solr/document/marc.rb
|
193
|
-
- lib/blacklight/solr/document/marc_export.rb
|
194
250
|
- lib/generators/blacklight/marc/install_generator.rb
|
195
|
-
- lib/generators/blacklight/marc/templates/
|
196
|
-
- lib/generators/blacklight/marc/templates/config/
|
197
|
-
- lib/generators/blacklight/marc/templates/config/
|
198
|
-
- lib/generators/blacklight/marc/templates/config/
|
199
|
-
- lib/generators/blacklight/marc/templates/config/
|
200
|
-
- lib/generators/blacklight/marc/templates/config/
|
201
|
-
- lib/generators/blacklight/marc/templates/config/
|
202
|
-
- lib/generators/blacklight/marc/templates/config/
|
203
|
-
- lib/generators/blacklight/marc/templates/config/SolrMarc/translation_maps/country_map.properties
|
204
|
-
- lib/generators/blacklight/marc/templates/config/SolrMarc/translation_maps/format_map.properties
|
205
|
-
- lib/generators/blacklight/marc/templates/config/SolrMarc/translation_maps/instrument_map.properties
|
206
|
-
- lib/generators/blacklight/marc/templates/config/SolrMarc/translation_maps/language_map.properties
|
207
|
-
- lib/generators/blacklight_marc/marc_generator.rb
|
251
|
+
- lib/generators/blacklight/marc/templates/app/models/marc_indexer.rb
|
252
|
+
- lib/generators/blacklight/marc/templates/config/translation_maps/README_MAPS
|
253
|
+
- lib/generators/blacklight/marc/templates/config/translation_maps/callnumber_map.properties
|
254
|
+
- lib/generators/blacklight/marc/templates/config/translation_maps/composition_era_map.properties
|
255
|
+
- lib/generators/blacklight/marc/templates/config/translation_maps/country_map.properties
|
256
|
+
- lib/generators/blacklight/marc/templates/config/translation_maps/format_map.properties
|
257
|
+
- lib/generators/blacklight/marc/templates/config/translation_maps/instrument_map.properties
|
258
|
+
- lib/generators/blacklight/marc/templates/config/translation_maps/language_map.properties
|
208
259
|
- lib/railties/solr_marc.rake
|
209
260
|
- spec/controllers/catalog_controller_spec.rb
|
261
|
+
- spec/features/bookmarks_spec.rb
|
210
262
|
- spec/features/librarian_view_spec.rb
|
263
|
+
- spec/features/record_view_spec.rb
|
264
|
+
- spec/features/search_formats_spec.rb
|
211
265
|
- spec/helpers/blacklight_marc_helper_spec.rb
|
212
266
|
- spec/integration/solr_document_spec.rb
|
213
267
|
- spec/lib/blacklight_solr_document_marc_spec.rb
|
268
|
+
- spec/lib/indexer/dewey_spec.rb
|
269
|
+
- spec/lib/indexer/formats_spec.rb
|
214
270
|
- spec/lib/marc_export_spec.rb
|
215
271
|
- spec/lib/tasks/solr_marc_task_spec.rb
|
272
|
+
- spec/lib/traject_indexer_spec.rb
|
216
273
|
- spec/routing/routes_spec.rb
|
217
274
|
- spec/spec_helper.rb
|
275
|
+
- spec/support/controller_level_helpers.rb
|
218
276
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
219
277
|
- spec/views/bookmarks/_endnote.html.erb_spec.rb
|
220
278
|
- spec/views/bookmarks/_refworks.html.erb_spec.rb
|
279
|
+
- spec/views/catalog/_document_action.html.erb_spec.rb
|
280
|
+
- spec/views/catalog/index.atom.builder_spec.rb
|
281
|
+
- test_support/config/translation_maps/test_dewey.properties
|
282
|
+
- test_support/config/translation_maps/test_formats.properties
|
221
283
|
- test_support/data/test_data.utf8.mrc
|
222
|
-
homepage: https://github.com/projectblacklight/
|
284
|
+
homepage: https://github.com/projectblacklight/blacklight-marc
|
223
285
|
licenses:
|
224
286
|
- Apache 2.0
|
225
287
|
metadata: {}
|
@@ -239,20 +301,29 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
301
|
version: '0'
|
240
302
|
requirements: []
|
241
303
|
rubyforge_project:
|
242
|
-
rubygems_version: 2.4.5
|
304
|
+
rubygems_version: 2.4.5.1
|
243
305
|
signing_key:
|
244
306
|
specification_version: 4
|
245
307
|
summary: MARC support for Blacklight
|
246
308
|
test_files:
|
247
309
|
- spec/controllers/catalog_controller_spec.rb
|
310
|
+
- spec/features/bookmarks_spec.rb
|
248
311
|
- spec/features/librarian_view_spec.rb
|
312
|
+
- spec/features/record_view_spec.rb
|
313
|
+
- spec/features/search_formats_spec.rb
|
249
314
|
- spec/helpers/blacklight_marc_helper_spec.rb
|
250
315
|
- spec/integration/solr_document_spec.rb
|
251
316
|
- spec/lib/blacklight_solr_document_marc_spec.rb
|
317
|
+
- spec/lib/indexer/dewey_spec.rb
|
318
|
+
- spec/lib/indexer/formats_spec.rb
|
252
319
|
- spec/lib/marc_export_spec.rb
|
253
320
|
- spec/lib/tasks/solr_marc_task_spec.rb
|
321
|
+
- spec/lib/traject_indexer_spec.rb
|
254
322
|
- spec/routing/routes_spec.rb
|
255
323
|
- spec/spec_helper.rb
|
324
|
+
- spec/support/controller_level_helpers.rb
|
256
325
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
257
326
|
- spec/views/bookmarks/_endnote.html.erb_spec.rb
|
258
327
|
- spec/views/bookmarks/_refworks.html.erb_spec.rb
|
328
|
+
- spec/views/catalog/_document_action.html.erb_spec.rb
|
329
|
+
- spec/views/catalog/index.atom.builder_spec.rb
|