Sha256: 251d6a3b16ac825b552899472ad20785ef247597ee6d3acbbbe57abd470555b1
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
module FcrepoAdmin::Helpers module ObjectsHelperBehavior include FcrepoAdmin::Helpers::FcrepoAdminHelperBehavior def object_title "#{object_type} #{@object.pid}" end def object_type @object.class.to_s end def object_properties_keys [:owner_id, :state, :create_date, :modified_date, :label] end def object_properties object_properties_keys.inject(Hash.new) { |h, p| h[p] = @object.send(p); h } end # List of ds profile keys for for object show view def object_show_datastream_columns ["dsLabel"] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fcrepo_admin-0.4.1 | lib/fcrepo_admin/helpers/objects_helper_behavior.rb |