dor-services 4.14.3 → 4.14.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -89,9 +89,9 @@ module Dor
|
|
89
89
|
new_lic = doc.create_element("accessCondition", new_text, :type => 'license')
|
90
90
|
doc.root.element_children.last.add_next_sibling new_lic
|
91
91
|
end
|
92
|
-
rights.xpath("//use/machine[#{ci_compare('type', '
|
92
|
+
rights.xpath("//use/machine[#{ci_compare('type', 'opendatacommons')}]").each do |lic_type|
|
93
93
|
next if lic_type.text =~ /none/i
|
94
|
-
lic_text = rights.at_xpath("//use/human[#{ci_compare('type', '
|
94
|
+
lic_text = rights.at_xpath("//use/human[#{ci_compare('type', 'opendatacommons')}]").text.strip
|
95
95
|
next if lic_text.empty?
|
96
96
|
new_text = "ODC #{lic_type.text}: #{lic_text}"
|
97
97
|
new_lic = doc.create_element("accessCondition", new_text, :type => 'license')
|
@@ -28,10 +28,7 @@ module Dor
|
|
28
28
|
|
29
29
|
def reset_to_apo_default()
|
30
30
|
rights_metadata_ds = self.rightsMetadata
|
31
|
-
|
32
|
-
apo_druid=obj.identityMetadata.adminPolicy.first
|
33
|
-
apo_obj=Dor::Item.find(apo_druid, :lightweight => true)
|
34
|
-
rights_metadata_ds.content=apo_obj.rightsMetadata.ng_xml
|
31
|
+
rights_metadata_ds.content = admin_policy_object.rightsMetadata.ng_xml
|
35
32
|
end
|
36
33
|
|
37
34
|
def set_read_rights(rights)
|
@@ -73,7 +73,6 @@ module Dor
|
|
73
73
|
idmd.add_value(:objectCreator, 'DOR')
|
74
74
|
idmd.add_value(:objectLabel, label)
|
75
75
|
idmd.add_value(:objectType, object_type)
|
76
|
-
idmd.add_value(:adminPolicy, admin_policy)
|
77
76
|
other_ids.each_pair { |name,value| idmd.add_otherId("#{name}:#{value}") }
|
78
77
|
tags.each { |tag| idmd.add_value(:tag, tag) }
|
79
78
|
new_item.admin_policy_object = apo_object
|
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: 4.14.
|
4
|
+
version: 4.14.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2014-
|
16
|
+
date: 2014-11-07 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: active-fedora
|