def render_enriched_record(document)
      agg = document.aggregation
      return error_msg('Aggregation not found.') unless agg.present?
      JSON.pretty_generate(agg.to_jsonld['@graph'])
    end
def render_enriched_record(document)
      agg = document.aggregation
      return error_msg('Aggregation not found.') unless agg.present?
      JSON.pretty_generate(agg.to_jsonld['@graph'])
    end
Render enriched record for view
 @param [Krikri::SearchIndexDocument]
 @return [String]