dor-services 4.22.4 → 4.22.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/config/config_defaults.yml +2 -0
- data/lib/dor/config.rb +6 -1
- data/lib/dor/models/describable.rb +9 -4
- data/lib/dor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTI0OGVkMDM4YWVjYzE4MTgxOGJhYTI1MTExZDA4YWFlZTE0ZDRiNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjA2YmNkYjJkM2YxMTkzYTI1YjE4OTY3ZTEzYzMwMWUyNDliOTQwMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDRmODA5Nzk5ZDJkZTNjN2M1MWQ5NDdkZTg4MjJhODRiYTczN2RmMWE5NWYw
|
10
|
+
ZDI4YWEzYzE5OWI1YzM2Yjc1MzVkOWEzMzhmNDVhY2Q5NDVhYWY2YTA5MTY0
|
11
|
+
M2VkOTFiODZhZjhjNWM0Yzc0YWMwOTdhNDU1ZDg0OWI0MDAwY2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTIyMmY0ZDY2NGQ1YzRiMTgxN2ZlZjFlM2JjY2M1NWJkNmY5MzhlZGZhMTY5
|
14
|
+
NDc0NTk5ODJhNjllMzAzMjg4NmM0MWQ0OTgzMWQ0ODg3OWM2NzA2YjEzYjlm
|
15
|
+
ZTUzMDI1MTFjOWYyNzYzMjNlNjk4OTcxYTQwNThhOTlhZmIzNmM=
|
data/config/config_defaults.yml
CHANGED
data/lib/dor/config.rb
CHANGED
@@ -26,8 +26,13 @@ module Dor
|
|
26
26
|
$-v = temp_v
|
27
27
|
end
|
28
28
|
params = { :dor_services_url => result.dor_services.url }
|
29
|
+
|
30
|
+
if(result.workflow.logfile && result.workflow.shift_age)
|
31
|
+
params[:logger] = Logger.new(result.workflow.logfile, result.workflow.shift_age)
|
32
|
+
elsif(result.workflow.logfile)
|
33
|
+
params[:logger] = Logger.new(result.workflow.logfile)
|
34
|
+
end
|
29
35
|
params[:timeout] = result.workflow.timeout if result.workflow.timeout
|
30
|
-
# params[:logger] = Logger.new('logs/workflow_service.log', 'weekly') # if you want to control the logger, insert it here.
|
31
36
|
Dor::WorkflowService.configure result.workflow.url, params
|
32
37
|
result
|
33
38
|
end
|
@@ -121,16 +121,21 @@ module Dor
|
|
121
121
|
title_node = Nokogiri::XML::Node.new('title', doc)
|
122
122
|
title_node.content = collection_title
|
123
123
|
|
124
|
-
|
125
|
-
|
126
|
-
|
124
|
+
# e.g.,
|
125
|
+
# <location>
|
126
|
+
# <url>http://purl.stanford.edu/rh056sr3313</url>
|
127
|
+
# </location>
|
128
|
+
loc_node = doc.create_element('location')
|
129
|
+
url_node = doc.create_element('url')
|
130
|
+
url_node.content = "http://#{Dor::Config.stacks.document_cache_host}/#{druid.split(':').last}"
|
131
|
+
loc_node << url_node
|
127
132
|
|
128
133
|
type_node = Nokogiri::XML::Node.new('typeOfResource', doc)
|
129
134
|
type_node['collection'] = 'yes'
|
130
135
|
doc.root.add_child(related_item_node)
|
131
136
|
related_item_node.add_child(title_info_node)
|
132
137
|
title_info_node.add_child(title_node)
|
133
|
-
related_item_node.add_child(
|
138
|
+
related_item_node.add_child(loc_node)
|
134
139
|
related_item_node.add_child(type_node)
|
135
140
|
end
|
136
141
|
end
|
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.22.
|
4
|
+
version: 4.22.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Klein
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2015-
|
15
|
+
date: 2015-11-04 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: active-fedora
|