traject 3.8.1 → 3.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
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.1
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
@@ -346,6 +346,7 @@ files:
346
346
  - test/test_support/escaped_character_reference.marc8.marc
347
347
  - test/test_support/george_eliot.marc
348
348
  - test/test_support/hebrew880s.marc
349
+ - test/test_support/iso639-3_lang.marc
349
350
  - test/test_support/louis_armstrong.marc
350
351
  - test/test_support/manufacturing_consent.marc
351
352
  - test/test_support/manuscript_online_thesis.marc
@@ -402,7 +403,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
402
403
  - !ruby/object:Gem::Version
403
404
  version: '0'
404
405
  requirements: []
405
- rubygems_version: 3.3.3
406
+ rubygems_version: 3.4.17
406
407
  signing_key:
407
408
  specification_version: 4
408
409
  summary: An easy to use, high-performance, flexible and extensible metadata transformation
@@ -452,6 +453,7 @@ test_files:
452
453
  - test/test_support/escaped_character_reference.marc8.marc
453
454
  - test/test_support/george_eliot.marc
454
455
  - test/test_support/hebrew880s.marc
456
+ - test/test_support/iso639-3_lang.marc
455
457
  - test/test_support/louis_armstrong.marc
456
458
  - test/test_support/manufacturing_consent.marc
457
459
  - test/test_support/manuscript_online_thesis.marc