lib/ddr/models/solr_document.rb in ddr-models-1.11.8 vs lib/ddr/models/solr_document.rb in ddr-models-1.12.0

- old
+ new

@@ -90,11 +90,11 @@ get(Ddr::IndexFields::TITLE) end alias_method :title_display, :title # duck-type Ddr::Models::Base def principal_has_role?(principal, role) - (Array(self["admin_metadata__#{role}_ssim"]) & Array(principal)).any? + (Array(get("admin_metadata__#{role}_ssim")) & Array(principal)).any? end def identifier # We want the multivalued version here get(ActiveFedora::SolrService.solr_name(:identifier, :stored_searchable, type: :text)) @@ -148,13 +148,9 @@ def has_default_rights? has_datastream?(Ddr::Datastreams::DEFAULT_RIGHTS) end - def parsed_content_metadata - JSON.parse(self[Ddr::IndexFields::CONTENT_METADATA_PARSED].first) - end - def association(name) get_pid(ActiveFedora::SolrService.solr_name(name, :symbol)) end def controller_name