stanford-mods 3.3.6 → 3.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stanford-mods/imprint.rb +10 -9
- data/lib/stanford-mods/version.rb +1 -1
- data/stanford-mods.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1e3a3a94c0657e2e29e3290209d67ea16d1f10d1cece61e334543f33c8cde7f
|
4
|
+
data.tar.gz: 17edb99128248caed061cc87d4d547bf896b7a915d08fdad9e2f209f2d6457fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec96c2955e6e96205b83395953413bfb2662af53f2725c9c13149688ac6c15b2da8cf4e46fa8aea8ac299b212204bbf680cdfa876780169a25707661903c259b
|
7
|
+
data.tar.gz: 1e5a8ddd8ad2e2a90ea37363335f1655fe6a4ef58b5d37089b38be265f00a91f617f7593f4b617d0f7dc1d066045ec926f207d2d308fa9c748170a03545e4cf7
|
@@ -46,6 +46,16 @@ module Stanford
|
|
46
46
|
end.compact.flatten
|
47
47
|
end
|
48
48
|
|
49
|
+
# called by mods_display gem, so made public
|
50
|
+
def publisher_vals_str
|
51
|
+
return if element.publisher.text.strip.empty?
|
52
|
+
|
53
|
+
publishers = element.publisher.reject do |p|
|
54
|
+
p.text.strip.empty?
|
55
|
+
end.map(&:text)
|
56
|
+
compact_and_join_with_delimiter(publishers, ' : ')
|
57
|
+
end
|
58
|
+
|
49
59
|
private
|
50
60
|
|
51
61
|
def compact_and_join_with_delimiter(values, delimiter)
|
@@ -73,15 +83,6 @@ module Stanford
|
|
73
83
|
end.map(&:text).join(' ').strip
|
74
84
|
end
|
75
85
|
|
76
|
-
def publisher_vals_str
|
77
|
-
return if element.publisher.text.strip.empty?
|
78
|
-
|
79
|
-
publishers = element.publisher.reject do |p|
|
80
|
-
p.text.strip.empty?
|
81
|
-
end.map(&:text)
|
82
|
-
compact_and_join_with_delimiter(publishers, ' : ')
|
83
|
-
end
|
84
|
-
|
85
86
|
# PLACE processing methods ------
|
86
87
|
|
87
88
|
def place_vals_str
|
data/stanford-mods.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.test_files = gem.files.grep(%r{^spec/})
|
17
17
|
gem.require_paths = ["lib"]
|
18
18
|
|
19
|
-
gem.add_dependency 'mods', '~> 3.0', '>= 3.0.
|
19
|
+
gem.add_dependency 'mods', '~> 3.0', '>= 3.0.4'
|
20
20
|
# active_support for .ordinalize, eg. 1 -> 1st, 2 -> 2nd for centuries
|
21
21
|
gem.add_dependency 'activesupport'
|
22
22
|
|
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.8
|
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: 2023-
|
12
|
+
date: 2023-11-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mods
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
version: '3.0'
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 3.0.
|
23
|
+
version: 3.0.4
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
version: '3.0'
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.0.
|
33
|
+
version: 3.0.4
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: activesupport
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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.4.
|
217
|
+
rubygems_version: 3.4.13
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: Stanford specific wrangling of MODS metadata
|