dor-services 6.0.2 → 6.0.5

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
  SHA256:
3
- metadata.gz: e548811519b3b37c921c727cffcab68013bc5efdbcd2f28310c81c6f30f776bb
4
- data.tar.gz: b975beadda238cef372cc020bcac83b53bb8de94a158c1f4f3301aeab44fbf0c
3
+ metadata.gz: 34400d0eac69c0ceb30ae0f68bab89c9f9a88e568b7c174495838a1b7cdad52e
4
+ data.tar.gz: 92b08f85258d8f85a743c6a19f1086a6e77b7070cc38f873a2941c401054c83b
5
5
  SHA512:
6
- metadata.gz: 120606bd2ab5c52ac8908a15e8402e06675af037cc9a4f2721e15804933cb1faf9ade415b833230b872a42d15e7b22ae8dadd614c1820d62c2e2c2012dc4eede
7
- data.tar.gz: 3ac8789d051b8ecdfbc2e558448bb733766dece388580cc952107894114b7f6442883f3bbf714130268ca6adde14df07728c14faa469c9d2295a57864b8d82a8
6
+ metadata.gz: 0cbfce9b71dbcfdf16dcf7de39addb71ef888672f94fbb1c04b3da944927235ee098f61a414fcf32db7f6597f34ca8b2e97a263b42008336512e97df79481ad0
7
+ data.tar.gz: a61f68d51174b64015a7c45f9beb8bcac73764a46c41550b06c47eb804ac038596b29d87222ec844685f2f2e289539a5dfaf8fd9c4ca5d1e35e15cf782568fae
@@ -0,0 +1,29 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIE9zCCAt8CCQCcUJVDTu7rTjANBgkqhkiG9w0BAQUFADCBvzELMAkGA1UEBhMC
3
+ VVMxEzARBgNVBAgTCkNhbGlmb3JuaWExETAPBgNVBAcTCFN0YW5mb3JkMRwwGgYD
4
+ VQQKExNTdGFuZm9yZCBVbml2ZXJzaXR5MRIwEAYDVQQLEwlMaWJyYXJpZXMxJTAj
5
+ BgNVBAMTHFNVTCBET1IgKGRldi90ZXN0KSBhY2Nlc3MgQ0ExLzAtBgkqhkiG9w0B
6
+ CQEWIHN1bC13ZWJtYXN0ZXJ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D0McWVAgDTm3MMKxeuMaoW5eEi83+G+CywLaTBpc8Hz7qgRhBpKhRirCfHMW
26
+ EfQV5k32vEGoSI+eG8zcGb9mwDeb/EWXAMGXrx2YuYFu7txtwC2mZXc=
27
+ -----END RSA PRIVATE KEY-----
@@ -0,0 +1,80 @@
1
+ cert_dir = File.join(File.dirname(__FILE__), "..", "certs")
2
+
3
+ Dor::Config.configure do
4
+ fedora do
5
+ url 'https://sul-dor-dev.stanford.edu/fedora'
6
+ end
7
+
8
+ ssl do
9
+ cert_file File.join(cert_dir,"robots-dor-dev.crt")
10
+ key_file File.join(cert_dir,"robots-dor-dev.key")
11
+ key_pass ''
12
+ end
13
+
14
+ suri do
15
+ mint_ids true
16
+ id_namespace 'druid'
17
+ url 'https://lyberservices-dev.stanford.edu'
18
+ user 'labware'
19
+ pass 'lyberteam'
20
+ end
21
+
22
+ metadata do
23
+ exist.url 'http://viewer:l3l%40nd@lyberapps-dev.stanford.edu/exist/rest/'
24
+ catalog.url 'http://lyberservices-prod.stanford.edu/catalog/mods'
25
+ end
26
+
27
+ stacks do
28
+ document_cache_host 'purl-dev.stanford.edu'
29
+ local_stacks_root '/stacks'
30
+ local_document_cache_root '/purl/document_cache'
31
+ local_workspace_root '/dor/workspace'
32
+ end
33
+
34
+ solrizer.url 'http://sul-solr.stanford.edu/solr/argo_test'
35
+ workflow.url 'https://lyberservices-dev.stanford.edu/workflow/'
36
+ dor_services.url 'https://dorAdmin:dorAdmin@sul-lyberservices-dev.stanford.edu/dor'
37
+
38
+ cleanup do
39
+ local_workspace_root '/dor/workspace'
40
+ local_export_home '/dor/export'
41
+ end
42
+
43
+ sdr do
44
+ url 'https://sdrAdmin:sdrAdmin@sdr-services-test.stanford.edu/sdr/'
45
+ local_workspace_root '/dor/workspace'
46
+ local_export_home '/dor/export'
47
+ datastreams do
48
+ administrativeMetadata 'optional'
49
+ contentMetadata 'optional'
50
+ descMetadata 'required'
51
+ defaultObjectRights 'optional'
52
+ events 'optional'
53
+ embargoMetadata 'optional'
54
+ identityMetadata 'required'
55
+ provenanceMetadata 'required'
56
+ relationshipMetadata 'required'
57
+ rightsMetadata 'optional'
58
+ roleMetadata 'optional'
59
+ sourceMetadata 'optional'
60
+ technicalMetadata 'optional'
61
+ versionMetadata 'required'
62
+ workflows 'optional'
63
+ end
64
+ end
65
+
66
+ accessioning_robot_sleep_time 30
67
+
68
+ end
69
+
70
+
71
+ #WORKFLOW_URI = 'http://lyberservices-test.stanford.edu/workflow'
72
+
73
+ # Constants for Dor::WorkflowService
74
+ #module Dor
75
+ # CREATE_WORKFLOW = DOR_CREATE_WORKFLOW = true
76
+ # WF_URI = 'http://lyberservices-test.stanford.edu/workflow'
77
+ #end
78
+
79
+ # External application locations
80
+ JHOVE_HOME = File.join(ENV['HOME'], 'jhoveToolkit')
@@ -9,6 +9,8 @@ module Dor
9
9
  include Describable
