blacklight-marc 6.2.0 → 6.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b0b44e5b957d4a934e1df678bb1e80994e3fd3ec
4
- data.tar.gz: 9e12245e21d1da293c21cc3e8d0b6e4119a244a7
2
+ SHA256:
3
+ metadata.gz: 8e5b4577a4b98e98e1980bd542b762839999648a3bb630f74c91c0601d942930
4
+ data.tar.gz: 6bfcd917cafe69f71d2585426e2dfff361321c87d832ac046a649a45e5800e7d
5
5
  SHA512:
6
- metadata.gz: 4a6175d6dfc1be58f1d833549708a8708f840d24a556828fcbb113c444e5590c0c6c495f42a1c8a6fe9caabee06f6a46cb56e08662cd5249160be0715f37f4b1
7
- data.tar.gz: 28d2c19fabb43958c4ea0649035ad010898589365ee5f79ffdabdf2e2d2316f2097283719204e8657e894fcc237a3b4cca5fa159a0817e38c1b8e990efbfc937
6
+ metadata.gz: f43a53f1aeea6010586d31d3a11412cbcbd66e6f209734fde7501cfca444c894154b9d226d276331d7f8d91c06b9a49253bc35a7f118b25d79d869161114241f
7
+ data.tar.gz: 63794ad1115771f67c7e4d736e7e5991987add27ddaa59c250afe2352a64259a4132a374f2acbed700d6439daf6db826b9872d0e91dd61fd5ef268af4aa641a1
File without changes
data/Rakefile CHANGED
@@ -2,8 +2,6 @@ require "bundler/gem_tasks"
2
2
  require 'rspec/core/rake_task'
3
3
  require 'engine_cart/rake_task'
4
4
 
5
- EngineCart.fingerprint_proc = EngineCart.rails_fingerprint_proc
6
-
7
5
  RSpec::Core::RakeTask.new(:spec)
8
6
 
9
7
  task :default => [:ci]
@@ -21,13 +21,11 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency 'blacklight', '> 6.1', '< 8.a'
22
22
  spec.add_dependency "library_stdnums"
23
23
  spec.add_dependency "rails"
24
- # Let's allow future versions of marc, count on
25
- # them to be backwards compat until 1.1
26
- spec.add_dependency "marc", ">= 0.4.3", "< 1.1" # Marc record parser.
27
- spec.add_dependency "traject", "~>2.1"
24
+ spec.add_dependency "marc", ">= 0.4.3", "< 2.0" # Marc record parser.
25
+ spec.add_dependency "traject", ">= 2.1", "< 4"
28
26
  spec.add_dependency 'marc-fastxmlwriter' # NO REXML
29
27
 
30
- spec.add_development_dependency "bundler", "~> 1.3"
28
+ spec.add_development_dependency "bundler"
31
29
  spec.add_development_dependency "rake"
32
30
  spec.add_development_dependency "rspec-rails", '~> 3.0'
33
31
  spec.add_development_dependency "rspec-activemodel-mocks"
@@ -35,5 +33,5 @@ Gem::Specification.new do |spec|
35
33
  spec.add_development_dependency "capybara"
36
34
  spec.add_development_dependency "coveralls"
37
35
  spec.add_development_dependency "simplecov"
38
- spec.add_development_dependency "engine_cart", "~> 1.0"
36
+ spec.add_development_dependency "engine_cart", "~> 2.0"
39
37
  end
@@ -1,14 +1,20 @@
1
1
  require 'library_stdnums'
2
2
  require 'traject/null_writer'
3
3
  require 'traject/macros/marc21_semantics'
4
-
4
+
5
5
  require 'traject/macros/marc_format_classifier'
6
-
6
+
7
7
  require 'traject/solr_json_writer'
8
8
  require 'traject/marc_reader'
9
9
  require 'marc/fastxmlwriter'
10
10
 
11
- class Blacklight::Marc::Indexer < Traject::Indexer
11
+ unless defined?(Traject::Indexer::MarcIndexer)
12
+ # shim to get traject 2 to act like traject 3
13
+ class Traject::Indexer::MarcIndexer < Traject::Indexer
14
+ end
15
+ end
16
+
17
+ class Blacklight::Marc::Indexer < Traject::Indexer::MarcIndexer
12
18
  autoload :Dewey, 'blacklight/marc/indexer/dewey'
13
19
  autoload :Formats, 'blacklight/marc/indexer/formats'
14
20
 
@@ -77,4 +83,4 @@ class Blacklight::Marc::Indexer < Traject::Indexer
77
83
  accumulator << MARC::FastXMLWriter.encode(record)
