Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
* Fix data dictionary required fields
* Improve show tools display logic
  • Loading branch information
ewlarson committed Jan 17, 2025
1 parent 0a5257e commit 04df737
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/views/admin/document_data_dictionaries/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<tr>
<th>friendlier_id*</th>
<th>field_name*</th>
<th>field_type*</th>
<th>values*</th>
<th>field_type</th>
<th>values</th>
<th>definition</th>
<th>definition_source</th>
<th>parent_field_name</th>
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/geoblacklight_admin/config_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def add_kithe_bulk_loading_service

def add_show_gbl_admin_data_dictionaries
inject_into_file "app/controllers/catalog_controller.rb", after: "# Custom tools for GeoBlacklight" do
"\n config.add_show_tools_partial :gbl_admin_data_dictionaries, partial: 'gbl_admin_data_dictionaries'"
"\n config.add_show_tools_partial :gbl_admin_data_dictionaries, partial: 'gbl_admin_data_dictionaries', if: proc { |_context, _config, options| options[:document] && options[:document]&.kithe_model&.document_data_dictionaries&.present? }"
end
end

Expand Down

0 comments on commit 04df737

Please sign in to comment.