traject 3.8.0 → 3.8.2

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.
@@ -87,8 +87,9 @@ describe "Traject::Macros::Marc21Semantics" do
87
87
 
88
88
  assert_equal ["Business renaissance quarterly [electronic resource]."], output["author_sort"]
89
89
  assert_equal [""], @indexer.map_record(empty_record)['author_sort']
90
-
91
90
  end
91
+
92
+
92
93
  end
93
94
 
94
95
  describe "marc_sortable_title" do
@@ -107,6 +108,16 @@ describe "Traject::Macros::Marc21Semantics" do
107
108
 
108
109
  assert_equal ["Business renaissance quarterly"], output["title_sort"]
109
110
  end
111
+
112
+ it "respects non-filing when the first subfield isn't alphabetic" do
113
+ @record = MARC::Reader.new(support_file_path "the_business_ren.marc").first
114
+ @record.fields("245").first.subfields.unshift MARC::Subfield.new("6", "245-03")
115
+ output = @indexer.map_record(@record)
116
+ assert_equal ["Business renaissance quarterly"], output["title_sort"]
117
+
118
+
119
+ end
120
+
110
121
  it "works with a record with no 245$ab" do
111
122
  @record = MARC::Reader.new(support_file_path "245_no_ab.marc").to_a.first
112
123
  output = @indexer.map_record(@record)
@@ -127,6 +138,14 @@ describe "Traject::Macros::Marc21Semantics" do
127
138
  assert_equal({}, @indexer.map_record(empty_record))
128
139
 
129
140
  end
141
+ it "can handle ISO 639-3 language codes" do
142
+ @record = MARC::Reader.new(support_file_path "iso639-3_lang.marc").to_a.first
143
+ output = @indexer.map_record(@record)
144
+
145
+ assert_equal ["Norwegian", "English", "Norwegian (Bokmål)"], output["languages"]
146
+ assert_equal({}, @indexer.map_record(empty_record))
147
+
148
+ end
130
149
  end
131
150
 
132
151
  describe "marc_instrumentation_humanized" do
@@ -0,0 +1 @@
1
+ 01498cam a2200385 i 45000010009000000050017000090080041000269060045000679250042001129550090001540100017002440200029002610350024002900400023003140410013003370410023003500420008003730430012003810500023003932450107004162640044005233000046005673360026006133370028006393380027006675040041006945460045007355850101007806500045008816500044009267000032009707100065010029230029010679850016010962206778720211129111712.0210529s2020 no a b 000 0 nor  a7bcbccorigresd3encipf20gy-gencatlg0 aacquireb1 shelf copyxpolicy default ave21 2021-06-04bff16 2021-09-23aff00 2021-09-23 to GS/SBCGiff07 2021-11-29 to BCCD a 2021378586 a9788293654162qpaperback a(GyWOH)har205007114 aDLCbengcDLCerda1 anoraeng17anobaeng2iso639-3 apcc af------00aN7380.5b.A47 202000aAlpha Crucis :bcontemporary African art /credaktør: Gunnar B. Kvaran ; oversettelse: Halvor Haugen. 1aOslo :bAstrup Fearnley Museet,c[2020] a272 pages :bcolor illustrations ;c26 cm atextbtxt2rdacontent aunmediatedbn2rdamedia avolumebnc2rdacarrier aIncludes bibliographical references. aParallel texts in English and Norwegian. aIn conjunction with an exhibition held at Astrup Fearnley Museum, Oslo, January 31-May 17, 2020. 0aArt, Africany21st centuryvExhibitions. 0aArt, Moderny21st centuryvExhibitions.1 aKvaran, Gunnar B.,eeditor.2 aAstrup Fearnley museet for moderne kunst,ehost institution. d20210531n0255802sGyWOH eVENDOR LOAD
data/traject.gemspec CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
33
33
  spec.add_dependency 'marc-fastxmlwriter', '~>1.0' # fast marc->xml
34
34
  spec.add_dependency "nokogiri", "~> 1.9" # NokogiriIndexer
35
35
 
36
- spec.add_development_dependency 'bundler', '~>2.0'
36
+ spec.add_development_dependency 'bundler', '>= 1.7', '< 3'
37
37
 
38
38
  spec.add_development_dependency "rake"
39
39
  spec.add_development_dependency "minitest"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: traject
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.0
4
+ version: 3.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-12-09 00:00:00.000000000 Z
12
+ date: 2024-02-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: concurrent-ruby
@@ -167,16 +167,22 @@ dependencies:
167
167
  name: bundler
168
168
  requirement: !ruby/object:Gem::Requirement
169
169
  requirements:
170
- - - "~>"
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '1.7'
173
+ - - "<"
171
174
  - !ruby/object:Gem::Version
172
- version: '2.0'
175
+ version: '3'
173
176
  type: :development
174
177
  prerelease: false
175
178
  version_requirements: !ruby/object:Gem::Requirement
176
179
  requirements:
177
- - - "~>"
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ version: '1.7'
183
+ - - "<"
178
184
  - !ruby/object:Gem::Version
179
- version: '2.0'
185
+ version: '3'
180
186
  - !ruby/object:Gem::Dependency
181
187
  name: rake
182
188
  requirement: !ruby/object:Gem::Requirement
@@ -340,6 +346,7 @@ files:
340
346
  - test/test_support/escaped_character_reference.marc8.marc
341
347
  - test/test_support/george_eliot.marc
342
348
  - test/test_support/hebrew880s.marc
349
+ - test/test_support/iso639-3_lang.marc
343
350
  - test/test_support/louis_armstrong.marc
344
351
  - test/test_support/manufacturing_consent.marc
345
352
  - test/test_support/manuscript_online_thesis.marc
@@ -396,7 +403,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
396
403
  - !ruby/object:Gem::Version
397
404
  version: '0'
398
405
  requirements: []
399
- rubygems_version: 3.3.3
406
+ rubygems_version: 3.4.17
400
407
  signing_key:
401
408
  specification_version: 4
402
409
  summary: An easy to use, high-performance, flexible and extensible metadata transformation
@@ -446,6 +453,7 @@ test_files:
446
453
  - test/test_support/escaped_character_reference.marc8.marc
447
454
  - test/test_support/george_eliot.marc
448
455
  - test/test_support/hebrew880s.marc
456
+ - test/test_support/iso639-3_lang.marc
449
457
  - test/test_support/louis_armstrong.marc
450
458
  - test/test_support/manufacturing_consent.marc
451
459
  - test/test_support/manuscript_online_thesis.marc