app/presenters/hyku/manifest_enabled_work_show_presenter.rb
# Retrieve the required fields from the Form class. Derive the Form class name from the Model name.
#   The class should exist, but it may not if different namespaces are being used.
#   If it does not exist, rescue and return an empty Array.
#
# @return [Array] required fields
Retrieve the required fields from the Form class. Derive the Form class name from the Model name.
The class should exist, but it may not if different namespaces are being used.
If it does not exist, rescue and return an empty Array.
Retrieve the required fields from the Form class . Derive the Form class name from the Model name . The class should exist but it may not if different namespaces are being used . If it does not exist rescue and return an empty Array .
def metadata_fields
        ns = "Hyrax"
        model = solr_document['has_model_ssim'].first
        "#{ns}::#{model}Form".constantize.required_fields
      rescue
        []
      end
def metadata_fields ns = "Hyrax" model = solr_document [ 'has_model_ssim' ] . first "#{ns}::#{model}Form" . constantize . required_fields rescue [ ] end
Retrieve the required fields from the Form class.
Retrieve the required fields from the Form class .
None
Array