78
84
  end
79
85
  end
80
- end
86
+ end
@@ -1,5 +1,5 @@
1
1
  module Blacklight
2
2
  module Marc
3
- VERSION = '6.2.0'
3
+ VERSION = '6.3.0'
4
4
  end
5
5
  end
data/solr/conf/schema.xml CHANGED
@@ -16,10 +16,10 @@
16
16
  limitations under the License.
17
17
  -->
18
18
 
19
- <!--
19
+ <!--
20
20
  This is the Solr schema file. This file should be named "schema.xml" and
21
21
  should be in the conf directory under the solr home
22
- (i.e. ./solr/conf/schema.xml by default)
22
+ (i.e. ./solr/conf/schema.xml by default)
23
23
  or located where the classloader for the Solr webapp can find it.
24
24
 
25
25
  This example schema is the recommended starting point for users.
@@ -51,7 +51,7 @@
51
51
  version="1.4" is Solr's version number for the schema syntax and semantics. It should
52
52
  not normally be changed by applications.
53
53
  1.0: multiValued attribute did not exist, all fields are multiValued by nature
54
- 1.1: multiValued attribute introduced, false by default
54
+ 1.1: multiValued attribute introduced, false by default
55
55
  1.2: omitTermFreqAndPositions attribute introduced, true by default except for text fields.
56
56
  1.3: removed optional field compress feature
57
57
  1.4: default auto-phrase (QueryParser feature) to off
@@ -88,7 +88,7 @@
88
88
  - If sortMissingLast="false" and sortMissingFirst="false" (the default),
89
89
  then default lucene sorting will be used which places docs without the
90
90
  field first in an ascending sort and last in a descending sort.
91
- -->
91
+ -->
92
92
 
93
93
  <!--
94
94
  Default numeric field types. For faster range queries, consider the tint/tfloat/tlong/tdouble types.
@@ -115,7 +115,7 @@
115
115
 
116
116
  <!-- The format for this date field is of the form 1995-12-31T23:59:59Z, and
117
117
  is a more restricted form of the canonical representation of dateTime
118
- http://www.w3.org/TR/xmlschema-2/#dateTime
118
+ http://www.w3.org/TR/xmlschema-2/#dateTime
119
119
  The trailing "Z" designates UTC time and is mandatory.
120
120
  Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z
121
121
  All other components are mandatory.
@@ -130,7 +130,7 @@
130
130
  NOW/DAY+6MONTHS+3DAYS
131
131
  ... 6 months and 3 days in the future from the start of
132
132
  the current day
133
-
133
+
134
134
  Consult the DateField javadocs for more information.
135
135
 
136
136
  Note: For faster range queries, consider the tdate type
@@ -142,11 +142,11 @@
142
142
 
143
143
  <!-- The "RandomSortField" is not used to store or search any
144
144
  data. You can declare fields of this type it in your schema
145
- to generate pseudo-random orderings of your docs for sorting
146
- purposes. The ordering is generated based on the field name
145
+ to generate pseudo-random orderings of your docs for sorting
146
+ purposes. The ordering is generated based on the field name
147
147
  and the version of the index, As long as the index version
148
148
  remains unchanged, and the same field name is reused,
149
- the ordering of the docs will be consistent.
149
+ the ordering of the docs will be consistent.
150
150
  If you want different psuedo-random orderings of documents,
151
151
  for the same version of the index, use a dynamicField and
152
152
  change the name
@@ -351,13 +351,13 @@
351
351
  <filter class="solr.TrimFilterFactory" />
352
352
  <!-- The PatternReplaceFilter gives you the flexibility to use
353
353
  Java Regular expression to replace any sequence of characters
354
- matching a pattern with an arbitrary replacement string,
354
+ matching a pattern with an arbitrary replacement string,
355
355
  which may include back references to portions of the original
356
356
  string matched by the pattern.
357
-
357
+
358
358
  See the Java Regular Expression documentation for more
359
359
  information on pattern and replacement string syntax.
360
-
360
+
361
361
  http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/package-summary.html
362
362
  -->
363
363
  <filter class="solr.PatternReplaceFilterFactory"
@@ -365,7 +365,7 @@
365
365
  />
366
366
  </analyzer>
367
367
  </fieldType>
368
-
368
+
369
369
  <fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" >
370
370
  <analyzer>
371
371
  <tokenizer class="solr.StandardTokenizerFactory"/>
@@ -379,7 +379,7 @@
379
379
  <!--
380
380
  The DelimitedPayloadTokenFilter can put payloads on tokens... for example,
