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

- old
+ new

@@ -207,9 +207,16 @@ def multires_image_file_paths(type='default') struct_map_docs(type).map { |doc| doc.multires_image_file_path }.compact end + # DRY HasAdminMetadata + def finding_aid + if ead_id + FindingAid.new(ead_id) + end + end + private def targets_query "#{Ddr::Index::Fields::IS_EXTERNAL_TARGET_FOR}:#{internal_uri_for_query}" end