dor_indexing 1.1.1 → 1.2.1

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
2
  SHA256:
3
- metadata.gz: ea395c7b405e44c045614a8d0845951fbba621d102b821cdce577ea3970a8c54
4
- data.tar.gz: d99e1d98de1d4a4f076ccda9c8021cedbcbb0fe339f17650e9125c9f44dce785
3
+ metadata.gz: c31e983b699f6064d4662b48a5d9f0b7f36a83b050ff451147017d78dc5fedb4
4
+ data.tar.gz: 5ab52d4782ef1073218ee6e34007a11f4dcea877ca118695623dcb1379e7236c
5
5
  SHA512:
6
- metadata.gz: 7cd10f2a429e19fd5d176a45303ec50b8449dc86369d7fe5edfe378ef0618b1ce37520d2a26061e37cd529ecd355e9d87db3473511cfb5313284b902635aa448
7
- data.tar.gz: ee2286b9817bfa935bd9cf00228755ba220a0357b72ef055aa574c917b09b762e68fddc8ed209e0744a591be8afc68ccf8c8e719d7e54dec2ea63aa13d2a32db
6
+ metadata.gz: 1a85020056ebd55920cd84563c6194afa592cda2fda02d73d460c0c988a286013e8f4a159e7f69a25863b63b9be089387bf9637c150eaf00703a90ba925c34e8
7
+ data.tar.gz: 00252b4b17aefd3d3bff766713c0f167d5aecdf8444b702d44db0f73fc0d27cb7360801008e93720a7cd11e3559477e7d2e5b64ce1a65649e4eacc97aaed705e
data/Gemfile CHANGED
@@ -7,7 +7,6 @@ gemspec
7
7
 
8
8
  # Development dependencies
9
9
  gem 'byebug'
10
- gem 'dor-workflow-client', '~> 7.0'
11
10
  gem 'rake', '~> 13.0'
12
11
  gem 'rspec', '~> 3.0'
13
12
  gem 'rubocop'
data/Gemfile.lock CHANGED
@@ -1,8 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dor_indexing (1.1.1)
5
- cocina-models (~> 0.94.0)
4
+ dor_indexing (1.2.1)
5
+ cocina-models (~> 0.94.2)
6
+ dor-workflow-client (~> 7.0)
6
7
  honeybadger
7
8
  marc-vocab (~> 0.3.0)
8
9
  solrizer
@@ -12,7 +13,7 @@ PATH
12
13
  GEM
13
14
  remote: https://rubygems.org/
14
15
  specs:
15
- activesupport (7.1.2)
16
+ activesupport (7.1.3)
16
17
  base64
17
18
  bigdecimal
18
19
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -25,9 +26,9 @@ GEM
25
26
  ast (2.4.2)
26
27
  attr_extras (7.1.0)
27
28
  base64 (0.2.0)
28
- bigdecimal (3.1.5)
29
+ bigdecimal (3.1.6)
29
30
  byebug (11.1.3)
30
- cocina-models (0.94.0)
31
+ cocina-models (0.94.2)
31
32
  activesupport
32
33
  deprecation
33
34
  dry-struct (~> 1.0)
@@ -44,7 +45,7 @@ GEM
44
45
  thor
45
46
  zeitwerk (~> 2.1)
46
47
  commonmarker (0.23.10)
47
- concurrent-ruby (1.2.2)
48
+ concurrent-ruby (1.2.3)
48
49
  connection_pool (2.4.1)
49
50
  deprecation (1.1.0)
50
51
  activesupport
@@ -99,7 +100,7 @@ GEM
99
100
  multi_json
100
101
  language_server-protocol (3.17.0.3)
101
102
  marc-vocab (0.3.0)
102
- minitest (5.20.0)
103
+ minitest (5.21.2)
103
104
  mods (3.0.4)
104
105
  edtf (~> 3.0)
105
106
  iso-639
@@ -121,7 +122,7 @@ GEM
121
122
  openapi_parser (1.0.0)
122
123
  optimist (3.1.0)
123
124
  parallel (1.24.0)
124
- parser (3.3.0.2)
125
+ parser (3.3.0.5)
125
126
  ast (~> 2.4.1)
126
127
  racc
127
128
  patience_diff (1.2.0)
@@ -146,11 +147,11 @@ GEM
146
147
  rspec-support (3.12.1)
147
148
  rss (0.3.0)
148
149
  rexml
149
- rubocop (1.59.0)
150
+ rubocop (1.60.1)
150
151
  json (~> 2.3)
151
152
  language_server-protocol (>= 3.17.0)
152
153
  parallel (~> 1.10)
