@@ -29,13 +29,14 @@ Add an entry to your `config.rb` like this:
2929 AppConfig[:user_defined_in_basic] = {
3030 'accessions' => ['boolean_1', 'enum_2', 'real_2'],
3131 'digital_objects' => [],
32- 'resources' => ['string_2', 'date_1', 'boolean_1']
32+ 'resources' => ['string_2', 'date_1', 'boolean_1'],
33+ 'hide_user_defined_section' => true
3334 }
3435
3536If you don't have a ` :user_defined_in_basic ` entry the plugin won't do anything.
3637It will log a warning at startup.
3738
38- The three keys shown ( ` accessions ` , ` resources ` , and ` digital_objects ` ) are the
39+ The three keys, ` accessions ` , ` resources ` , and ` digital_objects ` , are the
3940record types that can have a ` user_defined ` subrecord. For each key specified
4041a ` user_defined ` subrecord will be automatically added when a new record
4142is created through the staff UI, or will be added to an existing record when
@@ -53,3 +54,8 @@ to see in the `Basic Information`. The fields specified will be moved to the
5354If you specify a field that doesn't exist in the ` user_defined ` record,
5455a warning will be logged at startup.
5556
57+ The ` hide_user_defined_section ` key is optional. If specified with a value of
58+ ` true ` , then the User Defined section will be hidden in View and Edit modes.
59+ This will give a cleaner display, but it means it will only be possible to
60+ edit the user defined fields that have been moved to the Basic Information
61+ section.
0 commit comments