File tree Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Expand file tree Collapse file tree 7 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ class CollectionResource < Hyrax::PcdmCollection
30
30
# * add Valkyrie attributes to this class
31
31
# * update form and indexer to process the attributes
32
32
#
33
- include Hyrax ::Schema ( :basic_metadata )
34
- include Hyrax ::Schema ( :collection_resource )
33
+ include Hyrax ::Schema ( :basic_metadata ) unless ENV . fetch ( 'HYRAX_FLEXIBLE' , false )
34
+ include Hyrax ::Schema ( :collection_resource ) unless ENV . fetch ( 'HYRAX_FLEXIBLE' , false )
35
35
36
36
Hyrax ::ValkyrieLazyMigration . migrating ( self , from : ::Collection )
37
37
end
Original file line number Diff line number Diff line change 3
3
# Generated via
4
4
# `rails generate hyrax:work_resource GenericWorkResource`
5
5
class GenericWorkResource < Hyrax ::Work
6
- include Hyrax ::Schema ( :basic_metadata )
7
- include Hyrax ::Schema ( :generic_work_resource )
6
+ include Hyrax ::Schema ( :basic_metadata ) unless ENV . fetch ( 'HYRAX_FLEXIBLE' , false )
7
+ include Hyrax ::Schema ( :generic_work_resource ) unless ENV . fetch ( 'HYRAX_FLEXIBLE' , false )
8
8
9
9
Hyrax ::ValkyrieLazyMigration . migrating ( self , from : GenericWork )
10
10
end
Original file line number Diff line number Diff line change 3
3
# Generated via
4
4
# `rails generate hyrax:work_resource Monograph`
5
5
class Monograph < Hyrax ::Work
6
- include Hyrax ::Schema ( :basic_metadata )
7
- include Hyrax ::Schema ( :monograph )
6
+ include Hyrax ::Schema ( :basic_metadata ) unless ENV . fetch ( 'HYRAX_FLEXIBLE' , false )
7
+ include Hyrax ::Schema ( :monograph ) unless ENV . fetch ( 'HYRAX_FLEXIBLE' , false )
8
8
end
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ module Hyrax
25
25
# @see Valkyrie query adapter's #find_inverse_references_by
26
26
#
27
27
class AdministrativeSet < Hyrax ::Resource
28
- include Hyrax ::Schema ( :core_metadata )
28
+ include Hyrax ::Schema ( :core_metadata ) unless ENV . fetch ( 'HYRAX_FLEXIBLE' , false )
29
29
30
30
attribute :alternative_title , Valkyrie ::Types ::Set . of ( Valkyrie ::Types ::String )
31
31
attribute :creator , Valkyrie ::Types ::Set . of ( Valkyrie ::Types ::String )
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ module Hyrax
49
49
# @see Hyrax::CustomQueries::Navigators::ParentWorkNavigator#find_parent_work
50
50
# @see https://wiki.duraspace.org/display/samvera/Hydra%3A%3AWorks+Shared+Modeling
51
51
class FileSet < Hyrax ::Resource
52
- include Hyrax ::Schema ( :core_metadata )
53
- include Hyrax ::Schema ( :file_set_metadata )
52
+ include Hyrax ::Schema ( :core_metadata ) unless ENV . fetch ( 'HYRAX_FLEXIBLE' , false )
53
+ include Hyrax ::Schema ( :file_set_metadata ) unless ENV . fetch ( 'HYRAX_FLEXIBLE' , false )
54
54
55
55
def self . model_name ( name_class : Hyrax ::Name )
56
56
@_model_name ||= name_class . new ( self , nil , 'FileSet' )
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ module Hyrax
40
40
# @see Hyrax::CustomQueries::Navigators::CollectionMembers#find_members_of
41
41
#
42
42
class PcdmCollection < Hyrax ::Resource
43
- include Hyrax ::Schema ( :core_metadata )
43
+ include Hyrax ::Schema ( :core_metadata ) unless ENV . fetch ( 'HYRAX_FLEXIBLE' , false )
44
44
45
45
attribute :collection_type_gid , Valkyrie ::Types ::String
46
46
attribute :member_ids , Valkyrie ::Types ::Array . of ( Valkyrie ::Types ::ID ) . meta ( ordered : true )
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ module Hyrax
94
94
# @see https://wiki.lyrasis.org/display/samvera/Hydra::Works+Shared+Modeling
95
95
# for a historical perspective.
96
96
class Work < Hyrax ::Resource
97
- include Hyrax ::Schema ( :core_metadata ) unless ENV . fetch ( 'HYRAX_FLEXIBILE ' , false )
97
+ include Hyrax ::Schema ( :core_metadata ) unless ENV . fetch ( 'HYRAX_FLEXIBLE ' , false )
98
98
99
99
attribute :admin_set_id , Valkyrie ::Types ::ID
100
100
attribute :member_ids , Valkyrie ::Types ::Array . of ( Valkyrie ::Types ::ID ) . meta ( ordered : true )
You can’t perform that action at this time.
0 commit comments