diff --git a/deposit/depositFirstPage.component.ts b/deposit/depositFirstPage.component.ts index 07512ccf..a6cb658d 100644 --- a/deposit/depositFirstPage.component.ts +++ b/deposit/depositFirstPage.component.ts @@ -130,14 +130,15 @@ import {PiwikService} from "../utils/piwik/piwik.service"; -
- + + ` }) @@ -146,6 +147,9 @@ export class DepositFirstPageComponent { @Input() piwikSiteId = null; piwiksub:any; + @Input() pageContents = null; + @Input() divContents = null; + public keyword: string; public depositRoute = "/search-deposit"; public searchPlaceHolder = "Search for repositories by title, country, organization, subject..."; diff --git a/error/isRouteEnabled.guard.ts b/error/isRouteEnabled.guard.ts index c365e598..8c4a9e9b 100644 --- a/error/isRouteEnabled.guard.ts +++ b/error/isRouteEnabled.guard.ts @@ -39,8 +39,8 @@ export class IsRouteEnabled implements CanActivate { } return res; }),mergeMap(prop => { - if (!community) { // no community to check - return true - return observableOf(true); + if (!community) { + community = prop.adminToolsCommunity; } return this.config.isPageEnabled(prop, community, '/' + path.split('?')[0].substring(1)); }),);