Compare commits
4 Commits
6560bd0cd9
...
327fe64293
Author | SHA1 | Date |
---|---|---|
argirok | 327fe64293 | |
argirok | 01554f58f5 | |
argirok | 6c1c3ef2b2 | |
argirok | 1abd7c111f |
|
@ -168,7 +168,7 @@
|
||||||
<span class="uk-text-xsmall">
|
<span class="uk-text-xsmall">
|
||||||
{{openaireEntities.PUBLICATIONS}}
|
{{openaireEntities.PUBLICATIONS}}
|
||||||
</span>
|
</span>
|
||||||
<span *ngIf="resultCounts" class="uk-h6 uk-margin-remove"
|
<span *ngIf="resultCounts" class="uk-h6 uk-margin-remove uk-button-link"
|
||||||
[innerHTML]="resultCounts.publications | numberRound: 1:1">
|
[innerHTML]="resultCounts.publications | numberRound: 1:1">
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -183,7 +183,7 @@
|
||||||
<span class="uk-text-xsmall">
|
<span class="uk-text-xsmall">
|
||||||
{{openaireEntities.DATASETS}}
|
{{openaireEntities.DATASETS}}
|
||||||
</span>
|
</span>
|
||||||
<span *ngIf="resultCounts" class="uk-h6 uk-margin-remove"
|
<span *ngIf="resultCounts" class="uk-h6 uk-margin-remove uk-button-link"
|
||||||
[innerHTML]="resultCounts.datasets | numberRound: 1:1">
|
[innerHTML]="resultCounts.datasets | numberRound: 1:1">
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -196,7 +196,7 @@
|
||||||
<span class="uk-text-xsmall">
|
<span class="uk-text-xsmall">
|
||||||
{{openaireEntities.DATASETS}}
|
{{openaireEntities.DATASETS}}
|
||||||
</span>
|
</span>
|
||||||
<span *ngIf="resultCounts" class="uk-h6 uk-margin-remove" [innerHTML]="resultCounts.datasets | numberRound: 1:1">
|
<span *ngIf="resultCounts" class="uk-h6 uk-margin-remove uk-button-link" [innerHTML]="resultCounts.datasets | numberRound: 1:1">
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>-->
|
</div>-->
|
||||||
|
@ -210,7 +210,7 @@
|
||||||
<span class="uk-text-xsmall">
|
<span class="uk-text-xsmall">
|
||||||
{{openaireEntities.SOFTWARE}}
|
{{openaireEntities.SOFTWARE}}
|
||||||
</span>
|
</span>
|
||||||
<span *ngIf="resultCounts" class="uk-h6 uk-margin-remove"
|
<span *ngIf="resultCounts" class="uk-h6 uk-margin-remove uk-button-link"
|
||||||
[innerHTML]="resultCounts.software | numberRound: 1:1">
|
[innerHTML]="resultCounts.software | numberRound: 1:1">
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -225,7 +225,7 @@
|
||||||
<span class="uk-text-xsmall">
|
<span class="uk-text-xsmall">
|
||||||
{{openaireEntities.OTHER}}
|
{{openaireEntities.OTHER}}
|
||||||
</span>
|
</span>
|
||||||
<span *ngIf="resultCounts" class="uk-h6 uk-margin-remove"
|
<span *ngIf="resultCounts" class="uk-h6 uk-margin-remove uk-button-link"
|
||||||
[innerHTML]="resultCounts.other | numberRound: 1:1">
|
[innerHTML]="resultCounts.other | numberRound: 1:1">
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0" [texts]="pageContents['top']" class="uk-container"></helper>
|
||||||
<div class="uk-container uk-container-large uk-section" uk-scrollspy="target: [uk-scrollspy-class]; cls: uk-animation-slide-bottom-medium; delay: 200">
|
<div class="uk-container uk-container-large uk-section" uk-scrollspy="target: [uk-scrollspy-class]; cls: uk-animation-slide-bottom-medium; delay: 200">
|
||||||
<div *ngIf="loading">
|
<div *ngIf="loading">
|
||||||
<loading></loading>
|
<loading></loading>
|
||||||
|
|
|
@ -31,6 +31,7 @@ export class SdgComponent implements OnInit, OnDestroy {
|
||||||
properties: EnvProperties = properties;
|
properties: EnvProperties = properties;
|
||||||
openaireEntities = OpenaireEntities;
|
openaireEntities = OpenaireEntities;
|
||||||
@Input() customFilter = null;
|
@Input() customFilter = null;
|
||||||
|
@Input() pageContents = null;
|
||||||
public breadcrumbs: Breadcrumb[] = [{name: 'home', route: '/'}, {name: 'Sustainable Development Goals'}];
|
public breadcrumbs: Breadcrumb[] = [{name: 'home', route: '/'}, {name: 'Sustainable Development Goals'}];
|
||||||
|
|
||||||
subscriptions: Subscription[] = [];
|
subscriptions: Subscription[] = [];
|
||||||
|
|
|
@ -9,12 +9,13 @@ import {Schema2jsonldModule} from "../sharedComponents/schema2jsonld/schema2json
|
||||||
import {SEOServiceModule} from "../sharedComponents/SEO/SEOService.module";
|
import {SEOServiceModule} from "../sharedComponents/SEO/SEOService.module";
|
||||||
import {SdgRoutingModule} from './sdg-routing.module';
|
import {SdgRoutingModule} from './sdg-routing.module';
|
||||||
import {SdgComponent} from './sdg.component';
|
import {SdgComponent} from './sdg.component';
|
||||||
|
import {HelperModule} from "../utils/helper/helper.module";
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule, FormsModule, RouterModule,
|
CommonModule, FormsModule, RouterModule,
|
||||||
SdgRoutingModule, BreadcrumbsModule, RefineFieldResultsServiceModule,
|
SdgRoutingModule, BreadcrumbsModule, RefineFieldResultsServiceModule,
|
||||||
LoadingModule, Schema2jsonldModule, SEOServiceModule
|
LoadingModule, Schema2jsonldModule, SEOServiceModule, HelperModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
SdgComponent
|
SdgComponent
|
||||||
|
|
|
@ -52,11 +52,11 @@ export class PluginsService {
|
||||||
}
|
}
|
||||||
getPluginsByPageRoute(api:string, pid:string, route:string){
|
getPluginsByPageRoute(api:string, pid:string, route:string){
|
||||||
let url = api + 'community/' +pid+'/plugins/page/route?route=' + route;
|
let url = api + 'community/' +pid+'/plugins/page/route?route=' + route;
|
||||||
return this.http.get<Array<Plugin>>((properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) : url);
|
return this.http.get<Array<Plugin>>(/*(properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) : */url);
|
||||||
}
|
}
|
||||||
getPluginTemplatesByPageRoute(api:string, pid:string, route:string){
|
getPluginTemplatesByPageRoute(api:string, pid:string, route:string){
|
||||||
let url = api + 'community/' + pid + '/pluginTemplates/page/route?route=' + route;
|
let url = api + 'community/' + pid + '/pluginTemplates/page/route?route=' + route;
|
||||||
return this.http.get<Array<PluginTemplate>>((properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) : url);
|
return this.http.get<Array<PluginTemplate>>(/*(properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) :*/ url);
|
||||||
}
|
}
|
||||||
|
|
||||||
togglePlugin(id: string, status: boolean, api: string, community) {
|
togglePlugin(id: string, status: boolean, api: string, community) {
|
||||||
|
|
|
@ -37,7 +37,7 @@ export class ConfigurationService {
|
||||||
if (pid == null || this.portal?.getValue()?.static) return;
|
if (pid == null || this.portal?.getValue()?.static) return;
|
||||||
let url = properties.adminToolsAPIURL + "/" + properties.adminToolsPortalType + "/" + pid + "/full";
|
let url = properties.adminToolsAPIURL + "/" + properties.adminToolsPortalType + "/" + pid + "/full";
|
||||||
this.promise = new Promise<void>(resolve => {
|
this.promise = new Promise<void>(resolve => {
|
||||||
this.sub = this.http.get<Portal>((properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) : url).subscribe(
|
this.sub = this.http.get<Portal>(/*(properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) :*/ url).subscribe(
|
||||||
(portal: Portal) => {
|
(portal: Portal) => {
|
||||||
this.portal.next(portal);
|
this.portal.next(portal);
|
||||||
resolve();
|
resolve();
|
||||||
|
|
|
@ -26,7 +26,7 @@ export class HelperService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.http.get((properties.useLongCache)? (properties.cacheUrl+encodeURIComponent(url)+ (properties.forceCacheReload?'&forceReload=true':'')): url);
|
return this.http.get(/*(properties.useLongCache)? (properties.cacheUrl+encodeURIComponent(url)+ (properties.forceCacheReload?'&forceReload=true':'')):*/ url);
|
||||||
//.map(res => <any> res.json());
|
//.map(res => <any> res.json());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ export class HelperService {
|
||||||
let url = properties.adminToolsAPIURL;
|
let url = properties.adminToolsAPIURL;
|
||||||
url += '/' + portalType + '/' + portal + '/pagehelpcontent/grouped?active=true&page=' +
|
url += '/' + portalType + '/' + portal + '/pagehelpcontent/grouped?active=true&page=' +
|
||||||
((page_route.indexOf("/"+portal+"/")!=-1 ) ? ("/" + page_route.split("/"+portal+"/")[1]) : page_route);
|
((page_route.indexOf("/"+portal+"/")!=-1 ) ? ("/" + page_route.split("/"+portal+"/")[1]) : page_route);
|
||||||
return this.http.get((properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url)+ (properties.forceCacheReload?'&forceReload=true':'')) : url);
|
return this.http.get(/*(properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url)+ (properties.forceCacheReload?'&forceReload=true':'')) :*/ url);
|
||||||
}else {
|
}else {
|
||||||
return of(null);
|
return of(null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue