dor-services 5.21.1 → 5.21.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9e4e5c1174b73127c08c5474e57b3f20fcfaa7c
|
4
|
+
data.tar.gz: c85ef09cbcf084fadef2afc64d0e40730d27ca65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b222218b3a7adf56b60144b296b79ebddd321c6bf22b58a45b7d410866912d31972c89ba6972a4f3126096cf682fe65adb00b61246e75598ff08c5da42d83a89
|
7
|
+
data.tar.gz: 1d19738c5ab85b4fbd244c7718929a3df754ccf37ab97e618e311dce70b886f735f582374392298c4e8b29718f5d36585e51ba9cba7147820af12ae8fff13439
|
@@ -19,6 +19,8 @@ module Dor
|
|
19
19
|
return 'default' if admin_policy_object.nil? # TODO: log warning?
|
20
20
|
|
21
21
|
admin_md = admin_policy_object.datastreams['administrativeMetadata']
|
22
|
+
return 'default' unless admin_md.respond_to?(:default_workflow_lane) # Some APOs don't have this datastream
|
23
|
+
|
22
24
|
lane = admin_md.default_workflow_lane
|
23
25
|
return 'default' if lane.blank?
|
24
26
|
lane
|
@@ -84,7 +84,7 @@ module Dor
|
|
84
84
|
dc_xml = generate_dublin_core.to_xml {|config| config.no_declaration}
|
85
85
|
DigitalStacksService.transfer_to_document_store(pid, dc_xml, 'dc')
|
86
86
|
%w(identityMetadata contentMetadata rightsMetadata).each do |stream|
|
87
|
-
DigitalStacksService.transfer_to_document_store(pid, datastreams[stream].to_xml, stream)
|
87
|
+
DigitalStacksService.transfer_to_document_store(pid, datastreams[stream].to_xml, stream) if datastreams[stream]
|
88
88
|
end
|
89
89
|
DigitalStacksService.transfer_to_document_store(pid, public_xml, 'public')
|
90
90
|
DigitalStacksService.transfer_to_document_store(pid, generate_public_desc_md, 'mods')
|
@@ -62,6 +62,7 @@ module Dor
|
|
62
62
|
|
63
63
|
# @return [Nokogiri::XML::Document] sanitized for public consumption
|
64
64
|
def public_content_metadata
|
65
|
+
return Nokogiri::XML::Document.new unless object.datastreams['contentMetadata']
|
65
66
|
@public_content_metadata ||= begin
|
66
67
|
result = object.datastreams['contentMetadata'].ng_xml.clone
|
67
68
|
|
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.21.
|
4
|
+
version: 5.21.2
|
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: 2017-01-
|
17
|
+
date: 2017-01-19 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: active-fedora
|
@@ -682,9 +682,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
682
682
|
version: 1.3.6
|
683
683
|
requirements: []
|
684
684
|
rubyforge_project:
|
685
|
-
rubygems_version: 2.
|
685
|
+
rubygems_version: 2.5.2
|
686
686
|
signing_key:
|
687
687
|
specification_version: 4
|
688
688
|
summary: Ruby implmentation of DOR services used by the SULAIR Digital Library
|
689
689
|
test_files: []
|
690
|
-
has_rdoc:
|