Skip to content

Commit

Permalink
restore our ability to properly look up works by their work_identifier
Browse files Browse the repository at this point in the history
- ref: #866
- ref:#867
  • Loading branch information
alishaevn committed Oct 4, 2023
1 parent 030103d commit 99e6716
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/factories/bulkrax/object_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 99e6716

Please sign in to comment.