diff --git a/app/controllers/api/v3/typeaheads_controller.rb b/app/controllers/api/v3/typeaheads_controller.rb index a75adafc07..5ec4b98443 100644 --- a/app/controllers/api/v3/typeaheads_controller.rb +++ b/app/controllers/api/v3/typeaheads_controller.rb @@ -121,13 +121,6 @@ def process_results(term:, matches: []) results = deduplicate(term: term, list: matches) results.map(&:name).flatten.compact.uniq out = paginate_response(results: results) - - # Add the search term if it was not included in the results already - term_matched = results.select do |it| - it.name&.split(' (')&.first&.downcase&.strip == term.split(' (')&.first&.downcase&.strip - end - out.unshift(Org.new(name: term)) unless term_matched.any? - out end # Weighs the result. The greater the weight the closer the match, preferring Orgs already in use diff --git a/react-client/src/pages/plan/research-outputs/researchoutputs.js b/react-client/src/pages/plan/research-outputs/researchoutputs.js index 7f0b4778d0..ed6d7ff444 100644 --- a/react-client/src/pages/plan/research-outputs/researchoutputs.js +++ b/react-client/src/pages/plan/research-outputs/researchoutputs.js @@ -360,7 +360,7 @@ function ResearchOutputs() { disabled={dataObj.repository.isLocked} hidden={dataObj.repository.isLocked} /> -
(e.g., "https://dataverse.org/")
+(e.g., "https://dataverse.org/")