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 +4 -4
- data/lib/etd_model/etd.rb +2 -2
- data/lib/etd_model/part.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cbdd5ad66dd22c5e6b7f6a8d69fe22c13907475
|
4
|
+
data.tar.gz: 87f167f1b457bd2f58625eda7ba20afdc0f00296
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/etd_model/part.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module EtdModel
|
2
2
|
class Part < ActiveFedora::Base
|
3
|
-
belongs_to 'parents', :property => :is_part_of
|
4
|
-
belongs_to 'supplemental_file_for', :property => :is_constituent_of
|
5
|
-
belongs_to 'permission_file_for', :property => :is_dependent_of
|
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.
|
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-
|
12
|
+
date: 2017-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dor-services
|