Skip to content

Commit

Permalink
remove text indicating that users can search by DOI (#1092)
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Rosenberg <[email protected]>
  • Loading branch information
jarosenb and Jake Rosenberg authored Aug 29, 2023
1 parent 2fcc8e1 commit 62aac9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion designsafe/apps/api/publications/search_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ def search_string_query(search_string):
'project.value.projectType',
'project.value.dataType'])
q2 = Q({'term': {'projectId._exact': search_string}})
return q1 | q2 | author_query(search_string)
return q1 | q2 | author_query(f"\"{search_string}\"")
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<button class="btn btn-success" ng-click="$ctrl.browse()" style="width:fit-content; white-space: nowrap; text-align: center; height: 34px;">
<i class="fa fa-search" role="none">&nbsp;</i>Search
</button>
<input type="text" placeholder="Author, Title, Keyword, Description, Natural Hazard Event, Project ID, or DOI"
data-toggle="tooltip" data-placement="top" title="Author, Title, Keyword, Description, Natural Hazard Event, Project ID, or DOI" aria-label="Search Publications"
<input type="text" placeholder="Author, Title, Keyword, Description, Natural Hazard Event, or Project ID"
data-toggle="tooltip" data-placement="top" title="Author, Title, Keyword, Description, Natural Hazard Event, or Project ID" aria-label="Search Publications"
class="form-control" ng-model="$ctrl.params.queries.searchString" class="form-control" id="author-input" ng-keydown="$event.keyCode === 13 && $ctrl.browse()">
</div>

Expand Down

0 comments on commit 62aac9e

Please sign in to comment.