lib/hyrax/configuration.rb
# IIIF metadata - fields to display in the metadata section
#
# @return [#Array] fields
IIIF metadata - fields to display in the metadata section
IIIF metadata - fields to display in the metadata section
def iiif_metadata_fields
      if Account.find_by(tenant: Apartment::Tenant.current)&.cname.include?("vault")
        @iiif_metadata_fields ||= [:creator_label, :creator, :contributor_label, :contributor, :subject_label, :subject, :publisher, :language, :identifier, :keyword, :date_created, :based_near_label, :related_url, :resource_type, :source, :rights_statement, :license, :extent, :alternative_title, :edition, :geographic_coverage_label, :geographic_coverage, :coordinates, :chronological_coverage, :additional_physical_characteristics, :has_format, :physical_repository_label, :physical_repository, :collection, :provenance, :provider_label, :provider, :sponsor, :genre_label, :genre, :format, :archival_item_identifier, :fonds_title, :fonds_creator, :fonds_description, :fonds_identifier, :is_referenced_by, :date_digitized, :transcript, :technical_note, :year]
      else
        @iiif_metadata_fields ||= Hyrax::Forms::WorkForm.required_fields
      end
    end
def iiif_metadata_fields if Account . find_by ( tenant : Apartment :: Tenant . current ) &. cname . include? ( "vault" ) @iiif_metadata_fields ||= [ :creator_label , :creator , :contributor_label , :contributor , :subject_label , :subject , :publisher , :language , :identifier , :keyword , :date_created , :based_near_label , :related_url , :resource_type , :source , :rights_statement , :license , :extent , :alternative_title , :edition , :geographic_coverage_label , :geographic_coverage , :coordinates , :chronological_coverage , :additional_physical_characteristics , :has_format , :physical_repository_label , :physical_repository , :collection , :provenance , :provider_label , :provider , :sponsor , :genre_label , :genre , :format , :archival_item_identifier , :fonds_title , :fonds_creator , :fonds_description , :fonds_identifier , :is_referenced_by , :date_digitized , :transcript , :technical_note , :year ] else @iiif_metadata_fields ||= Hyrax :: Forms :: WorkForm . required_fields end end
IIIF metadata - fields to display in the metadata section
IIIF metadata - fields to display in the metadata section
None
#Array