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 +4 -4
- data/lib/dor/models/embargoable.rb +6 -4
- data/lib/dor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9baa9eecc31bb5de8d8d9e4620215669e18ba9b
|
4
|
+
data.tar.gz: bcd9e5d5b3675e071244e2893831a973a9133e1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
|
data/lib/dor/version.rb
CHANGED
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.
|
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-
|
17
|
+
date: 2016-06-16 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: active-fedora
|