etd_model 2.1.0 → 2.1.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
  SHA1:
3
- metadata.gz: 5cac7af1db2bf1ad47dde1614f55bb9365e5d655
4
- data.tar.gz: 4f243d13dee7faa6fc47f340fd2b421abbbb6eb7
3
+ metadata.gz: 4cbdd5ad66dd22c5e6b7f6a8d69fe22c13907475
4
+ data.tar.gz: 87f167f1b457bd2f58625eda7ba20afdc0f00296
5
5
  SHA512:
6
- metadata.gz: 312ff152ec0d15645de75421d8e4eec930733acfd898ff26e5b96816c83f586f6f191e845fe5801764410b98ed99c33cd932db826e1315ed3b23d7ec9f837029
7
- data.tar.gz: 6e83244587c5bfe84c4da215d5a9af6598f4747fbbc50e3893e00a8fe6a6a3f76124b21267489035bd355bde9515343ea34f82cd64dd4f358fc79d8e9c4a98c5
6
+ metadata.gz: e651a3d04b05a7d6810a57150ca7df7b96addc8bc5edd17f4f75ab29d46960a9d4f0ed529a34a00e3356feff28e29caae0808fe5a539b489616a6ee452363999
7
+ data.tar.gz: afe32c2f0d9652e11dfd8f6ff12a88dedfc2891e385ffdb2bcc09250cda1ef27eeb5ea134f40d76b00d69d3d55f7d6f41205d7c602f961f15f663a8a51bb3ce1
data/lib/etd_model/etd.rb CHANGED
@@ -5,8 +5,8 @@ module EtdModel
5
5
  include Dor::Eventable
6
6
 
7
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
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'
10
10
 
11
11
  has_metadata :name => 'properties', :type => ActiveFedora::SimpleDatastream do |m|
12
12
  m.field 'name', :string # PS:name
@@ -1,8 +1,8 @@
1
1
  module EtdModel
2
2
  class Part < ActiveFedora::Base
3
- belongs_to 'parents', :property => :is_part_of # relationship between main pdf and parent etd
4
- belongs_to 'supplemental_file_for', :property => :is_constituent_of # relationship between supplemental file and parent etd
5
- belongs_to 'permission_file_for', :property => :is_dependent_of # relationsihip between permission file and parent etd
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
6
6
 
7
7
  has_metadata :name => 'properties', :type => ActiveFedora::SimpleDatastream do |m|
8
8
  m.field 'file_name', :string
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.0
4
+ version: 2.1.1
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-10 00:00:00.000000000 Z
12
+ date: 2017-01-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dor-services