pennmarc 1.4.3 → 1.4.4

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: 054ef76358b852e38d5b5b141928dd20b810a8b13d4e82bc49d5acffb9349350
4
- data.tar.gz: a8caa31d65cd455efa11f36e40c9c98c0320944495c5dad2a7169d8512be6306
3
+ metadata.gz: d4a2e39c878c88cf1cdfdf3c72a102c8bb9b5677939e70b6e6824f0d027acfa3
4
+ data.tar.gz: 062afb834246c65bedf207c28c5e8ea81d73926b36631be963a31459548537b4
5
5
  SHA512:
6
- metadata.gz: 1a7428835604fd9f9377e9791c876f5f78ea797fb953b59669dfa699a1ac93b961f90265135726b0ebec2761444509745a66cbcd604ed383fe281d3539b98372
7
- data.tar.gz: 6d12216bf9716493fb372e2ef1d7e88003f63ca02b5433fb84fc144b854801deae12bfb52170418f64d1a837b2e842da6df1135b295f63f0ba9e2658b9b82b3d
6
+ metadata.gz: 77c4b9f5133f7be9142970428718a634d762e120c04d3feed44c5a50b76415f81adc41b4c5ca1a31fe155bd0d7e80abf013fd7b843d52e20d3fbf2f837770326
7
+ data.tar.gz: 3e74b0b50f37762ebb4c20ea3816a05f4664cecdc4084a535c10bb6db34c25a3a8545d25e726632031cc327d6dcf4a61dd8555e4e119a6060e663b128823558e
@@ -92,8 +92,8 @@ module PennMARC
92
92
  fields = record.fields(TAGS + %w[700 710])
93
93
  fields += record.fields('880').select { |field| subfield_value?(field, '6', /^(#{TAGS.join('|')})/) }
94
94
  fields.filter_map { |field|
95
- # for 700 and 880 entries, only include ones with relator code ('4') = aut, or code 'e' = 'author'
96
- next if field.tag.in?(%w[700 880]) && !describes_author?(field)
95
+ # for 700, 710 and 880 entries, only include ones with relator code ('4') = aut, or code 'e' = 'author'
96
+ next if field.tag.in?(%w[700 710 880]) && !describes_author?(field)
97
97
 
98
98
  parse_show_value(field, relator_map: relator_map)
99
99
  }.uniq
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PennMARC
4
- VERSION = '1.4.3'
4
+ VERSION = '1.4.4'
5
5
  end
@@ -112,26 +112,29 @@ describe 'PennMARC::Creator' do
112
112
  end
113
113
  end
114
114
 
115
- context 'with a corporate author records in 110 and 710' do
115
+ context 'with an author in 100 and a corporate author records in 710' do
116
116
  let(:fields) do
117
- [marc_field(tag: '110', subfields: { a: 'Island Records', '0': 'http://cool.uri/12345' }),
118
- marc_field(tag: '710', subfields: { a: 'Def Jam Records', '0': 'http://cool.uri/45678' })]
117
+ [marc_field(tag: '100', subfields: { a: 'Sparky the Fire Dog', '4': 'aut' }),
118
+ marc_field(tag: '710', subfields: { a: 'National Fire Protection Association', '4': 'aut' })]
119
119
  end
120
120
 
121
- it 'returns single author value' do
121
+ it 'returns two author values' do
122
122
  values = helper.extended_show(record)
123
- expect(values).to contain_exactly 'Def Jam Records', 'Island Records'
123
+ expect(values).to contain_exactly 'Sparky the Fire Dog, Author.',
124
+ 'National Fire Protection Association, Author.'
124
125
  end
125
126
  end
126
127
 
127
- context 'with author records in 100 and 700' do
128
+ context 'with author records in 100 and 700, and non-author content in 710' do
128
129
  let(:fields) do
129
130
  [marc_field(tag: '100', subfields: { a: 'Surname, Name', '0': 'http://cool.uri/12345', d: '1900-2000',
130
131
  e: 'author.', '4': 'http://cool.uri/vocabulary/relators/aut' }),
131
132
  marc_field(tag: '700', subfields: { a: 'Surname, Alternative', '6': '100', '4': 'aut' }),
132
133
  marc_field(tag: '700', subfields: { a: 'Surname, Third', e: 'author.', '6': '100' }),
133
134
  marc_field(tag: '700', subfields: { a: 'Surname, Ignore', e: 'editor.', '6': '100' }),
134
- marc_field(tag: '700', subfields: { a: 'Surname, Not Included', '6': '100', '4': 'edt' })]
135
+ marc_field(tag: '700', subfields: { a: 'Surname, Not Included', '6': '100', '4': 'edt' }),
136
+ marc_field(tag: '710',
137
+ subfields: { a: 'Culinary Archive and Library (University of Pennsylvania)' })]
135
138
  end
136
139
 
137
140
  it 'returns three authors' do
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.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Kanning
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2026-03-25 00:00:00.000000000 Z
15
+ date: 2026-03-26 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activesupport