Skip to content

Commit

Permalink
Modify record not found message to only link to signin if user is not…
Browse files Browse the repository at this point in the history
… logged in (#8312)
  • Loading branch information
tylerjmchugh committed Aug 27, 2024
1 parent 347dc96 commit 22a87f6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions web-ui/src/main/resources/catalog/locales/en-search.json
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@
"shareOnLinkedIn": "Share on LinkedIn",
"shareByEmail": "Share by email",
"zoomto": "Zoom To",
"recordNotFound": "The record with identifier <strong>{{uuid}}</strong> was not found or is not shared with you. Try to <a href=\"catalog.signin?redirect={{url}}\">sign in</a> if you've an account.",
"intersectWith": "Intersects with",
"recordNotFound": "The record with identifier <strong>{{uuid}}</strong> was not found or is not shared with you.",
"trySignIn": "Try to <a href=\"catalog.signin?redirect={{url}}\">sign in</a> if you've an account.", "intersectWith": "Intersects with",
"fullyOutsideOf": "Fully outside of",
"encloses": "Enclosing",
"within": "Within",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,20 @@
<div
class="alert alert-warning"
data-ng-hide="!mdView.loadDetailsFinished || mdView.current.record"
data-translate=""
data-translate-values="{uuid: '{{recordIdentifierRequested | htmlToPlaintext}}', url: '{{url | encodeURIComponent}}'}"
>
recordNotFound
<span
data-translate=""
data-translate-values="{uuid: '{{recordIdentifierRequested | htmlToPlaintext}}'}"
>
recordNotFound
</span>
<span
data-ng-hide="user"
data-translate=""
data-translate-values="{url: '{{url | encodeURIComponent}}'}"
>
trySignIn
</span>
</div>
<div class="row" data-ng-show="!mdView.loadDetailsFinished">
<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i>
Expand Down

0 comments on commit 22a87f6

Please sign in to comment.