pennmarc 1.0.20 → 1.0.21

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5cec796509d9822289de751b33395fa6de1c1c23fdbdf78de54de11152674733
4
- data.tar.gz: 9a2aa7d1ca7c7bd27627fac7f676492100eb36cb823469fd5b7e987244795cee
3
+ metadata.gz: ec3fde9cb69168e9d4f3221df750bc9b6345409a2e413e0b7117f66f7e1be843
4
+ data.tar.gz: 32cb166f43c18235282e10927c9589e9b62b4889c247adf4628a8459a5c4e47c
5
5
  SHA512:
6
- metadata.gz: 2076675bbbc9bc38f3c36ba0932211ee4726d618de8d3781cae5d314576162b13bd256918910e534b638cd601a5f0e2db0936c7e8fd7fb58f1788ef1f28552d2
7
- data.tar.gz: d963b043b08eff3567d904b18d938cddd3edc7a8d5238c720203cce52657cc86f6f20445e3d1c0de7221c628822990c87ea4cb0a2191b33b49992f8d6fa87ac9
6
+ metadata.gz: 3e114ad5839e035a3297f45548a4dccad0bd3b752b01126612307c0cb08d30cf2d2da7a752f6049a48014e9145c7fdb882294a936b998f5d6c644154609ec21d
7
+ data.tar.gz: 3d2874d2d62231efb4d887ae14fc69ccdc7bd3ca3d4fa929a56c6a7b39b121f10cfc34cb1222e80fdbcac38395b9279d3c05b130c166fe011f93ff7b4a0fea74
@@ -165,7 +165,7 @@ module PennMARC
165
165
  join_subfields(field, &subfield_not_in?(%w[5 6 8 e w]))
166
166
  end
167
167
  titles = standardized_titles + record.fields('880').filter_map do |field|
168
- next unless subfield_undefined?(field, 'i') ||
168
+ next unless subfield_undefined?(field, 'i') &&
169
169
  subfield_value?(field, '6', /^(130|240|730)/)
170
170
 
171
171
  join_subfields field, &subfield_not_in?(%w[5 6 8 e w])
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PennMARC
4
- VERSION = '1.0.20'
4
+ VERSION = '1.0.21'
5
5
  end
@@ -203,7 +203,9 @@ describe 'PennMARC::Title' do
203
203
  marc_field(tag: '730', indicator2: '', subfields: { a: 'Yet Another Uniform Title' }),
204
204
  marc_field(tag: '730', indicator1: '0', indicator2: '2', subfields: { a: 'Not Printed Title' }),
205
205
  marc_field(tag: '730', indicator1: '', subfields: { i: 'Subfield i Title' }),
206
- marc_field(tag: '880', subfields: { '6': '240', a: 'Translated Uniform Title' })
206
+ marc_field(tag: '880', subfields: { '6': '240', a: 'Translated Uniform Title' }),
207
+ marc_field(tag: '880', subfields: { '6': '730', a: 'Alt Ignore', i: 'Alt Subfield i' }),
208
+ marc_field(tag: '880', subfields: { '6': '100', a: 'Alt Ignore' })
207
209
  ]
208
210
  end
209
211
 
@@ -212,7 +214,7 @@ describe 'PennMARC::Title' do
212
214
  expect(values).to contain_exactly(
213
215
  'Another Uniform Title', 'Translated Uniform Title', 'Uniform Title 2000', 'Yet Another Uniform Title'
214
216
  )
215
- expect(values).not_to include 'Not Printed Title', 'Subfield i Title'
217
+ expect(values).not_to include 'Not Printed Title', 'Subfield i Title', 'Alt Ignore'
216
218
  end
217
219
  end
218
220
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pennmarc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.20
4
+ version: 1.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Kanning