dor-services 5.31.0 → 5.31.1

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: e2b680b722ba81687a35e34ccd3909d16f291fd428bc41474b5fa218bf75fe00
4
- data.tar.gz: 4fe0371790370cdc116c9a8f47d86ea9e2398cb5807fbeb3dd74ddb49309c0cb
3
+ metadata.gz: 0fbf4d60e619912c5af278f19fe929f44596617bff66caf754183aa995f77d4c
4
+ data.tar.gz: 7c8ceae83d61011967e306270ae07f016bc2600eccd10a39389c7e79c4b918bc
5
5
  SHA512:
6
- metadata.gz: e192129ec8641cc2f83139d24cfafb18bc0a5408211254fea586d6f0d43d775892e07c9eefce7a8f2582b10fbaf1634cf5802a68a3117a6f12dab0d01a8d8ee4
7
- data.tar.gz: 311ee3bde8c795f29bb4c95cee5ed943376ddeb276353fd0294e9789e6f9ee0372102ee417f363cf8edf9e97f832290cdefe8be653d73cc0f01aa149bf110afd
6
+ metadata.gz: b12fe3f28a6cd6484bb298d7ea96a70c449c762eb3064848b3540e84be9809d2be7f65e1f80ffad46fad5b03b9197fc805800308e1acae8bd4dd07b99c161fb2
7
+ data.tar.gz: f7ef47c60176f1b7a6c1c3573e5169f4569989a0d5e78cb146c3404c142dd62b36f55b2f83866ec6aace1c94984d5e6eeae2040d017c640caac7c6aaba87b40f
@@ -85,18 +85,20 @@ module Dor
85
85
  autoload_under 'datastreams' do
86
86
  autoload :AdministrativeMetadataDS
87
87
  autoload :ContentMetadataDS
88
+ autoload :DefaultObjectRightsDS
88
89
  autoload :DescMetadataDS
89
90
  autoload :EmbargoMetadataDS
90
91
  autoload :EventsDS
91
92
  autoload :GeoMetadataDS
92
93
  autoload :IdentityMetadataDS
94
+ autoload :ProvenanceMetadataDS
93
95
  autoload :RightsMetadataDS
94
96
  autoload :RoleMetadataDS
97
+ autoload :SimpleDublinCoreDs
98
+ autoload :TechnicalMetadataDS
99
+ autoload :VersionMetadataDS
95
100
  autoload :WorkflowDefinitionDs
96
101
  autoload :WorkflowDs
97
- autoload :VersionMetadataDS
98
- autoload :DefaultObjectRightsDS
99
- autoload :SimpleDublinCoreDs
100
102
  end
101
103
 
102
104
  # DOR Concerns
@@ -0,0 +1,10 @@
1
+ module Dor
2
+ # Represents the Fedora 3 datastream that hold provenance metadata
3
+ class ProvenanceMetadataDS < ActiveFedora::OmDatastream
4
+ # This provides the prefix for the solr fields generated by ActiveFedora.
5
+ # Since we don't want a prefix, we override this to return an empty string.
6
+ def prefix
7
+ ''.freeze
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ module Dor
2
+ # Represents the Fedora 3 datastream that hold technical metadata
3
+ class TechnicalMetadataDS < ActiveFedora::OmDatastream
4
+ # This provides the prefix for the solr fields generated by ActiveFedora.
5
+ # Since we don't want a prefix, we override this to return an empty string.
6
+ def prefix
7
+ ''.freeze
8
+ end
9
+ end
10
+ end
@@ -5,8 +5,8 @@ module Dor
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  included do
8
- has_metadata :name => 'provenanceMetadata', :type => ActiveFedora::OmDatastream, :label => 'Provenance Metadata'
9
- has_metadata :name => 'technicalMetadata', :type => ActiveFedora::OmDatastream, :label => 'Technical Metadata', :control_group => 'M'
8
+ has_metadata name: 'provenanceMetadata', type: ProvenanceMetadataDS, label: 'Provenance Metadata'
9
+ has_metadata name: 'technicalMetadata', type: TechnicalMetadataDS, label: 'Technical Metadata', control_group: 'M'
10
10
  end
11
11
 
12
12
  def build_provenanceMetadata_datastream(workflow_id, event_text)
@@ -1,3 +1,3 @@
1
1
  module Dor
2
- VERSION = '5.31.0'.freeze
2
+ VERSION = '5.31.1'.freeze
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: 5.31.0
4
+ version: 5.31.1
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-06-07 00:00:00.000000000 Z
17
+ date: 2018-06-12 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: active-fedora
@@ -579,9 +579,11 @@ files:
579
579
  - lib/dor/datastreams/human.xslt
580
580
  - lib/dor/datastreams/identity.xsl
581
581
  - lib/dor/datastreams/identity_metadata_ds.rb
582
+ - lib/dor/datastreams/provenance_metadata_ds.rb
582
583
  - lib/dor/datastreams/rights_metadata_ds.rb
583
584
  - lib/dor/datastreams/role_metadata_ds.rb
584
585
  - lib/dor/datastreams/simple_dublin_core_ds.rb
586
+ - lib/dor/datastreams/technical_metadata_ds.rb
585
587
  - lib/dor/datastreams/version_metadata_ds.rb
586
588
  - lib/dor/datastreams/workflow_definition_ds.rb
587
589
  - lib/dor/datastreams/workflow_ds.rb