10
10
  include Versionable
11
11
  include Processable
12
+ include Preservable
13
+
12
14
  class_attribute :resource_indexer
13
15
 
14
16
  def to_solr
@@ -1,14 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'tmpdir'
4
-
5
3
  module Dor
6
4
  module Preservable
7
5
  extend ActiveSupport::Concern
8
6
 
9
7
  included do
10
8
  has_metadata name: 'provenanceMetadata', type: ProvenanceMetadataDS, label: 'Provenance Metadata'
11
- has_metadata name: 'technicalMetadata', type: TechnicalMetadataDS, label: 'Technical Metadata', control_group: 'M'
12
9
  end
13
10
 
14
11
  def build_provenanceMetadata_datastream(workflow_id, event_text)
@@ -19,10 +16,6 @@ module Dor
19
16
  ds.save
20
17
  end
21
18
 
22
- def build_technicalMetadata_datastream(ds = nil)
23
- TechnicalMetadataService.add_update_technical_metadata(self) if self.is_a?(Dor::Item) # only items need technical metadata, other object types do not have contentMetadata or content
24
- end
25
-
26
19
  def sdr_ingest_transfer(agreement_id)
27
20
  SdrIngestService.transfer(self, agreement_id)
28
21
  end
@@ -30,15 +23,15 @@ module Dor
30
23
  # @return [Nokogiri::Document]
31
24
  def create_workflow_provenance(workflow_id, event_text)
32
25
  builder = Nokogiri::XML::Builder.new do |xml|
33
- xml.provenanceMetadata(:objectId => pid) {
34
- xml.agent(:name => 'DOR') {
35
- xml.what(:object => pid) {
36
- xml.event(:who => "DOR-#{workflow_id}", :when => Time.new.iso8601) {
26
+ xml.provenanceMetadata(objectId: pid) do
27
+ xml.agent(name: 'DOR') do
28
+ xml.what(object: pid) do
29
+ xml.event(who: "DOR-#{workflow_id}", when: Time.new.iso8601) do
37
30
  xml.text(event_text)
38
- }
39
- }
40
- }
41
- }
31
+ end
32
+ end
33
+ end
34
+ end
42
35
  end
43
36
  builder.doc
44
37
  end
@@ -6,7 +6,6 @@ module Dor
6
6
  include Embargoable
7
7
  include Publishable
8
8
  include Itemizable
9
- include Preservable
10
9
  include Assembleable
11
10
  include Contentable
12
11
  include Geoable
@@ -21,6 +20,12 @@ module Dor
21
20
  ProcessableIndexer,
22
21
  ReleasableIndexer
23
22
  )
23
+
24
+ has_metadata name: 'technicalMetadata', type: TechnicalMetadataDS, label: 'Technical Metadata', control_group: 'M'
25
+
26
+ def build_technicalMetadata_datastream(_ds = nil)
27
+ TechnicalMetadataService.add_update_technical_metadata(self)
28
+ end
24
29
  end
25
30
  end
26
31
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dor
4
- VERSION = '6.0.2'
4
+ VERSION = '6.0.5'
5
5
  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: 6.0.2
4
+ version: 6.0.5
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: 2018-12-04 00:00:00.000000000 Z
17
+ date: 2018-12-05 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: active-fedora
@@ -562,7 +562,10 @@ extensions: []
562
562
  extra_rdoc_files: []
563
563
  files:
564
564
  - config/certs/README
565
+ - config/certs/robots-dor-dev.crt
566
+ - config/certs/robots-dor-dev.key
565
567
  - config/config_defaults.yml
568
+ - config/dev_console_env.rb
566
569
  - config/dev_console_env.rb.example
567
570
  - config/predicate_mappings.yml
568
571
  - lib/dor-services.rb