module FcrepoAdmin::Configurable extend ActiveSupport::Concern included do # # FcrepoAdmin configuration settings # mattr_accessor :read_only self.read_only = false # MIME types representing text content that do not have "text" media type. mattr_accessor :extra_text_mime_types self.extra_text_mime_types = ['application/xml', 'application/rdf+xml', 'application/json'] # Datastream profile keys for values to display on datastream index view mattr_accessor :datastream_index_columns self.datastream_index_columns = ["dsLabel", "dsMIME", "dsSize", "dsCreateDate"] # Datastream profile keys for values to display on datastream history view mattr_accessor :datastream_history_columns self.datastream_history_columns = ["dsCreateDate"] # Datastream context navigation items mattr_accessor :datastream_nav_items self.datastream_nav_items = [:dsid, :version, :current_version, :summary, :content, :download, :edit, :upload, :history] # Datastream profile keys to display on datastream show page mattr_accessor :datastream_show_profile_keys self.datastream_show_profile_keys = ["dsLabel", "dsMIME", "dsVersionID", "dsCreateDate", "dsState", "dsFormatURI", "dsControlGroup", "dsSize", "dsVersionable", "dsInfoType", "dsLocation", "dsLocationType", "dsChecksumType", "dsChecksum"] # Sanity check on amount of text data to make editable via web form mattr_accessor :max_editable_datastream_size self.max_editable_datastream_size = 1024 * 64 # Object context navigation items mattr_accessor :object_nav_items self.object_nav_items = [:pid, :summary, :datastreams, :permissions, :associations, :audit_trail, :bookmark] # Datastream profile values to display on object show view mattr_accessor :object_show_datastream_columns self.object_show_datastream_columns = ["dsLabel"] # Methods on ActiveFedora::Base objects that represent Fcrepo object properties mattr_accessor :object_properties self.object_properties = [:label, :state, :create_date, :modified_date, :owner_id] # Number of objects to display per page on object associations show view mattr_accessor :associated_objects_per_page self.associated_objects_per_page = 10 end end