stanford-mods 3.3.7 → 3.3.9
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 +17 -15
- data/lib/stanford-mods/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0729c421d4ffde7b9818ad6012d19ec0fc146c36fa60aa0f9384c2d02d87138f'
|
4
|
+
data.tar.gz: b14ae5c1aeb368ca68fc37c8f9021b99f95af3e670edb7e0b822aeba1f1ecc5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfe5bb3f80cdd0daead674f3a5e7d382dd05c4923efc7b35de192a2b2771e42fa8c78ae489b3790bc7b23a737902790e5e6e34f959008317f028bbab8e4f40d1
|
7
|
+
data.tar.gz: '01498aa51983570655d823eb897507e5a0c0954689d5040ced4b813031f767fc120c25298a10d797c8ad69b2d9398cea405572c54b13a24697f787d3318608b1'
|
@@ -46,6 +46,23 @@ module Stanford
|
|
46
46
|
end.compact.flatten
|
47
47
|
end
|
48
48
|
|
49
|
+
# called by mods_display gem
|
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
|
+
|
59
|
+
# called by mods_display gem
|
60
|
+
def edition_vals_str
|
61
|
+
element.edition.reject do |e|
|
62
|
+
e.text.strip.empty?
|
63
|
+
end.map(&:text).join(' ').strip
|
64
|
+
end
|
65
|
+
|
49
66
|
private
|
50
67
|
|
51
68
|
def compact_and_join_with_delimiter(values, delimiter)
|
@@ -67,21 +84,6 @@ module Stanford
|
|
67
84
|
value.strip.end_with?('.', ',', ':', ';')
|
68
85
|
end
|
69
86
|
|
70
|
-
def edition_vals_str
|
71
|
-
element.edition.reject do |e|
|
72
|
-
e.text.strip.empty?
|
73
|
-
end.map(&:text).join(' ').strip
|
74
|
-
end
|
75
|
-
|
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
87
|
# PLACE processing methods ------
|
86
88
|
|
87
89
|
def place_vals_str
|
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.9
|
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-12-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mods
|