Skip to content

Commit

Permalink
Updated "No results" message.
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmajchrak committed Mar 22, 2024
1 parent badd394 commit 04cfafc
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ <h2 *ngIf="!disableHeader">{{ (configuration ? configuration + '.search.results.
message="{{errorMessageLabel() | translate}}"></ds-error>
<div *ngIf="searchResults?.payload?.page.length == 0 || searchResults?.statusCode == 400">
{{ 'search.results.no-results' | translate }}
<!-- TUL customer do not want this feature -->
<!-- <a [routerLink]="['/search']"-->
<!-- [queryParams]="{ query: surroundStringWithQuotes(searchConfig?.query) }"-->
<!-- queryParamsHandling="merge">-->
<!-- {{"search.results.no-results-link" | translate}}-->
<!-- </a>-->
<a [routerLink]="['/search']"
[queryParams]="{ query: surroundStringWithQuotes(searchConfig?.query) }"
queryParamsHandling="merge">
{{"search.results.no-results-link" | translate}}
</a>
<div>
<span>{{ 'search.results.advanced-search' | translate }}</span>
<a [href]="ADVANCED_SEARCH_WIKI_URL" target="_blank">{{ 'search.results.advanced-search-link' | translate }}</a>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export interface SelectionConfig {
export class SearchResultsComponent {
hasNoValue = hasNoValue;

ADVANCED_SEARCH_WIKI_URL = 'https://wiki.lyrasis.org/display/DSDOC7x/Search+-+Advanced';

/**
* The link type of the listed search results
*/
Expand Down
11 changes: 9 additions & 2 deletions src/assets/i18n/cs.json5
Original file line number Diff line number Diff line change
Expand Up @@ -7108,10 +7108,17 @@
"search.results.head" : "Výsledky hledání",

// "search.results.no-results" : "Your search returned no results. Having trouble finding what you're looking for? Try putting"
"search.results.no-results" : "Nebyly nalezeny žádné výsledky, zkuste dotaz přeformulovat.",
"search.results.no-results" : "Nebyly nalezeny žádné výsledky. Máte problém najít to, co hledáte? Zkuste dotaz",

// "search.results.no-results-link" : "quotes around it"
"search.results.no-results-link" : "vložit citace",
"search.results.no-results-link" : "vložit do citace.",

// "search.results.advanced-search" : "Or try searching using the "
"search.results.advanced-search" : "Nebo skuste vyhledávat podle metod ",

// "search.results.advanced-search-link": "advanced search."
"search.results.advanced-search-link" : "pokročilého vyhledávaní.",


// "search.results.empty" : "Your search returned no results."
"search.results.empty" : "Vaše hledání nevrátilo žádné výsledky.",
Expand Down
4 changes: 4 additions & 0 deletions src/assets/i18n/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4371,6 +4371,10 @@

"search.results.no-results-link": "quotes around it",

"search.results.advanced-search" : "Or try searching using the ",

"search.results.advanced-search-link" : "advanced search.",

"search.results.empty": "Your search returned no results.",

"search.results.view-result": "View",
Expand Down

0 comments on commit 04cfafc

Please sign in to comment.