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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee420c061ed577ae40b3acdf90215a8261ba96d63c53c96ed9d021ab3446fd31
4
- data.tar.gz: cec3558b7a3886f25968aec482b1126e04f7f10132382cb787f5895666b37e62
3
+ metadata.gz: 8f3f4f8efe36102bd0479b7180b22af1a6484d1278d2f8e756ac91e78a410460
4
+ data.tar.gz: 2136ef6e06de8e11d7f28904614eb85b7cce2a512a1be2ce38a67c8da59f5f00
5
5
  SHA512:
6
- metadata.gz: 6b1a7cdb7e7f48cfd746e694577ceab478564d465416beab8cb9e307e70d0018fb06b17cf72a5be768ee7fbbf3e224b55c6bdbcada67779fb524633f750d8f08
7
- data.tar.gz: 15002dc0bea304a8d933f89e0d99116b0804ddb5fd3f6f4ec104dd890406d596c3d5694d38ccb73707d4c3cb644fa29186f91e17a444635a0d2615930aac9825
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
- r.from_str("<mods xmlns=\"http://www.loc.gov/mods/v3\">#{value.children.to_xml}</mods>")
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModsDisplay
4
- VERSION = '1.0.0.alpha5'
4
+ VERSION = '1.0.0'
5
5
  end
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.alpha5
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-02-02 00:00:00.000000000 Z
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: 1.3.1
246
+ version: '0'
247
247
  requirements: []
248
248
  rubygems_version: 3.2.32
249
249
  signing_key: