stanford-mods 3.3.10 → 3.3.11
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 885964c534e2c709a314a1d4d01e6f7f4cc4ac04ba04976d59c4ec699854c017
|
4
|
+
data.tar.gz: 6d305fe8a02ccd15a2571ae8295207553966841513143013d01cc7731d3e429e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bb746a838909b70a9000ebab153be83bc0cf6b490dc037e997d9b2c64b222e48b23eb82f8bff4c7c8ec820f612dc748405830a7a8d82bcad03459b0d194f406
|
7
|
+
data.tar.gz: 44543ab5586fb344900af3b70b478e01e1e988368db343456a79b4a19d566423ad3372a4359d188633be6ecf82280e03ddb9b06ee0fba29401856eb7ec0e164e
|
@@ -74,14 +74,18 @@ module Stanford
|
|
74
74
|
end
|
75
75
|
|
76
76
|
# Values are the contents of:
|
77
|
-
# all subject subelements except subject/cartographic plus
|
77
|
+
# all subject subelements except subject/cartographic plus genre top level element
|
78
78
|
# @return [Array<String>] values for the subject_all_search Solr field for this document or nil if none
|
79
79
|
def subject_all_search
|
80
|
-
topic_search + geographic_search + subject_other_search + subject_other_subvy_search
|
80
|
+
topic_search + geographic_search + subject_other_search + subject_other_subvy_search + top_level_genres
|
81
81
|
end
|
82
82
|
|
83
83
|
protected #----------------------------------------------------------
|
84
84
|
|
85
|
+
def top_level_genres
|
86
|
+
term_values(:genre) || []
|
87
|
+
end
|
88
|
+
|
85
89
|
# convenience method for subject/name/namePart values (to avoid parsing the mods for the same thing multiple times)
|
86
90
|
def subject_names
|
87
91
|
mods_ng_xml.subject.name_el
|
@@ -238,6 +238,9 @@ describe "Subject fields (searchworks.rb)" do
|
|
238
238
|
@smods_rec.from_str(@ng_mods_no_subject.to_s)
|
239
239
|
expect(@smods_rec.subject_all_search).to eq []
|
240
240
|
end
|
241
|
+
it "should contain top level <genre> element data" do
|
242
|
+
expect(@smods_rec.subject_all_search).to include(@genre)
|
243
|
+
end
|
241
244
|
it "should not contain cartographic sub element" do
|
242
245
|
expect(@smods_rec.subject_all_search).not_to include(@cart_coord)
|
243
246
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stanford-mods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naomi Dushay
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-
|
12
|
+
date: 2025-08-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mods
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
216
|
requirements: []
|
217
|
-
rubygems_version: 3.5.
|
217
|
+
rubygems_version: 3.5.11
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: Stanford specific wrangling of MODS metadata
|