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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGNmODk1OTA4MGVlYTZjMmVmYjBjOTRkMTk2MmMyOTk2ZDVhMDI5OA==
4
+ OTI0OGVkMDM4YWVjYzE4MTgxOGJhYTI1MTExZDA4YWFlZTE0ZDRiNQ==
5
5
  data.tar.gz: !binary |-
6
- OWMwZTg1ODA3ZGE1YTg0Njk1NmMzM2FmMWU0ZGJkNjQ5MzZmYmZkOQ==
6
+ ZjA2YmNkYjJkM2YxMTkzYTI1YjE4OTY3ZTEzYzMwMWUyNDliOTQwMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjYwYzkwNTFjZmIxZGRlY2M5NjIyZTYzNTNkNTMyZGVmNzk2NGIwYjc0NjNk
10
- NWUzMTExZDA1N2IyNWNjZTc0MTNkZWM3Y2M1ZDMzNjA1OGM1NzFjMjAwNDI0
11
- MTkwYjlhMjVjMmQ4OTMzODIzZWM5MDNmYTA3MjkwYjc5MTEzODI=
9
+ MDRmODA5Nzk5ZDJkZTNjN2M1MWQ5NDdkZTg4MjJhODRiYTczN2RmMWE5NWYw
10
+ ZDI4YWEzYzE5OWI1YzM2Yjc1MzVkOWEzMzhmNDVhY2Q5NDVhYWY2YTA5MTY0
11
+ M2VkOTFiODZhZjhjNWM0Yzc0YWMwOTdhNDU1ZDg0OWI0MDAwY2Y=
12
12
  data.tar.gz: !binary |-
13
- ZTFkZWVjOTI2OTZjZjBlZjA2OTVjNmY1ODQ0MzE2NDM0ZjBiYzE1ZTNhMWM3
14
- OTQ0NzYwOGIwYTA0NDRlMWVjM2JkODhmNzdiZGYyMDc3ZTA3ZGMxZjc5OTFl
15
- YjVmYzIyMjI0MDU4MDliNDQ4ODk0YjAxNjU1OTY5ZDZkN2I3Mzk=
13
+ MTIyMmY0ZDY2NGQ1YzRiMTgxN2ZlZjFlM2JjY2M1NWJkNmY5MzhlZGZhMTY5
14
+ NDc0NTk5ODJhNjllMzAzMjg4NmM0MWQ0OTgzMWQ0ODg3OWM2NzA2YjEzYjlm
15
+ ZTUzMDI1MTFjOWYyNzYzMjNlNjk4OTcxYTQwNThhOTlhZmIzNmM=
@@ -61,5 +61,7 @@
61
61
  :workflow:
62
62
  :url:
63
63
  :timeout: 60
64
+ :logfile: workflow_service.log
65
+ :shift_age: weekly
64
66
  :dor_services:
65
67
  :url:
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
- id_node = Nokogiri::XML::Node.new('identifier', doc)
125
- id_node['type'] = 'uri'
126
- id_node.content = "http://#{Dor::Config.stacks.document_cache_host}/#{druid.split(':').last}"
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(id_node)
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
@@ -1,3 +1,3 @@
1
1
  module Dor
2
- VERSION = '4.22.4'
2
+ VERSION = '4.22.5'
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: 4.22.4
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-10-23 00:00:00.000000000 Z
15
+ date: 2015-11-04 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: active-fedora