381
381
  a token of "foo|1.4" would be indexed as "foo" with a payload of 1.4f
382
- Attributes of the DelimitedPayloadTokenFilterFactory :
382
+ Attributes of the DelimitedPayloadTokenFilterFactory :
383
383
  "delimiter" - a one character delimiter. Default is | (pipe)
384
384
  "encoder" - how to encode the following value into a playload
385
385
  float -> org.apache.lucene.analysis.payloads.FloatEncoder,
@@ -406,12 +406,12 @@
406
406
  </fieldType>
407
407
 
408
408
  <!-- since fields of this type are by default not stored or indexed,
409
- any data added to them will be ignored outright. -->
409
+ any data added to them will be ignored outright. -->
410
410
  <fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
411
411
 
412
412
  <!-- This point type indexes the coordinates as separate fields (subFields)
413
413
  If subFieldType is defined, it references a type, and a dynamic field
414
- definition is created matching *___<typename>. Alternately, if
414
+ definition is created matching *___<typename>. Alternately, if
415
415
  subFieldSuffix is defined, that is used to create the subFields.
416
416
  Example: if subFieldType="double", then the coordinates would be
417
417
  indexed in fields myloc_0___double,myloc_1___double.
@@ -436,7 +436,7 @@
436
436
  <fields>
437
437
  <!-- Valid attributes for fields:
438
438
  name: mandatory - the name for the field
439
- type: mandatory - the name of a previously defined type from the
439
+ type: mandatory - the name of a previously defined type from the
440
440
  <types> section
441
441
  indexed: true if this field should be indexed (searchable or sortable)
442
442
  stored: true if this field should be retrievable
@@ -449,9 +449,9 @@
449
449
  given field.
450
450
  When using MoreLikeThis, fields used for similarity should be
451
451
  stored for best performance.
452
- termPositions: Store position information with the term vector.
452
+ termPositions: Store position information with the term vector.
453
453
  This will increase storage costs.
454
- termOffsets: Store offset information with the term vector. This
454
+ termOffsets: Store offset information with the term vector. This
455
455
  will increase storage costs.
456
456
  default: a value that should be used if no value is specified
457
457
  when adding a document.
@@ -463,7 +463,7 @@
463
463
  <field name="timestamp" type="date" indexed="true" stored="true" default="NOW" multiValued="false"/>
464
464
  <!-- default, catch all search field -->
465
465
  <field name="text" type="text" indexed="true" stored="false" multiValued="true"/>
466
-
466
+
467
467
  <!-- these display fields are NOT multi-valued -->
468
468
  <field name="marc_display" type="string" indexed="false" stored="true" multiValued="false"/>
469
469
  <field name="title_display" type="string" indexed="false" stored="true" multiValued="false"/>
@@ -472,7 +472,7 @@
472
472
  <field name="subtitle_vern_display" type="string" indexed="false" stored="true" multiValued="false"/>
473
473
  <field name="author_display" type="string" indexed="false" stored="true" multiValued="false"/>
474
474
  <field name="author_vern_display" type="string" indexed="false" stored="true" multiValued="false"/>
475
-
475
+
476
476
  <!-- these fields are also used for display, so they must be stored -->
477
477
  <field name="isbn_t" type="text" indexed="true" stored="true" multiValued="true"/>
478
478
  <field name="language_facet" type="string" indexed="true" stored="true" multiValued="true" />
@@ -484,11 +484,11 @@
484
484
  <!-- pub_date sort uses new trie-based int fields, which are recommended for any int and are displayable, sortable, and range-quer
485
485
  we use 'tint' for faster range-queries. -->
486
486
  <field name="pub_date_sort" type="tint" indexed="true" stored="true" multiValued="false"/>
487
-
487
+
488
488
  <!-- format is used for facet, display, and choosing which partial to use for the show view, so it must be stored and indexed -->
489
489
  <field name="format" type="string" indexed="true" stored="true"/>
490
490
 
491
-
491
+
492
492
 
493
493
  <!-- Dynamic field definitions. If a field name is not found, dynamicFields
494
494
  will be used if the name matches any of the patterns.
@@ -531,30 +531,24 @@
531
531
  <dynamicField name="*spell" type="textSpell" indexed="true" stored="false" multiValued="true" />
532
532
  <dynamicField name="*suggest" type="textSuggest" indexed="true" stored="false" multiValued="true" />
533
533
 
