lib/ddr/models/indexing.rb in ddr-models-2.3.2 vs lib/ddr/models/indexing.rb in ddr-models-2.4.0.rc1
- old
+ new
@@ -2,18 +2,23 @@
module Models
module Indexing
include Ddr::Index::Fields
+ def self.const_missing(name)
+ Ddr::Index::Fields.const_missing(name)
+ end
+
def to_solr(solr_doc=Hash.new, opts={})
solr_doc = super(solr_doc, opts)
solr_doc.merge index_fields
end
def index_fields
fields = {
ACCESS_ROLE => roles.to_json,
ADMIN_SET => admin_set,
+ ASPACE_ID => aspace_id,
BOX_NUMBER_FACET => desc_metadata_values('box_number'),
CREATOR_FACET => creator,
DATE_FACET => date,
DATE_SORT => date_sort,
DEPOSITOR => depositor,