153
- parser (>= 3.2.2.4)
154
+ parser (>= 3.3.0.2)
154
155
  rainbow (>= 2.2.2, < 4.0)
155
156
  regexp_parser (>= 1.8, < 3.0)
156
157
  rexml (>= 3.2.5, < 4.0)
@@ -205,7 +206,6 @@ PLATFORMS
205
206
 
206
207
  DEPENDENCIES
207
208
  byebug
208
- dor-workflow-client (~> 7.0)
209
209
  dor_indexing!
210
210
  rake (~> 13.0)
211
211
  rspec (~> 3.0)
data/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ [![Gem Version](https://badge.fury.io/rb/dor_indexing.svg)](https://badge.fury.io/rb/dor_indexing)
2
+ [![CircleCI](https://circleci.com/gh/sul-dlss/dor_indexing.svg?style=svg)](https://circleci.com/gh/sul-dlss/dor_indexing)
3
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/debefc8907cf263f45e9/test_coverage)](https://codeclimate.com/github/sul-dlss/dor_indexing/test_coverage)
4
+
1
5
  # DorIndexing
2
6
 
3
7
  DorIndexing is a Ruby gem that creates Solr documents from Cocina objects for the purposes of indexing. It was extracted from DOR Indexing App.
data/dor_indexing.gemspec CHANGED
@@ -31,7 +31,8 @@ Gem::Specification.new do |spec|
31
31
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ['lib']
33
33
 
34
- spec.add_dependency 'cocina-models', '~> 0.94.0'
34
+ spec.add_dependency 'cocina-models', '~> 0.94.2'
35
+ spec.add_dependency 'dor-workflow-client', '~> 7.0'
35
36
  spec.add_dependency 'honeybadger'
36
37
  spec.add_dependency 'marc-vocab', '~> 0.3.0'
37
38
  spec.add_dependency 'solrizer'
@@ -21,15 +21,22 @@ class DorIndexing
21
21
  def to_solr
22
22
  {
23
23
  # title
24
- 'sw_display_title_tesim' => title,
24
+ 'main_title_tenim' => main_title, # for searching; 2 more field types are copyFields in solr schema.xml
25
+ 'full_title_tenim' => full_title, # for searching; 1 more field type is copyField in solr schema.xml
26
+ 'additional_titles_tenim' => additional_titles, # for searching; 1 more field type is copyField in solr schema.xml
27
+ 'display_title_ss' => display_title, # for display in Argo
28
+ 'sw_display_title_tesim' => display_title, # for display in Argo DEPRECATED in favor of display_title_ss
29
+
25
30
  # contributor
26
31
  'author_text_nostem_im' => author_primary, # primary author tokenized but not stemmed
27
32
  'sw_author_tesim' => author_primary, # used for author display in Argo
28
33
  'contributor_text_nostem_im' => author_all, # author names should be tokenized but not stemmed
29
34
  'contributor_orcids_ssim' => orcids,
35
+
30
36
  # topic
31
37
  'topic_ssim' => stanford_mods_record.topic_facet&.uniq,
32
38
  'topic_tesim' => stemmable_topics,
39
+
33
40
  # publication
34
41
  'originInfo_date_created_tesim' => creation_date,
35
42
  'originInfo_publisher_tesim' => publisher_name,
@@ -85,7 +92,19 @@ class DorIndexing
85
92
  DorIndexing::Builders::OrcidBuilder.build(Array(cocina.description.contributor))
86
93
  end
87
94
 
88
- def title
95
+ def main_title
96
+ Cocina::Models::Builders::TitleBuilder.main_title(cocina.description.title)
97
+ end
98
+
99
+ def full_title
100
+ Cocina::Models::Builders::TitleBuilder.full_title(cocina.description.title)
101
+ end
102
+
103
+ def additional_titles
104
+ Cocina::Models::Builders::TitleBuilder.additional_titles(cocina.description.title)
105
+ end
106
+
107
+ def display_title
89
108
  Cocina::Models::Builders::TitleBuilder.build(cocina.description.title)
90
109
  end
91
110
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class DorIndexing
4
- VERSION = '1.1.1'
4
+ VERSION = '1.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dor_indexing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Littman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-19 00:00:00.000000000 Z
11
+ date: 2024-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocina-models
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.94.0
19
+ version: 0.94.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.94.0
26
+ version: 0.94.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: dor-workflow-client
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '7.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '7.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: honeybadger
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -166,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
180
  - !ruby/object:Gem::Version
167
181
  version: '0'
168
182
  requirements: []
169
- rubygems_version: 3.4.14
183
+ rubygems_version: 3.4.13
170
184
  signing_key:
171
185
  specification_version: 4
172
186
  summary: Library for creating Solr documents for SDR indexing.