etd_model 2.1.2 → 2.2.0

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: bfab7e22ca2525e8f43727d95434e828b31f28b1
4
- data.tar.gz: 60578973a4aba6e139ac5827a16d45f366df6f9c
3
+ metadata.gz: a2f63693b51ee84e8c60021efb6f4dfa7c7654c2
4
+ data.tar.gz: 3935b877d02536cd69a183c82c24d94b5ab38663
5
5
  SHA512:
6
- metadata.gz: b34cd9a37e593ed44a945fd1a641f7639883a2b92a2ed6b0fc2546f2f6b5a271a64c3edc77bb4a36667ef83f574a05f9f02ff1783f3dce078afa816ccb974ce1
7
- data.tar.gz: fd2723c261f5c1fe7989177a1400b7bdeb756c719694aa8a3b87c7d31ee0903e14b596a087eb7e5a1bae3aea777717e2e65387850c678fea563ba323983ba137
6
+ metadata.gz: 4a2cc261f1b7017becb7b9aeb442f61f3a2613e3b6e79b9a7b04c5f22fb6acac92bffb91a40c9bf6c63d089c09a0eef69f60754985ea80f6f15a07a0f95e08fe
7
+ data.tar.gz: c216498dd298ca08ff4b8006eac4406416d895e24e32262c5cf360e6742ae3b63e4e9d3b253ac18493f0124ebb0b79110d601ab591af7a39c7c13c1fbc445d68
@@ -4,11 +4,11 @@ module EtdModel
4
4
  include Dor::Embargoable
5
5
  include Dor::Eventable
6
6
 
7
- has_many 'parts', :property => :is_part_of
8
- has_many 'supplemental_files', :property => :is_constituent_of, class_name: 'EtdModel::Part'
9
- has_many 'permission_files', :property => :is_dependent_of, class_name: 'EtdModel::Part'
7
+ has_many :parts, :property => :is_part_of, class_name: 'Part'
8
+ has_many :supplemental_files, :property => :is_constituent_of, class_name: 'Part'
9
+ has_many :permission_files, :property => :is_dependent_of, class_name: 'Part'
10
10
 
11
- has_metadata :name => 'properties', :type => ActiveFedora::SimpleDatastream do |m|
11
+ has_metadata :name => 'properties', :type => ActiveFedora::SimpleDatastream, :versionable => false do |m|
12
12
  m.field 'name', :string # PS:name
13
13
  m.field 'prefix', :string # PS:prefix
14
14
  m.field 'suffix', :string # PS:suffix
@@ -54,7 +54,7 @@ module EtdModel
54
54
  m.field 'symphonyStatus', :string
55
55
  end
56
56
 
57
- has_metadata :name => 'workflow', :type => ActiveFedora::SimpleDatastream do |m|
57
+ has_metadata :name => 'workflow', :type => ActiveFedora::SimpleDatastream, :versionable => false do |m|
58
58
  m.field 'citation_verified', :string
59
59
  m.field 'abstract_provided', :string
60
60
  m.field 'dissertation_uploaded', :string
@@ -66,7 +66,6 @@ module EtdModel
66
66
  m.field 'submitted_to_registrar', :string
67
67
  end
68
68
 
69
- has_metadata :name => 'DC', :type => ActiveFedora::QualifiedDublinCoreDatastream do |m|
70
- end
69
+ has_metadata :name => 'DC', type: Dor::SimpleDublinCoreDs, versionable: false, label: 'DC', control_group: 'X'
71
70
  end
72
71
  end
@@ -1,16 +1,15 @@
1
1
  module EtdModel
2
2
  class Part < ActiveFedora::Base
3
- belongs_to 'parents', :property => :is_part_of, class_name: 'EtdModel::Etd' # relationship between main pdf and parent etd
4
- belongs_to 'supplemental_file_for', :property => :is_constituent_of, class_name: 'EtdModel::Etd' # relationship between supplemental file and parent etd
5
- belongs_to 'permission_file_for', :property => :is_dependent_of, class_name: 'EtdModel::Etd' # relationsihip between permission file and parent etd
3
+ belongs_to :parents, :property => :is_part_of, class_name: 'Etd' # relationship between main pdf and parent etd
4
+ belongs_to :supplemental_file_for, :property => :is_constituent_of, class_name: 'Etd' # relationship between supplemental file and parent etd
5
+ belongs_to :permission_file_for, :property => :is_dependent_of, class_name: 'Etd' # relationsihip between permission file and parent etd
6
6
 
7
- has_metadata :name => 'properties', :type => ActiveFedora::SimpleDatastream do |m|
7
+ has_metadata :name => 'properties', :type => ActiveFedora::SimpleDatastream, :versionable => false do |m|
8
8
  m.field 'file_name', :string
9
9
  m.field 'size', :string
10
10
  m.field 'label', :string
11
11
  end
12
12
 
13
- has_metadata :name => 'DC', :type => ActiveFedora::QualifiedDublinCoreDatastream do |m|
14
- end
13
+ has_metadata :name => 'DC', type: Dor::SimpleDublinCoreDs, versionable: false, label: 'DC', control_group: 'X'
15
14
  end
16
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etd_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas Kim
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-01-25 00:00:00.000000000 Z
12
+ date: 2018-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dor-services
@@ -17,14 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '5.13'
20
+ version: '5.26'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '5.13'
27
+ version: '5.26'
28
+ - !ruby/object:Gem::Dependency
29
+ name: active-fedora
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '8.4'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '8.4'
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: coveralls
30
44
  requirement: !ruby/object:Gem::Requirement
@@ -114,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
128
  version: '0'
115
129
  requirements: []
116
130
  rubyforge_project:
117
- rubygems_version: 2.5.2
131
+ rubygems_version: 2.6.10
118
132
  signing_key:
119
133
  specification_version: 4
120
134
  summary: ETD content model used by the SULAIR Digital Library