etd_model 2.0.0 → 2.1.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: 39118c45c70f4c421385dad49669e169db16e0d3
4
- data.tar.gz: 3e791f60b2d0be686b8f91448d04430387cabd9c
3
+ metadata.gz: 5cac7af1db2bf1ad47dde1614f55bb9365e5d655
4
+ data.tar.gz: 4f243d13dee7faa6fc47f340fd2b421abbbb6eb7
5
5
  SHA512:
6
- metadata.gz: 1fde7d8dbc07018578dfa740888d4971c6d1eeaa071c0ec6f30e2ecfb95ae6896dbc2932b8ade1dabe511a956da4ab1a50d347c1aa5bf52e1234b4a052866301
7
- data.tar.gz: 748318dc8c1ad78ce4421ce3c274315eab9bfdbd245ecc74a2d22b355f9963f91732ce8bd7661a728300fdd7f8e631d3820354e50e69afeb62a6b955ec6b658a
6
+ metadata.gz: 312ff152ec0d15645de75421d8e4eec930733acfd898ff26e5b96816c83f586f6f191e845fe5801764410b98ed99c33cd932db826e1315ed3b23d7ec9f837029
7
+ data.tar.gz: 6e83244587c5bfe84c4da215d5a9af6598f4747fbbc50e3893e00a8fe6a6a3f76124b21267489035bd355bde9515343ea34f82cd64dd4f358fc79d8e9c4a98c5
data/lib/etd_model/etd.rb CHANGED
@@ -4,9 +4,9 @@ module EtdModel
4
4
  include Dor::Embargoable
5
5
  include Dor::Eventable
6
6
 
7
- has_many 'parts', :property => :is_part_of, :inbound => true
8
- has_many 'supplemental_files', :property => :is_constituent_of, :inbound => true
9
- has_many 'permission_files', :property => :is_dependent_of, :inbound => true
7
+ has_many 'parts', :property => :is_part_of
8
+ has_many 'supplemental_files', :property => :is_constituent_of
9
+ has_many 'permission_files', :property => :is_dependent_of
10
10
 
11
11
  has_metadata :name => 'properties', :type => ActiveFedora::SimpleDatastream do |m|
12
12
  m.field 'name', :string # PS:name
@@ -2,9 +2,9 @@ module EtdModel
2
2
  module EtdHelper
3
3
  def get_embargo_date
4
4
  props_ds = datastreams['properties']
5
- regaction = props_ds.regactiondttm_values.first
6
- embargo = props_ds.embargo_values.first
7
- if props_ds.regapproval_values.first =~ /^approved$/i &&
5
+ regaction = props_ds.regactiondttm.first
6
+ embargo = props_ds.embargo.first
7
+ if props_ds.regapproval.first =~ /^approved$/i &&
8
8
  !embargo.nil? && embargo != '' &&
9
9
  !regaction.nil? && regaction != ''
10
10
  case embargo
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.0.0
4
+ version: 2.1.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: 2016-01-21 00:00:00.000000000 Z
12
+ date: 2017-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dor-services
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '5.3'
20
+ version: '5.13'
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.3'
27
+ version: '5.13'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: coveralls
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  requirements: []
116
116
  rubyforge_project:
117
- rubygems_version: 2.4.6
117
+ rubygems_version: 2.5.2
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: ETD content model used by the SULAIR Digital Library