534
- <!-- uncomment the following to ignore any fields that don't already match an existing
535
- field name or dynamic field, rather than reporting them as an error.
536
- alternately, change the type="ignored" to some other type e.g. "text" if you want
537
- unknown fields indexed and/or stored by default -->
534
+ <!-- uncomment the following to ignore any fields that don't already match an existing
535
+ field name or dynamic field, rather than reporting them as an error.
536
+ alternately, change the type="ignored" to some other type e.g. "text" if you want
537
+ unknown fields indexed and/or stored by default -->
538
538
  <!--dynamicField name="*" type="ignored" multiValued="true" /-->
539
-
539
+
540
540
  </fields>
541
541
 
542
- <!-- Field to use to determine and enforce document uniqueness.
542
+ <!-- Field to use to determine and enforce document uniqueness.
543
543
  Unless this field is marked with required="false", it will be a required field
544
544
  -->
545
545
  <uniqueKey>id</uniqueKey>
546
546
 
547
- <!-- field for the QueryParser to use when an explicit fieldname is absent -->
548
- <defaultSearchField>text</defaultSearchField>
549
-
550
- <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
551
- <solrQueryParser defaultOperator="OR"/>
552
-
553
547
  <!-- copyField commands copy one field to another at the time a document
554
548
  is added to the index. It's used either to index the same field differently,
555
549
  or to add multiple fields to the same field for easier/faster searching. -->
556
550
  <!-- Copy Fields -->
557
-
551
+
558
552
  <!-- unstemmed fields -->
559
553
  <copyField source="title_t" dest="title_unstem_search"/>
560
554
  <copyField source="subtitle_t" dest="subtitle_unstem_search"/>
@@ -566,11 +560,11 @@
566
560
  <copyField source="subject_t" dest="subject_unstem_search"/>
567
561
  <copyField source="subject_addl_t" dest="subject_addl_unstem_search"/>
568
562
  <copyField source="subject_topic_facet" dest="subject_topic_unstem_search"/>
569
-
563
+
570
564
  <!-- sort fields -->
571
565
  <copyField source="pub_date" dest="pub_date_sort"/>
572
-
573
-
566
+
567
+
574
568
  <!-- spellcheck fields -->
575
569
  <!-- default spell check; should match fields for default request handler -->
576
570
  <!-- it won't work with a copy of a copy field -->
@@ -588,8 +582,8 @@
588
582
  <!-- subject spell check; should match fields for subject request handler -->
589
583
  <copyField source="subject_topic_facet" dest="subject_spell"/>
590
584
  <copyField source="subject_t" dest="subject_spell"/>
591
- <copyField source="subject_addl_t" dest="subject_spell"/>
592
-
585
+ <copyField source="subject_addl_t" dest="subject_spell"/>
586
+
593
587
  <!-- OpenSearch query field should match request handler search fields -->
594
588
  <copyField source="title_t" dest="opensearch_display"/>
595
589
  <copyField source="subtitle_t" dest="opensearch_display"/>
@@ -600,22 +594,22 @@
600
594
  <copyField source="author_addl_t" dest="opensearch_display"/>
601
595
  <copyField source="subject_topic_facet" dest="opensearch_display"/>
602
596
  <copyField source="subject_t" dest="opensearch_display"/>
603
- <copyField source="subject_addl_t" dest="opensearch_display"/>
597
+ <copyField source="subject_addl_t" dest="opensearch_display"/>
604
598
 
605
599
  <!-- for suggestions -->
606
600
  <copyField source="*_t" dest="suggest"/>
607
601
  <copyField source="*_facet" dest="suggest"/>
608
-
609
- <!-- Above, multiple source fields are copied to the [text] field.
610
- Another way to map multiple source fields to the same
611
- destination field is to use the dynamic field syntax.
602
+
603
+ <!-- Above, multiple source fields are copied to the [text] field.
604
+ Another way to map multiple source fields to the same
605
+ destination field is to use the dynamic field syntax.
612
606
  copyField also supports a maxChars to copy setting. -->
613
-
607
+
614
608
  <!-- <copyField source="*_t" dest="text" maxChars="3000"/> -->
615
609
 
616
610
  <!-- copy name to alphaNameSort, a field designed for sorting by name -->
617
611
  <!-- <copyField source="name" dest="alphaNameSort"/> -->
618
-
612
+
619
613
 
620
614
  <!-- Similarity is the scoring routine for each document vs. a query.
621
615
  A custom similarity may be specified here, but the default is fine
@@ -8,7 +8,7 @@ describe CatalogController do
8
8
  end
9
9
  render_views
10
10
  it "should render endnote" do
11
- get :endnote, id: '86207417', format: 'endnote'
11
+ get :endnote, params: { id: '86207417' }, format: 'endnote'
12
12
  expect(response.body).to eq "%0 Generic
