mods_display 1.0.0.alpha5 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mods_display/fields/nested_related_item.rb +7 -1
- data/lib/mods_display/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f3f4f8efe36102bd0479b7180b22af1a6484d1278d2f8e756ac91e78a410460
|
4
|
+
data.tar.gz: 2136ef6e06de8e11d7f28904614eb85b7cce2a512a1be2ce38a67c8da59f5f00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbb695d25d8750a0e94fd8ca0ccd6acb76f15e27c8847c96ab79d38cd3a8bed3ca0babad1580861493367bbda894bb1540be705f4fe6b224996b55f39f1322fb
|
7
|
+
data.tar.gz: ad5f4caf6e21a7be8c0d614329519438d017dd67297f8696180a4401f1ce3dd5fa5030684f1da4647c7f8a37d3711cb0be7509fe1658081df67662f725fec91c
|
@@ -37,7 +37,13 @@ module ModsDisplay
|
|
37
37
|
|
38
38
|
def related_item_mods_object(value)
|
39
39
|
mods = ::Stanford::Mods::Record.new.tap do |r|
|
40
|
-
|
40
|
+
# dup'ing the value adds the appropriate namespaces, but...
|
41
|
+
munged_node = value.dup.tap do |x|
|
42
|
+
# ... the mods gem also expects the root of the document to have the root tag <mods>
|
43
|
+
x.name = 'mods'
|
44
|
+
end
|
45
|
+
|
46
|
+
r.from_nk_node(munged_node)
|
41
47
|
end
|
42
48
|
related_item = ModsDisplay::HTML.new(mods)
|
43
49
|
|
data/lib/mods_display/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mods_display
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jessie Keck
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: stanford-mods
|
@@ -241,9 +241,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
241
241
|
version: '0'
|
242
242
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
243
243
|
requirements:
|
244
|
-
- - "
|
244
|
+
- - ">="
|
245
245
|
- !ruby/object:Gem::Version
|
246
|
-
version:
|
246
|
+
version: '0'
|
247
247
|
requirements: []
|
248
248
|
rubygems_version: 3.2.32
|
249
249
|
signing_key:
|