Skip to content

Commit 0e68a5e

Browse files
authored
5.4.0-bug-fixes (#865)
* restore the ability to load the "/importers" page. there was an extra "x" in the app/views/bulkrax/importers/_oai_fields.html.erb file. it threw a syntax error when trying to create a new importer. * restore our ability to properly look up works by their `work_identifier` - ref: #866 - ref:#867
1 parent 9ea4de6 commit 0e68a5e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/factories/bulkrax/object_factory.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ def find_or_create
103103
end
104104

105105
def search_by_identifier
106-
work_index = ::ActiveFedora.index_field_mapper.solr_name(work_identifier, :facetable)
106+
# TODO(alishaevn): return the proper `work_index` value below
107+
# ref: https://github.com/samvera-labs/bulkrax/issues/866
108+
# ref:https://github.com/samvera-labs/bulkrax/issues/867
109+
# work_index = ::ActiveFedora.index_field_mapper.solr_name(work_identifier, :facetable)
110+
work_index = work_identifier
107111
query = { work_index =>
108112
source_identifier_value }
109113
# Query can return partial matches (something6 matches both something6 and something68)

app/views/bulkrax/importers/_oai_fields.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
['Public', 'open'],
1212
['Private', 'restricted'],
1313
['Institution', 'authenticated']
14-
],x
14+
],
1515
selected: importer.parser_fields['visibility'] || 'open',
1616
input_html: { class: 'form-control' }
1717
%>

0 commit comments

Comments
 (0)