Module: ActiveFedora::Finders

Extended by:
ActiveSupport::Autoload, ActiveSupport::Concern
Defined in:
lib/active_fedora_finders.rb,
lib/active_fedora_finders/version.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

SINGLE_VALUE_FIELDS =
[:pid, :cDate, :mDate, :label]
SYSTEM_FIELDS =
[:ownerId].concat(SINGLE_VALUE_FIELDS)
DC_FIELDS =
[:contributor, :coverage, :creator, :date, :description, :format,
:identifier, :language, :publisher, :relation, :rights, :source,
:subject, :title, :type ]
SUPPORTED_ALTS =
[:cdate, :create_date, :mdate, :modified_date, :owner_id]
ALL_FIELDS =
[].concat(SYSTEM_FIELDS).concat(DC_FIELDS)
FIELD_KEYS =
begin
  fk = Hash[ALL_FIELDS.map {|a| [a.to_s, a]}]
  fk["cdate"] = :cDate
  fk["create_date"] = :cDate
  fk["mdate"] = :mDate
  fk["modified_date"] = :mDate
  fk["owner_id"] = :ownerId
  fk
end
VERSION =
'0.2.0'