diff --git a/src/app/resources/explore-books-sort/explore-books-sort.component.html b/src/app/resources/explore-books-sort/explore-books-sort.component.html
index b7bb318310..77cb2139f6 100644
--- a/src/app/resources/explore-books-sort/explore-books-sort.component.html
+++ b/src/app/resources/explore-books-sort/explore-books-sort.component.html
@@ -9,12 +9,15 @@
-
-
+
+
{{'EXPLORE_HEADING' | translate: {'%s': appName} }}
+
+
+
+
\ No newline at end of file
diff --git a/src/app/resources/explore-books-sort/explore-books-sort.component.ts b/src/app/resources/explore-books-sort/explore-books-sort.component.ts
index e65be9a409..96e90ae03a 100644
--- a/src/app/resources/explore-books-sort/explore-books-sort.component.ts
+++ b/src/app/resources/explore-books-sort/explore-books-sort.component.ts
@@ -87,21 +87,23 @@ export class ExploreBooksSortComponent implements OnInit, OnDestroy {
.then((result: ContentSearchResult) => {
this.ngZone.run(() => {
this.storyAndWorksheets = result.contentDataList;
- for (let i = 0; i < this.storyAndWorksheets.length; i++) {
- // check if locally available
- const content = this.storyAndWorksheets[i];
- if (content.appIcon) {
- if (content.appIcon.includes('http:') || content.appIcon.includes('https:')) {
- if (this.commonUtilService.networkInfo.isNetworkAvailable) {
- content.cardImg = content.appIcon;
- } else {
- this.imageSrcMap.set(content.identifier, content.appIcon);
- content.appIcon = this.defaultImg;
+ if (this.storyAndWorksheets.length) {
+ for (let i = 0; i < this.storyAndWorksheets.length; i++) {
+ // check if locally available
+ const content = this.storyAndWorksheets[i];
+ if (content.appIcon) {
+ if (content.appIcon.includes('http:') || content.appIcon.includes('https:')) {
+ if (this.commonUtilService.networkInfo.isNetworkAvailable) {
+ content.cardImg = content.appIcon;
+ } else {
+ this.imageSrcMap.set(content.identifier, content.appIcon);
+ content.appIcon = this.defaultImg;
+ }
+ } else if (content.basePath) {
+ content.appIcon = content.basePath + '/' + content.appIcon;
}
- } else if (content.basePath) {
- content.appIcon = content.basePath + '/' + content.appIcon;
}
- }
+ }
}
});
});
@@ -132,7 +134,7 @@ export class ExploreBooksSortComponent implements OnInit, OnDestroy {
this.telemetryGeneratorService.generateInteractTelemetry(InteractType.TOUCH,
InteractSubtype.CONTENT_CLICKED,
Environment.HOME,
- PageId.LIBRARY,
+ PageId.EXPLORE_MORE_CONTENT,
telemetryObject,
values,
ContentUtil.generateRollUp(undefined, identifier),
@@ -151,7 +153,7 @@ export class ExploreBooksSortComponent implements OnInit, OnDestroy {
this.telemetryGeneratorService.generateInteractTelemetry(InteractType.TOUCH,
InteractSubtype.VIEW_MORE_CLICKED,
Environment.HOME,
- PageId.LIBRARY,
+ PageId.EXPLORE_MORE_CONTENT,
telemetryObject);
if (this.commonUtilService.networkInfo.isNetworkAvailable || items.isAvailableLocally) {
this.modalCtrl.dismiss(null);