lib/ddr/index/fields.rb in ddr-models-2.1.0.rc1 vs lib/ddr/index/fields.rb in ddr-models-2.1.0.rc2

- old
+ new

@@ -5,10 +5,16 @@ def self.get(name) const_get(name.to_s.upcase, false) end + def self.techmd + constants(false) + .select { |c| c =~ /\ATECHMD_/ } + .map { |c| const_get(c) } + end + ID = UniqueKeyField.instance PID = UniqueKeyField.instance ACCESS_ROLE = Field.new :access_role, :stored_sortable ACTIVE_FEDORA_MODEL = Field.new :active_fedora_model, :stored_sortable @@ -24,9 +30,10 @@ DATE_FACET = Field.new :date_facet, :facetable DATE_SORT = Field.new :date_sort, :sortable DEPOSITOR = Field.new :depositor, :stored_sortable DISPLAY_FORMAT = Field.new :display_format, :stored_sortable DOI = Field.new :doi, :symbol + EAD_ID = Field.new :ead_id, :stored_sortable EXTRACTED_TEXT = Field.new :extracted_text, :searchable, type: :text HAS_MODEL = Field.new :has_model, :symbol IDENTIFIER_ALL = Field.new :identifier_all, :symbol INTERNAL_URI = Field.new :internal_uri, :stored_sortable IS_ATTACHED_TO = Field.new :is_attached_to, :symbol