diff --git a/src/app/components/results-menu/scenes-list-header/scenes-list-header.component.html b/src/app/components/results-menu/scenes-list-header/scenes-list-header.component.html index 07cb4584e..aade7b536 100644 --- a/src/app/components/results-menu/scenes-list-header/scenes-list-header.component.html +++ b/src/app/components/results-menu/scenes-list-header/scenes-list-header.component.html @@ -18,20 +18,21 @@ searchType === SearchTypes.DATASET || searchType === SearchTypes.LIST ) {
- {{ numberOfScenes$ | async }} {{ 'SCENE' | translate - }}{{ (numberOfScenes$ | async) === 1 ? '' : 's' }} + @let numberOfProducts = numberOfProducts$ | async; + @let virtualCount = totalVirtualProducts$ | async; + @let sceneCountDisplay = numberOfProducts - virtualCount; + {{ sceneCountDisplay }} {{ 'SCENE' | translate + }}{{ sceneCountDisplay === 1 ? '' : 's' }} + @if (numberOfProducts > 0) { + ({{ numberOfProducts }} {{ numberOfProducts == 1 ? 'FILE' : 'FILES' | translate }}) + } @if (breakpoint > breakpoints.MOBILE) {
- @let virtualCount = totalVirtualProducts$ | async; - {{ (numberOfProducts$ | async) - virtualCount }} - @if (virtualCount > 0) { - ({{ virtualCount }} {{ 'ADDITIONAL' | translate }}) - } - {{ 'OF' | translate }} - {{ formatNumber(totalResultCount$ | async) }} - {{ 'FILE' | translate - }}{{ (numberOfProducts$ | async) === 1 ? '' : 's' }} + {{ sceneCountDisplay }} + {{ 'OF' | translate }} + {{ formatNumber(totalResultCount$ | async) }} + {{'TOTAL' | translate }} {{ numberOfProducts == 1 ? 'SCENE' : 'SCENES' | translate }}
}
diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index fa5ec68ae..a6a81ab0f 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -978,6 +978,7 @@ "TIMELINE": "timeline", "TITLE_HOW_CAN_WE_HELP_YOU": "title : \"How can we help you?\",", "TO": "to", + "TOTAL": "Total", "TO_A": "to a", "TO_A ": " to a", "TO_A_CSV_KML_OR_GEO_JSON_FILE_THE_KML_AND_GEO_JSON": "to a CSV, KML, or GeoJSON file. The KML and GeoJSON",