From 99e67161c37740f40053748c42ccdf10a4b925b0 Mon Sep 17 00:00:00 2001 From: Alisha Evans Date: Wed, 4 Oct 2023 01:39:37 -0500 Subject: [PATCH] restore our ability to properly look up works by their `work_identifier` - ref: https://github.com/samvera-labs/bulkrax/issues/866 - ref:https://github.com/samvera-labs/bulkrax/issues/867 --- app/factories/bulkrax/object_factory.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/factories/bulkrax/object_factory.rb b/app/factories/bulkrax/object_factory.rb index df742308..9e9e8ee6 100644 --- a/app/factories/bulkrax/object_factory.rb +++ b/app/factories/bulkrax/object_factory.rb @@ -103,7 +103,11 @@ def find_or_create end def search_by_identifier - work_index = ::ActiveFedora.index_field_mapper.solr_name(work_identifier, :facetable) + # TODO(alishaevn): return the proper `work_index` value below + # ref: https://github.com/samvera-labs/bulkrax/issues/866 + # ref:https://github.com/samvera-labs/bulkrax/issues/867 + # work_index = ::ActiveFedora.index_field_mapper.solr_name(work_identifier, :facetable) + work_index = work_identifier query = { work_index => source_identifier_value } # Query can return partial matches (something6 matches both something6 and something68)