13
13
  %A Finkel, Chaim Jacob.
14
14
  %C Yerushalayim :
@@ -12,6 +12,6 @@ describe "Bookmark tools" do
12
12
  visit solr_document_path('2007020969')
13
13
  click_button 'Bookmark'
14
14
  visit "/bookmarks.refworks_marc_txt?q="
15
- expect(page).to have_content "LEADER 01490cam a2200361 a 4500001 2007020969"
15
+ expect(page).to have_content "LEADER 01490cam a2200361 a 4500001 2007020969"
16
16
  end
17
17
  end
@@ -16,7 +16,7 @@ class TestAppGenerator < Rails::Generators::Base
16
16
  def run_blacklight_generator
17
17
  say_status("warning", "GENERATING BL", :yellow)
18
18
  gem 'blacklight'
19
- gem "traject", '~>2.0'
19
+ gem "traject", '~>3.0'
20
20
  Bundler.with_clean_env do
21
21
  run "bundle install"
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-marc
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 6.3.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: 2017-07-03 00:00:00.000000000 Z
11
+ date: 2021-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blacklight
@@ -67,7 +67,7 @@ dependencies:
67
67
  version: 0.4.3
68
68
  - - "<"
69
69
  - !ruby/object:Gem::Version
70
- version: '1.1'
70
+ version: '2.0'
71
71
  type: :runtime
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
@@ -77,21 +77,27 @@ dependencies:
77
77
  version: 0.4.3
78
78
  - - "<"
79
79
  - !ruby/object:Gem::Version
80
- version: '1.1'
80
+ version: '2.0'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: traject
83
83
  requirement: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - "~>"
85
+ - - ">="
86
86
  - !ruby/object:Gem::Version
87
87
  version: '2.1'
88
+ - - "<"
89
+ - !ruby/object:Gem::Version
90
+ version: '4'
88
91
  type: :runtime
89
92
  prerelease: false
90
93
  version_requirements: !ruby/object:Gem::Requirement
91
94
  requirements:
92
- - - "~>"
95
+ - - ">="
93
96
  - !ruby/object:Gem::Version
94
97
  version: '2.1'
98
+ - - "<"
99
+ - !ruby/object:Gem::Version
100
+ version: '4'
95
101
  - !ruby/object:Gem::Dependency
96
102
  name: marc-fastxmlwriter
97
103
  requirement: !ruby/object:Gem::Requirement
@@ -110,16 +116,16 @@ dependencies:
110
116
  name: bundler
111
117
  requirement: !ruby/object:Gem::Requirement
112
118
  requirements:
113
- - - "~>"
119
+ - - ">="
114
120
  - !ruby/object:Gem::Version
115
- version: '1.3'
121
+ version: '0'
116
122
  type: :development
117
123
  prerelease: false
118
124
  version_requirements: !ruby/object:Gem::Requirement
119
125
  requirements:
120
- - - "~>"
126
+ - - ">="
121
127
  - !ruby/object:Gem::Version
122
- version: '1.3'
128
+ version: '0'
123
129
  - !ruby/object:Gem::Dependency
124
130
  name: rake
125
131
  requirement: !ruby/object:Gem::Requirement
@@ -224,14 +230,14 @@ dependencies:
224
230
  requirements:
225
231
  - - "~>"
226
232
  - !ruby/object:Gem::Version
227
- version: '1.0'
233
+ version: '2.0'
228
234
  type: :development
229
235
  prerelease: false
230
236
  version_requirements: !ruby/object:Gem::Requirement
231
237
  requirements:
232
238
  - - "~>"
233
239
  - !ruby/object:Gem::Version
234
- version: '1.0'
240
+ version: '2.0'
235
241
  description: MARC support for Blacklight
236
242
  email:
237
243
  - justin@curationexperts.com
@@ -240,7 +246,7 @@ extensions: []
240
246
  extra_rdoc_files: []
241
247
  files:
242
248
  - ".gitignore"
243
- - ".solr_wrapper.yaml"
249
+ - ".solr_wrapper.yml"
244
250
  - ".travis.yml"
245
251
  - Gemfile
246
252
  - LICENSE
@@ -345,8 +351,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
345
351
  - !ruby/object:Gem::Version
346
352
  version: '0'
347
353
  requirements: []
348
- rubyforge_project:
349
- rubygems_version: 2.6.11
354
+ rubygems_version: 3.1.2
350
355
  signing_key:
351
356
  specification_version: 4
352
357
  summary: MARC support for Blacklight