@@ -142,29 +142,35 @@ def initialized_default_configuration?
142142 # set to nil if a checkbox is prefered to the icon
143143 property :bookmark_icon_component , default : Blacklight ::Icons ::BookmarkIconComponent
144144
145- # @!attribute index
146- # General configuration for all views
145+ # @!attribute defaults
146+ # Default configuration for all views
147147 # @return [Blacklight::Configuration::ViewConfig::Index]
148- property :index , default : ViewConfig :: Index . new (
148+ property :defaults , default : ViewConfig . new (
149149 # document presenter class used by helpers and views
150150 document_presenter_class : Blacklight ::IndexPresenter ,
151- # document presenter used for json responses
152- json_presenter_class : Blacklight ::JsonPresenter ,
153151 # component class used to render a document
154152 document_component : Blacklight ::DocumentComponent ,
155153 document_embed_component : nil ,
156154 document_metadata_component : Blacklight ::DocumentMetadataComponent ,
157155 document_thumbnail_component : Blacklight ::Document ::ThumbnailComponent ,
158156 document_title_component : Blacklight ::DocumentTitleComponent ,
159- sidebar_component : Blacklight ::Search ::SidebarComponent ,
160- dropdown_component : Blacklight ::System ::DropdownComponent ,
161157 # solr field to use to render a document title
162158 title_field : nil ,
163159 # solr field to use to render format-specific partials
164- display_type_field : nil ,
160+ display_type_field : nil
161+ )
162+
163+ # @!attribute index
164+ # General configuration for search views
165+ # @return [Blacklight::Configuration::ViewConfig::Index]
166+ property :index , default : ViewConfig ::Index . new (
167+ document_actions : NestedOpenStructWithHashAccess . new ( ToolConfig ) ,
168+ # document presenter used for json responses
169+ json_presenter_class : Blacklight ::JsonPresenter ,
170+ sidebar_component : Blacklight ::Search ::SidebarComponent ,
171+ dropdown_component : Blacklight ::System ::DropdownComponent ,
165172 # the "field access" key to use to look up the document display fields
166173 document_fields_key : :index_fields ,
167- document_actions : NestedOpenStructWithHashAccess . new ( ToolConfig ) ,
168174 collection_actions : NestedOpenStructWithHashAccess . new ( ToolConfig ) ,
169175 # what field, if any, to use to render grouped results
170176 group : false ,
@@ -192,7 +198,7 @@ def initialized_default_configuration?
192198 property :show , default : ViewConfig ::Show . new (
193199 # document presenter class used by helpers and views
194200 document_presenter_class : Blacklight ::ShowPresenter ,
195- document_component : Blacklight :: DocumentComponent ,
201+ document_actions : NestedOpenStructWithHashAccess . new ( ToolConfig ) ,
196202 document_thumbnail_component : nil ,
197203 show_tools_component : Blacklight ::Document ::ShowToolsComponent ,
198204 show_header_tools_component : nil ,
@@ -205,7 +211,6 @@ def initialized_default_configuration?
205211 # Set this to a hash with additional arguments to merge into the route,
206212 # or set `controller: :current` to route to the current controller.
207213 route : nil ,
208- document_actions : NestedOpenStructWithHashAccess . new ( ToolConfig ) ,
209214 header_actions : NestedOpenStructWithHashAccess . new ( ToolConfig )
210215 )
211216
@@ -214,7 +219,7 @@ def initialized_default_configuration?
214219 # @return [Hash{Symbol => Blacklight::Configuration::ActionConfigMapEntry}]
215220 property :action_mapping , default : NestedOpenStructWithHashAccess . new (
216221 ActionConfigMapEntry ,
217- default : { blacklight_config_property : :index , default : [ :index ] } ,
222+ default : { blacklight_config_property : :index , default : [ :index , :defaults ] } ,
218223 show : { blacklight_config_property : :show } ,
219224 citation : { parent_action_key : :show } ,
220225 email_record : { blacklight_config_property : :email } ,
0 commit comments