Skip to content

Commit

Permalink
Merge pull request #2161 from samvera/i35-valkyrize-hyku-relationships
Browse files Browse the repository at this point in the history
🧹 Fix relationship links
  • Loading branch information
jeremyf authored Feb 2, 2024
2 parents bb112d0 + dd61e0c commit 54f8d1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/indexers/concerns/hyku_indexing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module HykuIndexing
solr_doc['bulkrax_identifier_tesim'] = object.bulkrax_identifier if object.respond_to?(:bulkrax_identifier)
solr_doc['account_institution_name_ssim'] = Site.instance.institution_label
solr_doc['valkyrie_bsi'] = object.kind_of?(Valkyrie::Resource)
solr_doc['member_ids_ssim'] = object.member_ids.map(&:id)
# TODO: Reinstate once valkyrie fileset work is complete - https://github.com/scientist-softserv/hykuup_knapsack/issues/34
solr_doc['all_text_tsimv'] = full_text(object.file_sets.first&.id) if object.kind_of?(ActiveFedora::Base)
# rubocop:enable Style/ClassCheck
Expand Down
2 changes: 1 addition & 1 deletion app/models/solr_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def show_pdf_download_button

# @return [Array<SolrDocument>] a list of solr documents in no particular order
def load_parent_docs
query("member_ids_ssim: #{id}", rows: 1000)
query("member_ids_ssim:#{id}", rows: 1000)
.map { |res| ::SolrDocument.new(res) }
end

Expand Down

0 comments on commit 54f8d1f

Please sign in to comment.