dor-services 5.8.0 → 5.8.1

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
  SHA1:
3
- metadata.gz: baec1d9dac35a77a2fa9ca2465240a8e050131c9
4
- data.tar.gz: 6a073c0f903234a844e2944f9554a9ca56911d26
3
+ metadata.gz: e9baa9eecc31bb5de8d8d9e4620215669e18ba9b
4
+ data.tar.gz: bcd9e5d5b3675e071244e2893831a973a9133e1d
5
5
  SHA512:
6
- metadata.gz: c5be39dc050d1c7592cca1b0752f69a5e52761c416b80438625513aaa28a23fc41fc3dd3d3a770d6f0501e9d72df6e9a0eb7ac0ce3b63c35bf6f554203913f83
7
- data.tar.gz: f10b4baeb3e9c610bb3bd2b719a32c4b106ef57170e790cd40080fd8322716c2c2703df969423a641e220477263673c512a41b66bda2c89e76707e5d8ecc1234
6
+ metadata.gz: daa8999e16d699dbd060f237115011acdd968e9b30a78fe78a0473d396a167267eac153ceb66e540fa642daa364675926841ada6b50a7a0986b9c0e284f85de2
7
+ data.tar.gz: 6da0c6204454907c01584c5833ff6de911ab93f0bce6fba51ac8053c37de4a59ae8765dd740e5ff47b0565ffe9403c3beb494e0cad68f82e5ccdfb111d31846e
@@ -21,7 +21,8 @@ module Dor
21
21
  embargo_md.status = 'released'
22
22
 
23
23
  # Remove all read acces nodes
24
- rights_xml = datastreams['rightsMetadata'].ng_xml
24
+ rights_md = datastreams['rightsMetadata']
25
+ rights_xml = rights_md.ng_xml
25
26
  rights_xml.xpath("//rightsMetadata/access[@type='read']").each { |n| n.remove }
26
27
 
27
28
  # Replace rights <access> nodes with those from embargoMetadta
@@ -35,7 +36,7 @@ module Dor
35
36
  end
36
37
  end
37
38
 
38
- datastreams['rightsMetadata'].content_will_change!
39
+ rights_md.content = rights_md.ng_xml.to_s
39
40
  datastreams['events'].add_event('embargo', release_agent, 'Embargo released')
40
41
  end
41
42
 
@@ -45,7 +46,8 @@ module Dor
45
46
  embargo_md.twenty_pct_status = 'released'
46
47
 
47
48
  # Remove all read acces nodes
48
- rights_xml = datastreams['rightsMetadata'].ng_xml
49
+ rights_md = datastreams['rightsMetadata']
50
+ rights_xml = rights_md.ng_xml
49
51
  rights_xml.xpath("//rightsMetadata/access[@type='read']").each { |n| n.remove }
50
52
 
51
53
  # Replace rights <access> nodes with 1 machine/world node
@@ -56,7 +58,7 @@ module Dor
56
58
  rights_xml.root.add_child(world_doc.root.clone)
57
59
  end
58
60
 
59
- datastreams['rightsMetadata'].content_will_change!
61
+ rights_md.content = rights_md.ng_xml.to_s
60
62
  datastreams['events'].add_event('embargo', release_agent, '20% Visibility Embargo released')
61
63
  end
62
64
 
@@ -1,3 +1,3 @@
1
1
  module Dor
2
- VERSION = '5.8.0'.freeze
2
+ VERSION = '5.8.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dor-services
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.8.0
4
+ version: 5.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Klein
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2016-03-31 00:00:00.000000000 Z
17
+ date: 2016-06-16 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: active-fedora