Compare commits
No commits in common. "master" and "production-release-june-2-2023" have entirely different histories.
master
...
production
49
angular.json
49
angular.json
|
@ -34,12 +34,6 @@
|
|||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:browser",
|
||||
"options": {
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/app/openaireLibrary/utils/properties/searchFields.ts",
|
||||
"with": "src/app/shared/searchFields.community.ts"
|
||||
}
|
||||
],
|
||||
"outputPath": "dist/connect/browser",
|
||||
"index": "src/index.html",
|
||||
"main": "src/main.ts",
|
||||
|
@ -80,12 +74,6 @@
|
|||
"extractLicenses": true,
|
||||
"vendorChunk": false,
|
||||
"buildOptimizer": true,
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/app/openaireLibrary/utils/properties/searchFields.ts",
|
||||
"with": "src/app/shared/searchFields.community.ts"
|
||||
}
|
||||
],
|
||||
"styles": [
|
||||
"src/assets/common-assets/library-css/material.scss"
|
||||
],
|
||||
|
@ -110,10 +98,6 @@
|
|||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.beta.ts"
|
||||
},
|
||||
{
|
||||
"replace": "src/app/openaireLibrary/utils/properties/searchFields.ts",
|
||||
"with": "src/app/shared/searchFields.community.ts"
|
||||
}
|
||||
],
|
||||
"optimization": {
|
||||
|
@ -154,10 +138,6 @@
|
|||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.prod.ts"
|
||||
},
|
||||
{
|
||||
"replace": "src/app/openaireLibrary/utils/properties/searchFields.ts",
|
||||
"with": "src/app/shared/searchFields.community.ts"
|
||||
}
|
||||
],
|
||||
"optimization": {
|
||||
|
@ -217,7 +197,7 @@
|
|||
"tsConfig": "src/tsconfig.spec.json",
|
||||
"karmaConfig": "src/karma.conf.js",
|
||||
"styles": [
|
||||
"src/styles.less"
|
||||
"src/styles.css"
|
||||
],
|
||||
"scripts": [],
|
||||
"assets": [
|
||||
|
@ -232,22 +212,13 @@
|
|||
"main": "server.ts",
|
||||
"tsConfig": "src/tsconfig.server.json",
|
||||
"sourceMap": true,
|
||||
"optimization": false,
|
||||
"buildOptimizer": false
|
||||
"optimization": false
|
||||
},
|
||||
"configurations": {
|
||||
"development": {
|
||||
"outputHashing": "media",
|
||||
"sourceMap": false,
|
||||
"optimization": true,
|
||||
"vendorChunk": true,
|
||||
"buildOptimizer": true,
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/app/openaireLibrary/utils/properties/searchFields.ts",
|
||||
"with": "src/app/shared/searchFields.community.ts"
|
||||
}
|
||||
]
|
||||
"optimization": true
|
||||
},
|
||||
"beta": {
|
||||
"outputHashing": "media",
|
||||
|
@ -255,15 +226,10 @@
|
|||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.beta.ts"
|
||||
},
|
||||
{
|
||||
"replace": "src/app/openaireLibrary/utils/properties/searchFields.ts",
|
||||
"with": "src/app/shared/searchFields.community.ts"
|
||||
}
|
||||
],
|
||||
"sourceMap": false,
|
||||
"optimization": true,
|
||||
"buildOptimizer": true
|
||||
"optimization": true
|
||||
},
|
||||
"production": {
|
||||
"outputHashing": "media",
|
||||
|
@ -271,15 +237,10 @@
|
|||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.prod.ts"
|
||||
},
|
||||
{
|
||||
"replace": "src/app/openaireLibrary/utils/properties/searchFields.ts",
|
||||
"with": "src/app/shared/searchFields.community.ts"
|
||||
}
|
||||
],
|
||||
"sourceMap": false,
|
||||
"optimization": true,
|
||||
"buildOptimizer": true
|
||||
"optimization": true
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": ""
|
||||
|
|
54
package.json
54
package.json
|
@ -5,9 +5,9 @@
|
|||
"ng": "ng",
|
||||
"start": "ng serve --disable-host-check --host 0.0.0.0 --port 4200",
|
||||
"build": "ng build",
|
||||
"build-dev": "ng build --configuration=development && ng test --watch=false",
|
||||
"build-beta": "ng build --configuration=beta && ng test --watch=false",
|
||||
"build-prod": "ng build --configuration production && ng test --watch=false",
|
||||
"build-dev": "ng build --configuration=development",
|
||||
"build-beta": "ng build --configuration=beta",
|
||||
"build-prod": "ng build --configuration production",
|
||||
"webpack-bundle-analyzer": "ng build --stats-json && webpack-bundle-analyzer dist/connect/browser/stats.json --host 0.0.0.0",
|
||||
"test": "ng test",
|
||||
"e2e": "ng e2e",
|
||||
|
@ -21,45 +21,45 @@
|
|||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@angular/animations": "^16.1.8",
|
||||
"@angular/cdk": "^16.1.7",
|
||||
"@angular/common": "^16.1.8",
|
||||
"@angular/compiler": "^16.1.8",
|
||||
"@angular/core": "^16.1.8",
|
||||
"@angular/forms": "^16.1.8",
|
||||
"@angular/localize": "^16.1.8",
|
||||
"@angular/material": "^16.1.7",
|
||||
"@angular/platform-browser": "^16.1.8",
|
||||
"@angular/platform-browser-dynamic": "^16.1.8",
|
||||
"@angular/platform-server": "^16.1.8",
|
||||
"@angular/router": "^16.1.8",
|
||||
"@nguniversal/express-engine": "^16.1.1",
|
||||
"@angular/animations": "^14.2.3",
|
||||
"@angular/cdk": "^14.2.2",
|
||||
"@angular/common": "^14.2.3",
|
||||
"@angular/compiler": "^14.2.3",
|
||||
"@angular/core": "^14.2.3",
|
||||
"@angular/forms": "^14.2.3",
|
||||
"@angular/localize": "^14.2.3",
|
||||
"@angular/material": "^14.2.2",
|
||||
"@angular/platform-browser": "^14.2.3",
|
||||
"@angular/platform-browser-dynamic": "^14.2.3",
|
||||
"@angular/platform-server": "^14.2.3",
|
||||
"@angular/router": "^14.2.3",
|
||||
"@nguniversal/express-engine": "^14.2.0",
|
||||
"@node-minify/clean-css": "^6.2.0",
|
||||
"@node-minify/core": "^6.2.0",
|
||||
"axios": "^1.4.0",
|
||||
"axios": "^0.27.2",
|
||||
"clipboard": "^1.5.16",
|
||||
"core-js": "^2.5.4",
|
||||
"express": "^4.15.2",
|
||||
"jquery": "^3.4.1",
|
||||
"ng-recaptcha": "^12.0.2",
|
||||
"ng-recaptcha": "^10.0.0",
|
||||
"ng2-ckeditor": "1.3.7",
|
||||
"rxjs": "^6.5.1",
|
||||
"ts-md5": "^1.2.0",
|
||||
"tslib": "^2.0.0",
|
||||
"uikit": "3.16.24",
|
||||
"zone.js": "~0.13.1"
|
||||
"uikit": "3.13.10",
|
||||
"zone.js": "~0.11.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "^16.1.7",
|
||||
"@angular/cli": "^16.1.7",
|
||||
"@angular/compiler-cli": "^16.1.8",
|
||||
"@angular/language-service": "^16.1.8",
|
||||
"@nguniversal/builders": "^16.1.1",
|
||||
"@angular-devkit/build-angular": "^14.2.3",
|
||||
"@angular/cli": "^14.2.3",
|
||||
"@angular/compiler-cli": "^14.2.3",
|
||||
"@angular/language-service": "^14.2.3",
|
||||
"@nguniversal/builders": "^14.2.0",
|
||||
"@types/compression": "^1.7.0",
|
||||
"@types/express": "^4.17.0",
|
||||
"@types/jasmine": "~3.6.0",
|
||||
"@types/jasminewd2": "~2.0.3",
|
||||
"@types/node": "^16.18.50",
|
||||
"@types/node": "^12.11.1",
|
||||
"@types/ckeditor": "^4.9.10",
|
||||
"codelyzer": "^6.0.0",
|
||||
"jasmine-core": "~3.8.0",
|
||||
|
@ -71,6 +71,6 @@
|
|||
"karma-jasmine-html-reporter": "^1.6.0",
|
||||
"protractor": "~7.0.0",
|
||||
"ts-node": "~7.0.0",
|
||||
"typescript": "~4.9.5"
|
||||
"typescript": "~4.6.4"
|
||||
}
|
||||
}
|
||||
|
|
43
server.ts
43
server.ts
|
@ -26,7 +26,7 @@ var bodyParser = require('body-parser')
|
|||
|
||||
var jsonParser = bodyParser.json()
|
||||
|
||||
function buildCss(portal: string, suffix = null, variables: {} = null, customCss = "") {
|
||||
function buildCss(portal: string, suffix = null, variables: {} = null) {
|
||||
let lessFile = 'community.less'
|
||||
if (portal === 'connect') {
|
||||
lessFile = 'connect.less'
|
||||
|
@ -48,7 +48,7 @@ function buildCss(portal: string, suffix = null, variables: {} = null, customCss
|
|||
rewriteUrls: 'all',
|
||||
modifyVars: modifyVars
|
||||
};
|
||||
less.render(customCss + input , options, function (error, result) {
|
||||
less.render(input, options, function (error, result) {
|
||||
if (error) {
|
||||
console.log(error);
|
||||
} else {
|
||||
|
@ -80,7 +80,7 @@ function buildAll(res: Response = null) {
|
|||
if (response.data && Array.isArray(response.data) && response.data.length > 0) {
|
||||
response.data.forEach((layout: Layout) => {
|
||||
let variables = Layout.getVariables(CustomizationOptions.checkForObsoleteVersion(layout.layoutOptions, layout.portalPid));
|
||||
buildCss(layout.portalPid, layout.date ? layout.date : null, variables, layout.layoutOptions.identity.customCss);
|
||||
buildCss(layout.portalPid, layout.date ? layout.date : null, variables);
|
||||
});
|
||||
if (res) {
|
||||
res.status(200).send({
|
||||
|
@ -128,13 +128,8 @@ export function app() {
|
|||
referer = isArray(req.headers.referer) ? req.headers.referer[0] : (<string>req.headers.referer);
|
||||
referer = referer.split("?")[0];
|
||||
}
|
||||
if (referer && (XFRAME_WHITELIST.indexOf(referer) != -1 || referer.indexOf("/customize-layout") != -1 || referer.indexOf(".d4science.org") != -1 || referer.indexOf(".di.uoa.gr") != -1 || referer.indexOf(".openaire.eu") != -1 )) {
|
||||
res.header('X-FRAME-OPTIONS', 'allow from ' +req.headers.referer);
|
||||
res.header('Access-Control-Allow-Origin',req.headers.origin);
|
||||
res.header('Access-Control-Allow-Methods', 'GET, HEAD, OPTIONS');
|
||||
res.header('Access-Control-Allow-Headers', 'Cache-control, Expires, Content-Type, Pragma');
|
||||
res.header('Allow', 'GET, HEAD, OPTIONS');
|
||||
|
||||
if (referer && (XFRAME_WHITELIST.indexOf(referer) != -1 || referer.indexOf("/customize-layout") != -1 || referer.indexOf(".d4science.org") != -1)) {
|
||||
// res.header('X-FRAME-OPTIONS', 'allow from ' +req.headers.referer);
|
||||
} else {
|
||||
res.header('X-FRAME-OPTIONS', 'SAMEORIGIN');
|
||||
}
|
||||
|
@ -191,7 +186,7 @@ export function app() {
|
|||
|
||||
server.post('/build-css/:id/:suffix', jsonParser,(req, res) => {
|
||||
let variables = Layout.getVariables(CustomizationOptions.checkForObsoleteVersion(req.body, req.params.id));
|
||||
buildCss(req.params.id , req.params.suffix, variables, req.body.layoutOptions?.identity?.customCss);
|
||||
buildCss(req.params.id , req.params.suffix, variables);
|
||||
res.status(200).send({
|
||||
code: 200,
|
||||
message: 'CSS build for ' + req.params.id + ' layout was successful'
|
||||
|
@ -200,33 +195,9 @@ export function app() {
|
|||
|
||||
server.post('/build-css/preview/:id/:suffix', jsonParser, (req, res) => {
|
||||
let variables = Layout.getVariables(CustomizationOptions.checkForObsoleteVersion(req.body, req.params.id));
|
||||
buildCss(req.params.id, req.params.suffix, variables, req.body.identity.customCss);
|
||||
buildCss(req.params.id, req.params.suffix, variables);
|
||||
res.status(200).send({code: 200, message: 'CSS build for ' + req.params.id + ' layout was successful'});
|
||||
});
|
||||
server.get('/health-check', async (_req, res, _next) => {
|
||||
var uptime = process.uptime();
|
||||
const date = new Date(uptime*1000);
|
||||
const days = date.getUTCDate() - 1,
|
||||
hours = date.getUTCHours(),
|
||||
minutes = date.getUTCMinutes(),
|
||||
seconds = date.getUTCSeconds(),
|
||||
milliseconds = date.getUTCMilliseconds();
|
||||
|
||||
|
||||
const healthcheck = {
|
||||
uptime: days + " days, " + hours + " hours, " + minutes + " minutes, " + seconds + " seconds, " + milliseconds + " milliseconds",
|
||||
message: 'OK',
|
||||
timestamp: new Date()
|
||||
};
|
||||
try {
|
||||
res.send(healthcheck);
|
||||
} catch (error) {
|
||||
healthcheck.message = error;
|
||||
res.status(503).send();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// Example Express Rest API endpoints
|
||||
// server.get('/api/**', (req, res) => { });
|
||||
// Serve static files from /browser
|
||||
|
|
|
@ -0,0 +1,71 @@
|
|||
<schema2jsonld *ngIf="url" [URL]="url" [name]="pageTitle" type="other"></schema2jsonld>
|
||||
|
||||
<ng-template #card let-organization="organization" let-fullView="fullView">
|
||||
<div [class]="fullView?'uk-card-body uk-height-1-1 uk-flex uk-flex-column uk-flex-around':''">
|
||||
<div class="affiliation-logo">
|
||||
<img *ngIf="organization.logo_url"
|
||||
[src]="organization.logo_url | urlPrefix"
|
||||
alt="{{(organization.name)?organization.name:''}} logo"
|
||||
class="uk-blend-multiply uk-height-max-xsmall" loading="lazy">
|
||||
</div>
|
||||
<div class="affiliation-name multi-line-ellipsis lines-3" *ngIf="organization.name && fullView">
|
||||
<p class="uk-text-emphasis uk-text-bold uk-margin-remove">
|
||||
{{organization.name}}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
<ng-container *ngIf="affiliations.length > 0">
|
||||
<div *ngIf="showLoading" class="uk-animation-fade uk-width-1-1" role="alert">
|
||||
<span class="loading-gif uk-align-center"></span>
|
||||
</div>
|
||||
<div *ngIf="longView"
|
||||
class="uk-child-width-1-5@xl uk-child-width-1-4@l uk-child-width-1-3@m uk-child-width-1-2@s uk-text-center uk-grid"
|
||||
uk-height-match="target: .affiliation-logo, .affiliation-name"
|
||||
uk-scrollspy="cls: uk-animation-fade; target: .uk-card; repeat: false"
|
||||
uk-grid>
|
||||
<div *ngFor="let affiliation of affiliations;">
|
||||
<div>
|
||||
<div class="uk-card uk-card-default uk-card-hover affiliationCard">
|
||||
<a *ngIf="affiliation.website_url" target="_blank" [href]="affiliation.website_url | urlPrefix" class="uk-link-reset">
|
||||
<ng-container *ngTemplateOutlet="card; context: { organization: affiliation, fullView: true}"></ng-container>
|
||||
</a>
|
||||
<span *ngIf="!affiliation.website_url" class="uk-link-reset">
|
||||
<ng-container *ngTemplateOutlet="card; context: { organization: affiliation, fullView: true}"></ng-container>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="affiliations.length > 0 && communityFirstPage && !longView" class="uk-margin-large-top uk-margin-large-bottom uk-grid" uk-grid>
|
||||
<div class="uk-width-1-3@m">
|
||||
<h2>
|
||||
Supporting Organizations
|
||||
</h2>
|
||||
<a class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text uk-margin-top"
|
||||
routerLinkActive="router-link-active" routerLink="/organizations">
|
||||
<span class="uk-flex uk-flex-middle">
|
||||
<span>Browse all</span>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="uk-width-2-3@m">
|
||||
<div class="uk-grid uk-child-width-1-3@m uk-child-width-1-2@s supportingOrganizations" uk-grid>
|
||||
<div *ngFor="let affiliation of affiliations.slice(0,9);">
|
||||
<a *ngIf="affiliation.website_url" target="_blank" [href]="affiliation.website_url | urlPrefix" class="uk-link-reset">
|
||||
<ng-container *ngTemplateOutlet="card; context: {organization: affiliation, fullView: false}"></ng-container>
|
||||
</a>
|
||||
<span *ngIf="!affiliation.website_url" class="uk-link-reset">
|
||||
<ng-container *ngTemplateOutlet="card; context: {organization: affiliation, fullView: false}"></ng-container>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-container>
|
||||
|
||||
<!--<div *ngIf="affiliations.length == 0 && longView" class="uk-animation-fade uk-alert uk-alert-primary" role="alert">-->
|
||||
<!-- No affiliations available-->
|
||||
<!--</div>-->
|
|
@ -0,0 +1,18 @@
|
|||
.affiliationCard {
|
||||
width: 260px !important;
|
||||
height: 260px !important;
|
||||
}
|
||||
|
||||
.supportingOrganizations a {
|
||||
img, svg {
|
||||
-webkit-filter: grayscale(1);
|
||||
filter: grayscale(1);
|
||||
transition-duration: 0.3s;
|
||||
}
|
||||
|
||||
&:hover img, svg {
|
||||
-webkit-filter: grayscale(0);
|
||||
filter: grayscale(0);
|
||||
transition-duration: 0.3s;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,105 @@
|
|||
import {Component, Input} from '@angular/core';
|
||||
import {ActivatedRoute, Router} from '@angular/router';
|
||||
import {Title, Meta} from '@angular/platform-browser';
|
||||
import {EnvProperties} from '../openaireLibrary/utils/properties/env-properties';
|
||||
import {AffiliationService} from "../openaireLibrary/connect/affiliations/affiliation.service";
|
||||
import {Affiliation} from "../openaireLibrary/utils/entities/CuratorInfo";
|
||||
import {ConnectHelper} from "../openaireLibrary/connect/connectHelper";
|
||||
import {SEOService} from "../openaireLibrary/sharedComponents/SEO/SEO.service";
|
||||
import {PiwikService} from "../openaireLibrary/utils/piwik/piwik.service";
|
||||
import {PiwikHelper} from "../utils/piwikHelper";
|
||||
import {Subscriber} from "rxjs";
|
||||
import {properties} from "../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'affiliations',
|
||||
templateUrl: './affiliations.component.html',
|
||||
styleUrls: ['./affiliations.component.less']
|
||||
})
|
||||
export class AffiliationsComponent {
|
||||
@Input() getAffiliationsFromAPI: boolean = false;
|
||||
@Input() longView: boolean = false;
|
||||
@Input() communityFirstPage: boolean = false;
|
||||
@Input() affiliationsInSlider: number = 5;
|
||||
@Input() affiliations: Affiliation[] = [];
|
||||
@Input() sliderOptions = '';
|
||||
@Input() arrows = true;
|
||||
|
||||
public showLoading: boolean = false;
|
||||
|
||||
communityId: string;
|
||||
properties:EnvProperties;
|
||||
|
||||
subscriptions = [];
|
||||
public url: string = null;
|
||||
public pageTitle: string = "Related Organizations";
|
||||
|
||||
constructor ( private route: ActivatedRoute, private _router: Router,
|
||||
private _meta: Meta,
|
||||
private _title: Title,
|
||||
private seoService: SEOService,
|
||||
private _piwikService: PiwikService,
|
||||
private affiliationService: AffiliationService) {}
|
||||
|
||||
public ngOnInit() {
|
||||
|
||||
this.subscriptions.push(this.route.queryParams.subscribe(
|
||||
communityId => {
|
||||
this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
if(!this.communityId) {
|
||||
this.communityId = communityId['communityId'];
|
||||
}
|
||||
|
||||
this.properties = properties;
|
||||
if(this.longView) {
|
||||
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
// this.subscriptions.push(this._piwikService.trackView(this.properties, this.pageTitle, PiwikHelper.getSiteId(this.communityId)).subscribe());
|
||||
}
|
||||
this.url = this.properties.domain + this._router.url;
|
||||
this.seoService.createLinkForCanonicalURL(this.url);
|
||||
this.updateUrl(this.url);
|
||||
this.updateTitle(this.pageTitle);
|
||||
this.updateDescription("OpenAIRE - Connect, Community Gateway, research community, organizations");
|
||||
}
|
||||
if(this.getAffiliationsFromAPI) {
|
||||
this.showLoading = true;
|
||||
this.affiliationService.initAffiliations(this.communityId);
|
||||
this.subscriptions.push(this.affiliationService.affiliations.subscribe(
|
||||
affiliations => {
|
||||
this.affiliations = affiliations.filter((affiliation) => this.longView || !!affiliation['logo_url']);
|
||||
this.showLoading = false;
|
||||
},
|
||||
error => {
|
||||
console.error("Affiliations Component: Error getting affiliations for community with id: " + this.communityId, error);
|
||||
this.showLoading = false;
|
||||
}
|
||||
));
|
||||
}
|
||||
}));
|
||||
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
this.subscriptions.forEach(subscription => {
|
||||
if (subscription instanceof Subscriber) {
|
||||
subscription.unsubscribe();
|
||||
}
|
||||
});
|
||||
this.affiliationService.clearSubscriptions();
|
||||
}
|
||||
|
||||
private updateDescription(description: string) {
|
||||
this._meta.updateTag({content: description}, "name='description'");
|
||||
this._meta.updateTag({content: description}, "property='og:description'");
|
||||
}
|
||||
|
||||
private updateTitle(title: string) {
|
||||
var _title = ((title.length > 50) ? title.substring(0, 50) : title);
|
||||
this._title.setTitle(_title);
|
||||
this._meta.updateTag({content: _title}, "property='og:title'");
|
||||
}
|
||||
|
||||
private updateUrl(url: string) {
|
||||
this._meta.updateTag({content: url}, "property='og:url'");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
|
||||
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../openaireLibrary/error/isRouteEnabled.guard'
|
||||
import {RouterModule} from '@angular/router';
|
||||
|
||||
import {AffiliationsComponent} from './affiliations.component';
|
||||
import {AffiliationService} from "../openaireLibrary/connect/affiliations/affiliation.service";
|
||||
import {CommonModule} from "@angular/common";
|
||||
import {Schema2jsonldModule} from "../openaireLibrary/sharedComponents/schema2jsonld/schema2jsonld.module";
|
||||
import {SEOServiceModule} from "../openaireLibrary/sharedComponents/SEO/SEOService.module";
|
||||
import {PiwikServiceModule} from "../openaireLibrary/utils/piwik/piwikService.module";
|
||||
import {UrlPrefixModule} from "../openaireLibrary/utils/pipes/url-prefix.module";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule, RouterModule, Schema2jsonldModule, SEOServiceModule,
|
||||
PiwikServiceModule, UrlPrefixModule
|
||||
],
|
||||
declarations: [
|
||||
AffiliationsComponent
|
||||
],
|
||||
providers:[PreviousRouteRecorder, IsRouteEnabled, AffiliationService],
|
||||
exports: [
|
||||
AffiliationsComponent
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
export class AffiliationsModule{}
|
|
@ -2,81 +2,62 @@ import {NgModule} from '@angular/core';
|
|||
import {RouterModule, Routes} from '@angular/router';
|
||||
import {OpenaireErrorPageComponent} from './error/errorPage.component';
|
||||
import {PageURLResolverComponent} from "./openaireLibrary/utils/pageURLResolver.component";
|
||||
import {CommunityAccessGuard} from "./utils/communityAccess.guard";
|
||||
import {IsCommunity} from "./openaireLibrary/connect/communityGuard/isCommunity.guard";
|
||||
|
||||
const routes: Routes = [
|
||||
// ORCID Pages
|
||||
{
|
||||
path: 'orcid',
|
||||
loadChildren: () => import('./orcid/orcid.module').then(m => m.LibOrcidModule),
|
||||
data: {hasQuickContact: false}
|
||||
},
|
||||
{
|
||||
path: 'my-orcid-links',
|
||||
loadChildren: () => import('./orcid/my-orcid-links/myOrcidLinks.module').then(m => m.LibMyOrcidLinksModule),
|
||||
data: {hasQuickContact: false}
|
||||
},
|
||||
{path: 'orcid', loadChildren: () => import('./orcid/orcid.module').then(m => m.LibOrcidModule)},
|
||||
{path: 'my-orcid-links', loadChildren: () => import('./orcid/my-orcid-links/myOrcidLinks.module').then(m => m.LibMyOrcidLinksModule)},
|
||||
|
||||
/** Other Pages */
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => import('./communitywrapper/communityWrapper.module').then(m => m.CommunityWrapperModule),
|
||||
data: {hasStickyHeaderOnMobile: true}
|
||||
loadChildren: () => import('./communitywrapper/communityWrapper.module').then(m => m.CommunityWrapperModule)
|
||||
},
|
||||
{path: 'about', redirectTo: 'about/learn-how', pathMatch: 'full'},
|
||||
{path: 'about/learn-how', loadChildren: () => import('./learn-how/learn-how.module').then(m => m.LearnHowModule), data: {hasStickyHeaderOnMobile: true}},
|
||||
{path: 'subscriptions', loadChildren: () => import('./pricing/pricing.module').then(m => m.PricingModule)},
|
||||
{path: 'about/learn-how', loadChildren: () => import('./learn-how/learn-how.module').then(m => m.LearnHowModule)},
|
||||
{path: 'about/faq', loadChildren: () => import('./learn-how/faqs/faqs.module').then(m => m.FaqsModule)},
|
||||
{path: 'get-started', loadChildren: () => import('./get-started/get-started.module').then(m => m.GetStartedModule)},
|
||||
{
|
||||
path: 'contact-us',
|
||||
loadChildren: () => import('./contact/contact.module').then(m => m.ContactModule),
|
||||
data: {hasQuickContact: false}
|
||||
},
|
||||
{
|
||||
path: 'invite',
|
||||
loadChildren: () => import('./utils/subscribe/invite/invite.module').then(m => m.InviteModule),
|
||||
data: {hasQuickContact: false}
|
||||
},
|
||||
{path: 'contact-us', loadChildren: () => import('./contact/contact.module').then(m => m.ContactModule)},
|
||||
{path: 'invite', loadChildren: () => import('./utils/subscribe/invite/invite.module').then(m => m.InviteModule)},
|
||||
{
|
||||
path: 'content',
|
||||
loadChildren: () => import('./content/contentPage.module').then(m => m.ContentPageModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{path: 'sdgs', loadChildren: () => import('./sdg/sdg.module').then(m => m.LibSdgModule)},
|
||||
{
|
||||
path: 'sdgs',
|
||||
loadChildren: () => import('./sdg/sdg.module').then(m => m.LibSdgModule),
|
||||
data: {hasQuickContact: false}
|
||||
path: 'fields-of-science',
|
||||
loadChildren: () => import('./fos/fos.module').then(m => m.LibFosModule),
|
||||
data: {extraOffset: 100}
|
||||
},
|
||||
{path: 'fields-of-science', loadChildren: () => import('./openaireLibrary/fos/fos.module').then(m => m.FosModule), data: {extraOffset: 100, hasQuickContact: false}},
|
||||
{
|
||||
path: 'organizations',
|
||||
loadChildren: () => import('./htmlPages/organizations/organizationsPage.module').then(m => m.OrganizationsPageModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'publications',
|
||||
loadChildren: () => import('./htmlPages/publications/publications-page.module').then(m => m.PublicationsPageModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'projects',
|
||||
loadChildren: () => import('./htmlPages/projects/projectsPage.module').then(m => m.ProjectsPageModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'national-bulletins',
|
||||
loadChildren: () => import('./htmlPages/nationalBulletins/nationalBulletinsPage.module').then(m => m.NaionalBulletinPageModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'faqs',
|
||||
loadChildren: () => import('./htmlPages/featured/featuredPage.module').then(m => m.FeaturedPageModule),
|
||||
data: {hasQuickContact: false}
|
||||
},
|
||||
{
|
||||
path: 'roadmap',
|
||||
loadChildren: () => import('./htmlPages/featured/featuredPage.module').then(m => m.FeaturedPageModule),
|
||||
data: {hasQuickContact: false}
|
||||
},
|
||||
// {
|
||||
// path: 'featured',
|
||||
|
@ -84,24 +65,24 @@ const routes: Routes = [
|
|||
// {
|
||||
// path: '',
|
||||
// loadChildren: () => import('./htmlPages/featured/featuredPage.module').then(m => m.FeaturedPageModule),
|
||||
// data: {hasQuickContact: false}, canActivateChild: [CommunityAccessGuard],
|
||||
// canActivateChild: [IsCommunity],
|
||||
// },
|
||||
// {
|
||||
// path: '**',
|
||||
// loadChildren: () => import('./htmlPages/featured/featuredPage.module').then(m => m.FeaturedPageModule),
|
||||
// data: {hasQuickContact: false}, canActivateChild: [CommunityAccessGuard],
|
||||
// canActivateChild: [IsCommunity],
|
||||
// },
|
||||
// ]
|
||||
// },
|
||||
{
|
||||
path: 'curators',
|
||||
loadChildren: () => import('./openaireLibrary/connect/components/curators/curators.module').then(m => m.CuratorsModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
loadChildren: () => import('./curators/curators.module').then(m => m.CuratorsModule),
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'subjects',
|
||||
loadChildren: () => import('./subjects/subjects.module').then(m => m.SubjectsModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'myCommunities',
|
||||
|
@ -109,8 +90,7 @@ const routes: Routes = [
|
|||
},
|
||||
{
|
||||
path: 'develop',
|
||||
loadChildren: () => import('./develop/develop.module').then(m => m.DevelopModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
loadChildren: () => import('./develop/develop.module').then(m => m.DevelopModule), canActivate: [IsCommunity]
|
||||
},
|
||||
/** Testing Page for help contents */
|
||||
{path: 'helper-test', loadChildren: () => import('./helper-test/helper-test.module').then(m => m.HelperTestModule)},
|
||||
|
@ -118,45 +98,46 @@ const routes: Routes = [
|
|||
{
|
||||
path: 'search/result',
|
||||
loadChildren: () => import('./landingPages/result/libResult.module').then(m => m.LibResultModule),
|
||||
data: {hasQuickContact: false, hasMenuSearchBar: true}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'search/publication',
|
||||
loadChildren: () => import('./landingPages/publication/libPublication.module').then(m => m.LibPublicationModule),
|
||||
data: {hasQuickContact: false, hasMenuSearchBar: true}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'search/dataset',
|
||||
loadChildren: () => import('./landingPages/dataset/libDataset.module').then(m => m.LibDatasetModule),
|
||||
data: {hasQuickContact: false, hasMenuSearchBar: true}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'search/software',
|
||||
loadChildren: () => import('./landingPages/software/libSoftware.module').then(m => m.LibSoftwareModule),
|
||||
data: {hasQuickContact: false, hasMenuSearchBar: true}, canActivate: [CommunityAccessGuard]
|
||||
},
|
||||
{
|
||||
path: 'search/other', loadChildren: () => import('./landingPages/orp/libOrp.module').then(m => m.LibOrpModule),
|
||||
data: {hasQuickContact: false, hasMenuSearchBar: true}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{path: 'search/other', loadChildren: () => import('./landingPages/orp/libOrp.module').then(m => m.LibOrpModule), canActivate: [IsCommunity]},
|
||||
{
|
||||
path: 'search/project',
|
||||
loadChildren: () => import('./landingPages/project/libProject.module').then(m => m.LibProjectModule),
|
||||
data: {hasQuickContact: false, hasMenuSearchBar: true}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'search/dataprovider',
|
||||
loadChildren: () => import('././landingPages/dataProvider/libDataProvider.module').then(m => m.LibDataProviderModule),
|
||||
data: {hasQuickContact: false, hasMenuSearchBar: true}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'search/organization',
|
||||
loadChildren: () => import('./landingPages/organization/libOrganization.module').then(m => m.LibOrganizationModule),
|
||||
data: {hasQuickContact: false, hasMenuSearchBar: true}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'project-report',
|
||||
loadChildren: () => import('./landingPages/htmlProjectReport/libHtmlProjectReport.module').then(m => m.LibHtmlProjectReportModule)
|
||||
},
|
||||
/** Search Pages */
|
||||
{path: 'search/find', redirectTo: 'search/find/research-outcomes', pathMatch: 'full'},
|
||||
|
||||
|
||||
{
|
||||
path: 'search/find/communities',
|
||||
loadChildren: () => import('./searchPages/communities/searchCommunities.module').then(m => m.SearchCommunitiesModule)
|
||||
|
@ -164,86 +145,46 @@ const routes: Routes = [
|
|||
{
|
||||
path: 'search/find/research-outcomes',
|
||||
loadChildren: () => import('./searchPages/simple/searchResearchResults.module').then(m => m.OpenaireSearchResearchResultsModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
},
|
||||
{
|
||||
path: 'search/find/publications',
|
||||
component: PageURLResolverComponent,
|
||||
data: {hasQuickContact: false},
|
||||
canActivate: [CommunityAccessGuard]
|
||||
},
|
||||
{
|
||||
path: 'search/find/datasets',
|
||||
component: PageURLResolverComponent,
|
||||
data: {hasQuickContact: false},
|
||||
canActivate: [CommunityAccessGuard]
|
||||
},
|
||||
{
|
||||
path: 'search/find/software',
|
||||
component: PageURLResolverComponent,
|
||||
data: {hasQuickContact: false},
|
||||
canActivate: [CommunityAccessGuard]
|
||||
},
|
||||
{
|
||||
path: 'search/find/other',
|
||||
component: PageURLResolverComponent,
|
||||
data: {hasQuickContact: false},
|
||||
canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{path: 'search/find/publications', component: PageURLResolverComponent, canActivate: [IsCommunity]},
|
||||
{path: 'search/find/datasets', component: PageURLResolverComponent, canActivate: [IsCommunity]},
|
||||
{path: 'search/find/software', component: PageURLResolverComponent, canActivate: [IsCommunity]},
|
||||
{path: 'search/find/other', component: PageURLResolverComponent, canActivate: [IsCommunity]},
|
||||
{
|
||||
path: 'search/find/projects',
|
||||
loadChildren: () => import('./searchPages/simple/searchProjects.module').then(m => m.LibSearchProjectsModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'search/find/dataproviders',
|
||||
loadChildren: () => import('./searchPages/simple/searchDataProviders.module').then(m => m.LibSearchDataProvidersModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
/** Advanced Search Pages */
|
||||
{
|
||||
path: 'search/advanced/research-outcomes',
|
||||
loadChildren: () => import('./searchPages/advanced/searchResearchResults.module').then(m => m.OpenaireAdvancedSearchResearchResultsModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
},
|
||||
{
|
||||
path: 'search/advanced/publications',
|
||||
component: PageURLResolverComponent,
|
||||
data: {hasQuickContact: false},
|
||||
canActivate: [CommunityAccessGuard]
|
||||
},
|
||||
{
|
||||
path: 'search/advanced/datasets',
|
||||
component: PageURLResolverComponent,
|
||||
data: {hasQuickContact: false},
|
||||
canActivate: [CommunityAccessGuard]
|
||||
},
|
||||
{
|
||||
path: 'search/advanced/software',
|
||||
component: PageURLResolverComponent,
|
||||
data: {hasQuickContact: false},
|
||||
canActivate: [CommunityAccessGuard]
|
||||
},
|
||||
{
|
||||
path: 'search/advanced/other',
|
||||
component: PageURLResolverComponent,
|
||||
data: {hasQuickContact: false},
|
||||
canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{path: 'search/advanced/publications', component: PageURLResolverComponent, canActivate: [IsCommunity]},
|
||||
{path: 'search/advanced/datasets', component: PageURLResolverComponent, canActivate: [IsCommunity]},
|
||||
{path: 'search/advanced/software', component: PageURLResolverComponent, canActivate: [IsCommunity]},
|
||||
{path: 'search/advanced/other', component: PageURLResolverComponent, canActivate: [IsCommunity]},
|
||||
{
|
||||
path: 'search/advanced/organizations',
|
||||
loadChildren: () => import('./searchPages/advanced/advancedSearchOrganizations.module').then(m => m.LibAdvancedSearchOrganizationsModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'search/advanced/dataproviders',
|
||||
loadChildren: () => import('./searchPages/advanced/advancedSearchDataProviders.module').then(m => m.LibAdvancedSearchDataProvidersModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'search/advanced/projects',
|
||||
loadChildren: () => import('./searchPages/advanced/advancedSearchProjects.module').then(m => m.LibAdvancedSearchProjectsModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
/** Deposit Pages */
|
||||
{ path: 'participate/deposit-datasets',
|
||||
|
@ -267,61 +208,41 @@ const routes: Routes = [
|
|||
{
|
||||
path: 'participate/deposit/learn-how',
|
||||
loadChildren: () => import('./deposit/deposit.module').then(m => m.LibDepositModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'participate/deposit/search',
|
||||
loadChildren: () => import('./deposit/searchDataprovidersToDeposit.module').then(m => m.LibSearchDataprovidersToDepositModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'participate/deposit/zenodo',
|
||||
loadChildren: () => import('./deposit/zenodo/shareInZenodo.module').then(m => m.ShareInZenodoModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
},
|
||||
{
|
||||
path: 'participate/deposit/suggested',
|
||||
loadChildren: () => import('./deposit/suggested/suggestedRepositories.module').then(m => m.SuggestedRepositoriesModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
/** Linking Pages */
|
||||
{
|
||||
path: 'myclaims', loadChildren: () => import('./claims/myClaims/myClaims.module').then(m => m.LibMyClaimsModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
},
|
||||
{path: 'myclaims', loadChildren: () => import('./claims/myClaims/myClaims.module').then(m => m.LibMyClaimsModule), canActivate: [IsCommunity]},
|
||||
{
|
||||
path: 'participate/claim',
|
||||
loadChildren: () => import('./claims/linking/linkingGeneric.module').then(m => m.LibLinkingGenericModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'participate/direct-claim',
|
||||
loadChildren: () => import('./claims/directLinking/directLinking.module').then(m => m.LibDirectLinkingModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
{
|
||||
path: 'preview',
|
||||
loadChildren: () => import('./demo/demo.module').then(m => m.DemoModule),
|
||||
data: {hasQuickContact: false}, canActivate: [CommunityAccessGuard]
|
||||
canActivate: [IsCommunity]
|
||||
},
|
||||
/** help pages - do not exist in Admin portal/api/db */
|
||||
{
|
||||
path: 'reload',
|
||||
loadChildren: () => import('./reload/libReload.module').then(m => m.LibReloadModule),
|
||||
data: {hasQuickContact: false}
|
||||
},
|
||||
{
|
||||
path: 'user-info',
|
||||
loadChildren: () => import('./login/libUser.module').then(m => m.LibUserModule),
|
||||
data: {hasQuickContact: false}
|
||||
},
|
||||
{path: 'error', component: OpenaireErrorPageComponent, data: {hasQuickContact: false}},
|
||||
{
|
||||
path: 'theme',
|
||||
loadChildren: () => import('./openaireLibrary/utils/theme/theme.module').then(m => m.ThemeModule),
|
||||
data: {hasQuickContact: false}
|
||||
},
|
||||
{path: '**', pathMatch: 'full', component: OpenaireErrorPageComponent, data: {hasQuickContact: false}}
|
||||
{path: 'reload', loadChildren: () => import('./reload/libReload.module').then(m => m.LibReloadModule)},
|
||||
{path: 'user-info', loadChildren: () => import('./login/libUser.module').then(m => m.LibUserModule)},
|
||||
{path: 'error', component: OpenaireErrorPageComponent},
|
||||
{path: 'theme', loadChildren: () => import('./openaireLibrary/utils/theme/theme.module').then(m => m.ThemeModule)},
|
||||
{path: '**', pathMatch: 'full', component: OpenaireErrorPageComponent}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
import {TestBed } from '@angular/core/testing';
|
||||
import {properties} from "../environments/environment";
|
||||
|
||||
describe('Environment Configuration', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
});
|
||||
});
|
||||
|
||||
it('should have correct setting for piwik tracking based on environment', () => {
|
||||
if (properties.environment == "beta" || properties.environment == "production") {
|
||||
expect(properties.enablePiwikTrack).toBe(true,`Piwik tracking: Expected enablePiwikTrack to be true but it is ${properties.enablePiwikTrack}`);
|
||||
} else {
|
||||
expect(properties.enablePiwikTrack).toBe(false, `Piwik tracking: Expected enablePiwikTrack to be false but it is ${properties.enablePiwikTrack}`);
|
||||
}
|
||||
});
|
||||
|
||||
// Add more tests for other properties as needed
|
||||
});
|
|
@ -1,5 +1,4 @@
|
|||
import {
|
||||
ChangeDetectorRef,
|
||||
Component,
|
||||
ElementRef,
|
||||
Inject,
|
||||
|
@ -28,7 +27,7 @@ import {LoginErrorCodes} from "./openaireLibrary/login/utils/guardHelper.class";
|
|||
import {Layout} from "./openaireLibrary/connect/community/CustomizationOptions";
|
||||
import {CustomizationService} from "./openaireLibrary/services/customization.service";
|
||||
import {SmoothScroll} from "./openaireLibrary/utils/smooth-scroll";
|
||||
import {makeStateKey, StateKey, TransferState} from "@angular/core";
|
||||
import {makeStateKey, Meta, StateKey, TransferState} from "@angular/platform-browser";
|
||||
import {CommunityInfo} from "./openaireLibrary/connect/community/communityInfo";
|
||||
import {SEOService} from "./openaireLibrary/sharedComponents/SEO/SEO.service";
|
||||
import {UntypedFormBuilder, UntypedFormGroup, Validators} from "@angular/forms";
|
||||
|
@ -41,20 +40,20 @@ import {NotificationHandler} from "./openaireLibrary/utils/notification-handler"
|
|||
import {OpenaireEntities} from "./openaireLibrary/utils/properties/searchFields";
|
||||
import {DOCUMENT, isPlatformServer} from "@angular/common";
|
||||
import {AdvancedAsyncSubject} from "./openaireLibrary/utils/AdvancedAsyncSubject";
|
||||
import {LayoutService} from "./openaireLibrary/dashboard/sharedComponents/sidebar/layout.service";
|
||||
import {Meta} from "@angular/platform-browser";
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
template: `
|
||||
<div [class]="(community)?(community.communityId +'App communityApp'):'connectApp'">
|
||||
<div id="modal-container"></div>
|
||||
<navbar #navbar *ngIf="properties && showMenu && !community && header" [portal]="properties.dashboard" [onlyTop]=false
|
||||
<navbar *ngIf="properties && showMenu && !community && header" [portal]="properties.dashboard" [onlyTop]=false
|
||||
[userMenuItems]=userMenuItems [menuItems]=menuItems [user]="user" [header]="header"
|
||||
[showMenu]=showMenu [properties]="properties" [showHomeMenuItem]="false" communityId="connect">
|
||||
<div *ngIf="showGetStarted" extra-s class="uk-margin-large-top uk-margin-left">
|
||||
<a class="uk-button uk-button-primary uk-text-uppercase" routerLink="/get-started" (click)="navbar.closeCanvas()">Get Started</a>
|
||||
</div>
|
||||
<ul *ngIf="showGetStarted" extra-s class="uk-nav uk-nav-default uk-margin-small-top">
|
||||
<li routerLinkActive="uk-active">
|
||||
<a routerLink="/get-started">Get Started</a>
|
||||
</li>
|
||||
</ul>
|
||||
<a *ngIf="showGetStarted" extra-m
|
||||
class="uk-button uk-button-small uk-button-primary uk-text-uppercase uk-margin-left"
|
||||
routerLink="/get-started">Get Started</a>
|
||||
|
@ -78,7 +77,7 @@ import {Meta} from "@angular/platform-browser";
|
|||
<schema2jsonld *ngIf="properties && showMenu && communityId && communityId.length > 0 && community"
|
||||
[URL]="properties.domain + properties.baseLink"
|
||||
[logoURL]="community.logoUrl" type="home" [searchActionRoute]="properties.searchLinkToResults"
|
||||
[name]="(community.displayShortTitle) ? community.displayShortTitle : community.diplayTitle"
|
||||
[name]="(community.shortTitle) ? community.shortTitle : community.title"
|
||||
[description]="community.description">
|
||||
</schema2jsonld>
|
||||
<div class="custom-main-content">
|
||||
|
@ -87,8 +86,8 @@ import {Meta} from "@angular/platform-browser";
|
|||
</main>
|
||||
</div>
|
||||
<div id="joinAndInviteBtn" *ngIf="isClient && communityId && community">
|
||||
<subscribe *ngIf="community.isOpen()" [communityId]="community.communityId"></subscribe>
|
||||
<invite *ngIf="isManager" [longView]="false" [communityId]="communityId" [isOpen]="community.isOpen()"></invite>
|
||||
<subscribe [communityId]="community.communityId"></subscribe>
|
||||
<invite *ngIf="isManager" [longView]="false"></invite>
|
||||
</div>
|
||||
<!--feedback *ngIf= "isClient && properties" portalName="Connect" [feedbackQuestionaire]=properties.feedbackQuestionaire></feedback-->
|
||||
<cookie-law *ngIf="isClient" position="bottom">
|
||||
|
@ -102,21 +101,17 @@ import {Meta} from "@angular/platform-browser";
|
|||
points="7 4 13 10 7 16"></polyline></svg>
|
||||
</span></a>
|
||||
</cookie-law>
|
||||
|
||||
<bottom #bottom *ngIf="properties && isClient && showMenu && !community" [grantAdvance]="false"
|
||||
[properties]="properties"></bottom>
|
||||
<bottom *ngIf="properties && isClient && showMenu && community" class=" communityPanelBackground "
|
||||
[showSocialButtons]="true" [showMenuItems]="true" [grantAdvance]="false" [showOpenaire]="true"
|
||||
[communityId]="community.communityId" [menuItems]=bottomMenuItems [properties]="properties"
|
||||
[centered]="true"></bottom>
|
||||
<quick-contact #quickContact
|
||||
*ngIf="!community && bottomNotIntersecting && displayQuickContact && showQuickContact && contactForm"
|
||||
(sendEmitter)="send($event)"
|
||||
[communityId]="community.communityId" [menuItems]=bottomMenuItems [properties]="properties" [centered]="true"></bottom>
|
||||
<quick-contact #quickContact *ngIf="showQuickContact && contactForm" (sendEmitter)="send($event)"
|
||||
[contact]="'Help'" [images]="images" [background]="{class: 'uk-background-primary', dark: false}"
|
||||
[contactForm]="contactForm" [sending]="sending"></quick-contact>
|
||||
<modal-alert #modal [overflowBody]="false"></modal-alert>
|
||||
<role-verification *ngIf="community" service="connect"
|
||||
[id]="community.communityId" [name]="community.displayTitle"
|
||||
[id]="community.communityId" [name]="community.title"
|
||||
[type]="community.type"></role-verification>
|
||||
</div>
|
||||
`
|
||||
|
@ -135,11 +130,9 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
communityId: string = "";
|
||||
header: Header;
|
||||
logoPath: string = 'assets/common-assets/logo-services/connect/';
|
||||
public showGetStarted: boolean = true;
|
||||
/* Contact */
|
||||
public showQuickContact: boolean;
|
||||
public bottomNotIntersecting: boolean;
|
||||
public displayQuickContact: boolean; // intersecting with specific section in home page
|
||||
public showGetStarted: boolean = true;
|
||||
public contactForm: UntypedFormGroup;
|
||||
public sending = false;
|
||||
public images: string[] = [];
|
||||
|
@ -164,14 +157,12 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
private configurationService: ConfigurationService, private _communityService: CommunityService,
|
||||
private customizationService: CustomizationService, private _meta: Meta, private seoService: SEOService,
|
||||
private quickContactService: QuickContactService,
|
||||
private layoutService: LayoutService,
|
||||
private fb: UntypedFormBuilder,
|
||||
private emailService: EmailService,
|
||||
@Inject(DOCUMENT) private document,
|
||||
private transferState: TransferState,
|
||||
@Inject(PLATFORM_ID) private platformId: any,
|
||||
private rendererFactory: RendererFactory2,
|
||||
private cdr: ChangeDetectorRef
|
||||
private rendererFactory: RendererFactory2
|
||||
) {
|
||||
this.subscriptions.push(router.events.forEach((event) => {
|
||||
if (event instanceof NavigationEnd) {
|
||||
|
@ -189,7 +180,6 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
ngOnInit() {
|
||||
this.subscriptions.push(this.route.queryParams.subscribe(data => {
|
||||
this.previewLayout = (data['previewLayout'] && data['previewLayout'].length > 0 ? data['previewLayout'] : null);
|
||||
this.properties.forceCacheReload = (data['forceCacheReload'] ? true : false);
|
||||
if (this.properties.environment == "production" || this.properties.environment == "development") {
|
||||
this._meta.updateTag({content: 'all', name: 'robots'});
|
||||
this.seoService.removeLinkForPrevURL();
|
||||
|
@ -209,17 +199,8 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
}, error => {
|
||||
this.init();
|
||||
}));
|
||||
this.subscriptions.push(this.layoutService.hasQuickContact.subscribe(hasQuickContact => {
|
||||
if (this.showQuickContact !== hasQuickContact) {
|
||||
this.showQuickContact = hasQuickContact;
|
||||
this.cdr.detectChanges();
|
||||
}
|
||||
}));
|
||||
this.subscriptions.push(this.quickContactService.isDisplayed.subscribe(display => {
|
||||
if (this.displayQuickContact !== display) {
|
||||
this.displayQuickContact = display;
|
||||
this.cdr.detectChanges();
|
||||
}
|
||||
this.showQuickContact = display;
|
||||
}));
|
||||
}
|
||||
|
||||
|
@ -227,8 +208,6 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
this.subscriptions.forEach(subscription => {
|
||||
if (subscription instanceof Subscriber) {
|
||||
subscription.unsubscribe();
|
||||
} else if (typeof IntersectionObserver !== "undefined" && subscription instanceof IntersectionObserver) {
|
||||
subscription.disconnect();
|
||||
}
|
||||
});
|
||||
this._communitiesService.clearSubscriptions();
|
||||
|
@ -246,16 +225,17 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
};
|
||||
let intersectionObserver = new IntersectionObserver(entries => {
|
||||
entries.forEach(entry => {
|
||||
if (this.bottomNotIntersecting !== (!entry.isIntersecting)) {
|
||||
this.bottomNotIntersecting = !entry.isIntersecting;
|
||||
this.cdr.detectChanges();
|
||||
if (entry.isIntersecting && this.showQuickContact) {
|
||||
this.showQuickContact = false;
|
||||
this.quickContactService.setDisplay(this.showQuickContact);
|
||||
} else if (!entry.isIntersecting && !this.showQuickContact) {
|
||||
this.showQuickContact = true;
|
||||
this.quickContactService.setDisplay(this.showQuickContact);
|
||||
}
|
||||
});
|
||||
}, options);
|
||||
if (this.bottom) {
|
||||
intersectionObserver.observe(this.bottom.nativeElement);
|
||||
this.subscriptions.push(intersectionObserver);
|
||||
}
|
||||
intersectionObserver.observe(this.bottom.nativeElement);
|
||||
this.subscriptions.push(intersectionObserver);
|
||||
}
|
||||
|
||||
get isManager() {
|
||||
|
@ -309,18 +289,16 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
initAdminToolCommunity(communityId) {
|
||||
if (communityId) {
|
||||
this.properties.adminToolsPortalType = "community";
|
||||
this.properties.plan = communityId == 'covid-19'?'Premium':this.community.plan;
|
||||
if (this.document) {
|
||||
this.initLayout(communityId);
|
||||
}
|
||||
} else {
|
||||
this.properties.adminToolsPortalType = "connect";
|
||||
this.properties.plan = null;
|
||||
if (this.document) {
|
||||
this.initLayout(this.communityId?this.communityId:'connect');
|
||||
this.initLayout('connect');
|
||||
}
|
||||
}
|
||||
this.configurationService.initPortal(this.properties, (communityId) ? communityId : this.properties.adminToolsPortalType);
|
||||
this.configurationService.initCommunityInformation(this.properties, (communityId) ? communityId : this.properties.adminToolsPortalType);
|
||||
}
|
||||
|
||||
getLayouts() {
|
||||
|
@ -379,11 +357,10 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
if (this.community && !ConnectHelper.isPrivate(this.community, this.user)) {
|
||||
this.communityId = this.community.communityId;
|
||||
this.initAdminToolCommunity(this.communityId);
|
||||
this.properties.footerGrantText = ""; //
|
||||
this.header = {
|
||||
// url: 'https://' + (this.properties.environment == 'beta' ? 'beta.' : '') + this.community.id + '.openaire.eu',
|
||||
route: "/",
|
||||
title: (this.community.displayShortTitle) ? this.community.displayShortTitle : this.community.displayTitle,
|
||||
title: (this.community.shortTitle) ? this.community.shortTitle : this.community.title,
|
||||
logoUrl: (this.community.isUpload) ? (properties.utilsService + '/download/' + this.community.logoUrl) : (StringUtils.urlPrefix(this.community.logoUrl) + this.community.logoUrl),
|
||||
logoSmallUrl: (this.community.isUpload) ? (properties.utilsService + '/download/' + this.community.logoUrl) : (StringUtils.urlPrefix(this.community.logoUrl) + this.community.logoUrl),
|
||||
position: 'left',
|
||||
|
@ -411,7 +388,7 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
new MenuItem("search", "Search", "", "/search/find", false, [], ["/search/find"], {},
|
||||
null, null, null, null, "_blank", "internal", false,
|
||||
[
|
||||
new MenuItem("", OpenaireEntities.RESULTS, "", "/search/find/research-outcomes", false, [], ["/search/find/research-outcomes"], {}),
|
||||
new MenuItem("", OpenaireEntities.RESULTS, "", "/search/find/research-outcomes", false, [], ["/search/find/research-outcomes"], {resultbestaccessright: '"' + encodeURIComponent("Open Access") + '"'}),
|
||||
new MenuItem("", OpenaireEntities.PROJECTS, "", "/search/find/projects/", false, ["project"], ["/search/find/projects"], {}),
|
||||
new MenuItem("", OpenaireEntities.DATASOURCES, "", "/search/find/dataproviders", false, ["datasource"], ["/search/find/dataproviders"], {}),
|
||||
]
|
||||
|
@ -447,24 +424,22 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
this.bottomMenuItems.push(new MenuItem("", "Sources and methodology", "", "/content", false, [], [], {}));
|
||||
}
|
||||
if (this.user) {
|
||||
this.userMenuItems = [
|
||||
this.userMenuItems = [ /*new MenuItem("","My profile","","",false,[],[],{}),*/
|
||||
new MenuItem("", "My ORCID links", "", "/my-orcid-links", false, [], [], {}),
|
||||
new MenuItem("", "My links", "", "/myclaims", false, [], ["/myclaims"], {}),
|
||||
new MenuItem("", "Invite users", "", "/invite", false, [], [], {}),
|
||||
];
|
||||
if(properties.environment != 'beta'){
|
||||
this.userMenuItems = [new MenuItem("", "My ORCID links", "", "/my-orcid-links", false, [], [], {})]
|
||||
.concat(this.userMenuItems)
|
||||
}
|
||||
if (this.isManager) {
|
||||
this.userMenuItems.push(new MenuItem("", "Support", "https://tools.openaire.eu/group/openaire_rcd", "", false, [], [], {}))
|
||||
}
|
||||
}
|
||||
this.showMenu = true;
|
||||
} else {
|
||||
this.communityId = (this.community && ConnectHelper.isPrivate(this.community, this.user))?this.community.communityId:null;
|
||||
this.configurationService.initPortal(this.properties, "connect");
|
||||
this.communityId = null;
|
||||
this.configurationService.initCommunityInformation(this.properties, "connect");
|
||||
// this.initAdminToolCommunity(null);
|
||||
this.buildConnectMenu(true);
|
||||
if (this.community && this.community.isRestricted()) {
|
||||
if (this.community && this.community.status == "manager") {
|
||||
if (!this.user) {
|
||||
if (typeof location !== 'undefined' && location.pathname.indexOf("user-info") == -1) {
|
||||
this.router.navigate(['/user-info'], {
|
||||
|
@ -479,7 +454,7 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
this.router.navigate(['/'], {queryParamsHandling: "merge"});
|
||||
}
|
||||
}
|
||||
} else if (this.community && (this.community.isPrivate())) {
|
||||
} else if (this.community && this.community.status == "hidden") {
|
||||
this.router.navigate([this.properties.errorLink]);
|
||||
} else {
|
||||
this.router.navigate(['/'], this.community && this.community.status ? {queryParamsHandling: "merge"} : {});
|
||||
|
@ -507,14 +482,12 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
new MenuItem("", "Learn the process", restrictedData ? url + "/about/learn-how" : "", restrictedData ? "" : "/about/learn-how", false, [], ["/about/learn-in-depth"], {}),
|
||||
new MenuItem("", "Publications", restrictedData ? url + "/publications" : "", restrictedData ? "" : "/publications", false, [], ["/publications"], {}),
|
||||
new MenuItem("", "Roadmap", "https://trello.com/b/yfzUz0kp/openaire-connect-dashboard", "", false, [], [], {}),
|
||||
new MenuItem("", "FAQs", "https://helpdesk.openaire.eu/help/en-gb/6", "", false, [], ["/about/faq"], {})
|
||||
new MenuItem("", "FAQs", restrictedData ? url + "/about/faq" : "", restrictedData ? "" : "/about/faq", false, [], ["/about/faq"], {})
|
||||
]
|
||||
)
|
||||
);
|
||||
this.menuItems.push(new MenuItem("subscriptions", "Subscriptions", restrictedData ? url + "/subscriptions" : "",
|
||||
restrictedData ? "" : "/subscriptions", false, [], ["/subscriptions"], {}));
|
||||
this.menuItems.push(new MenuItem("communities", "Communities", restrictedData ? url + "/search/find/communities" : "",
|
||||
restrictedData ? "" : "/search/find/communities", false, [], ['/search/find/communities'], {}),
|
||||
this.menuItems.push(
|
||||
new MenuItem("communities", "Communities", restrictedData ? url + "/search/find/communities" : "", restrictedData ? "" : "/search/find/communities", false, [], ['/search/find/communities'], {}),
|
||||
);
|
||||
this.bottomMenuItems = [
|
||||
new MenuItem("", "About", "https://openaire.eu/project-factsheets", "", false, [], [], {}),
|
||||
|
@ -532,7 +505,7 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
restrictedData ? "" : "/myCommunities", false, [], [], {}));
|
||||
}
|
||||
this.showMenu = true;
|
||||
if (typeof IntersectionObserver !== "undefined") {
|
||||
if (typeof document !== "undefined" && this.bottom) {
|
||||
setTimeout(() => {
|
||||
this.createObservers();
|
||||
});
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import {APP_ID, NgModule} from '@angular/core';
|
||||
import {NgModule} from '@angular/core';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {HTTP_INTERCEPTORS, HttpClientModule} from "@angular/common/http";
|
||||
import {BrowserModule} from '@angular/platform-browser';
|
||||
import {BrowserModule, BrowserTransferStateModule} from '@angular/platform-browser';
|
||||
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
||||
|
||||
import {AppComponent} from './app.component';
|
||||
|
@ -22,12 +22,12 @@ import {PageURLResolverModule} from "./openaireLibrary/utils/pageURLResolver.mod
|
|||
import {Schema2jsonldModule} from "./openaireLibrary/sharedComponents/schema2jsonld/schema2jsonld.module";
|
||||
import {DEFAULT_TIMEOUT, TimeoutInterceptor} from "./openaireLibrary/timeout-interceptor.service";
|
||||
import {ErrorInterceptorService} from "./openaireLibrary/error-interceptor.service";
|
||||
import {IsCommunity} from "./openaireLibrary/connect/communityGuard/isCommunity.guard";
|
||||
import {SubscribeService} from "./openaireLibrary/utils/subscribe/subscribe.service";
|
||||
import {RoleVerificationModule} from "./openaireLibrary/role-verification/role-verification.module";
|
||||
import {QuickContactModule} from "./openaireLibrary/sharedComponents/quick-contact/quick-contact.module";
|
||||
import {AlertModalModule} from "./openaireLibrary/utils/modal/alertModal.module";
|
||||
import {CustomizationService} from "./openaireLibrary/services/customization.service";
|
||||
import {CommunityAccessGuard} from "./utils/communityAccess.guard";
|
||||
|
||||
@NgModule({
|
||||
|
||||
|
@ -41,16 +41,16 @@ import {CommunityAccessGuard} from "./utils/communityAccess.guard";
|
|||
BottomModule,
|
||||
CookieLawModule,
|
||||
SubscribeModule.forRoot(), InviteBasicModule,
|
||||
BrowserModule,
|
||||
BrowserModule.withServerTransition({appId: 'serverApp'}),
|
||||
AppRoutingModule,
|
||||
BrowserTransferStateModule,
|
||||
BrowserAnimationsModule,
|
||||
PageURLResolverModule, Schema2jsonldModule, RoleVerificationModule, QuickContactModule, AlertModalModule
|
||||
],
|
||||
declarations: [AppComponent, OpenaireErrorPageComponent],
|
||||
exports: [AppComponent],
|
||||
providers: [
|
||||
CommunitiesService, CustomizationService, CommunityAccessGuard, SubscribeService,
|
||||
{provide: APP_ID, useValue: 'serverApp'},
|
||||
CommunitiesService, CustomizationService, IsCommunity, SubscribeService,
|
||||
{
|
||||
provide: HTTP_INTERCEPTORS,
|
||||
useClass: HttpInterceptorService,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import {ServerModule} from '@angular/platform-server';
|
||||
import {ServerModule, ServerTransferStateModule} from '@angular/platform-server';
|
||||
|
||||
import { AppModule } from './app.module';
|
||||
import { AppComponent } from './app.component';
|
||||
|
@ -8,6 +8,7 @@ import { AppComponent } from './app.component';
|
|||
imports: [
|
||||
AppModule,
|
||||
ServerModule,
|
||||
ServerTransferStateModule
|
||||
],
|
||||
bootstrap: [AppComponent],
|
||||
})
|
||||
|
|
|
@ -1,19 +1,22 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {ActivatedRoute} from '@angular/router';
|
||||
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
|
||||
import {PiwikHelper} from "../../utils/piwikHelper";
|
||||
import {Subscriber} from "rxjs";
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-directLinking',
|
||||
template: `
|
||||
<directLinking [communityId]=communityId></directLinking>`
|
||||
<directLinking [communityId]=communityId [piwikSiteId]="piwikSiteId"></directLinking>`
|
||||
})
|
||||
export class OpenaireDirectLinkingComponent {
|
||||
communityId: string;
|
||||
public piwikSiteId = null;
|
||||
sub;
|
||||
constructor(private route: ActivatedRoute) {
|
||||
|
||||
constructor(private route: ActivatedRoute) {}
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
if (this.sub instanceof Subscriber) {
|
||||
|
@ -21,12 +24,15 @@ export class OpenaireDirectLinkingComponent {
|
|||
}
|
||||
}
|
||||
public ngOnInit() {
|
||||
this.sub = this.route.queryParams.subscribe(
|
||||
this.sub =
|
||||
this.route.queryParams.subscribe(
|
||||
communityId => {
|
||||
this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
if (!this.communityId) {
|
||||
this.communityId = communityId['communityId'];
|
||||
}
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {ActivatedRoute} from '@angular/router';
|
||||
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
|
||||
import {PiwikHelper} from "../../utils/piwikHelper";
|
||||
import {Subscriber} from "rxjs";
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-linking-generic',
|
||||
template: `<linking-generic [communityId]=communityId pageTitle="Linking"></linking-generic>`
|
||||
template: `<linking-generic [communityId]=communityId [piwikSiteId]="piwikSiteId" pageTitle="Linking"></linking-generic>`
|
||||
})
|
||||
export class OpenaireLinkingComponent {
|
||||
communityId:string;
|
||||
public piwikSiteId = null;
|
||||
sub;
|
||||
|
||||
ngOnDestroy() {
|
||||
if (this.sub instanceof Subscriber) {
|
||||
this.sub.unsubscribe();
|
||||
}
|
||||
}
|
||||
|
||||
constructor (private route: ActivatedRoute) {
|
||||
this.route.queryParams.subscribe(
|
||||
communityId => {
|
||||
|
@ -25,6 +25,7 @@ export class OpenaireLinkingComponent {
|
|||
if(!this.communityId) {
|
||||
this.communityId = communityId['communityId'];
|
||||
}
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {ActivatedRoute} from '@angular/router';
|
||||
import {ConnectHelper} from "../../openaireLibrary/connect/connectHelper";
|
||||
import {PiwikHelper} from "../../utils/piwikHelper";
|
||||
import {Subscriber} from "rxjs";
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
|
@ -8,31 +9,35 @@ import {properties} from "../../../environments/environment";
|
|||
@Component({
|
||||
selector: 'openaire-my-claims',
|
||||
template: `
|
||||
<my-claims [claimsInfoURL]="claimsInfoURL" [communityId]=communityId></my-claims>
|
||||
<my-claims [claimsInfoURL]=claimsInfoURL [userInfoURL]="userInfoURL" [communityId]=communityId [piwikSiteId]="piwikSiteId"></my-claims>
|
||||
`
|
||||
|
||||
})
|
||||
export class OpenaireMyClaimsComponent {
|
||||
claimsInfoURL:string;
|
||||
userInfoURL: string;
|
||||
communityId:string;
|
||||
sub;
|
||||
public piwikSiteId = null;
|
||||
|
||||
constructor (private route: ActivatedRoute) {}
|
||||
|
||||
sub;
|
||||
ngOnDestroy() {
|
||||
if (this.sub instanceof Subscriber) {
|
||||
this.sub.unsubscribe();
|
||||
}
|
||||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.claimsInfoURL = properties.claimsInformationLink;
|
||||
this.claimsInfoURL = properties.claimsInformationLink;
|
||||
this.userInfoURL = properties.userInfoUrl;
|
||||
this.sub = this.route.queryParams.subscribe(
|
||||
communityId => {
|
||||
this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
if(!this.communityId) {
|
||||
this.communityId = communityId['communityId'];
|
||||
}
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -12,12 +12,12 @@
|
|||
class="uk-text-background uk-text-small uk-position-top-left uk-padding-small uk-text-uppercase uk-text-bold">
|
||||
Member
|
||||
</div>
|
||||
<div *ngIf="community.isRestricted()"
|
||||
<div *ngIf="community.status === 'manager'"
|
||||
class="uk-position-top-right uk-margin-small-top uk-margin-small-right uk-flex uk-flex-column uk-flex-middle">
|
||||
<icon [name]="visibilityIcon.get('RESTRICTED')" ratio="1.2" [flex]="true"></icon>
|
||||
<span class="uk-text-small uk-text-capitalize">restricted</span>
|
||||
</div>
|
||||
<div *ngIf="community.isPrivate()"
|
||||
<div *ngIf="community.status === 'hidden'"
|
||||
class="uk-position-top-right uk-margin-small-top uk-margin-small-right uk-flex uk-flex-column uk-flex-middle">
|
||||
<icon [name]="visibilityIcon.get('PRIVATE')" ratio="1.2" [flex]="true"></icon>
|
||||
<span class="uk-text-small uk-text-capitalize">private</span>
|
||||
|
@ -26,18 +26,18 @@
|
|||
uk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">
|
||||
<div>
|
||||
<img *ngIf="community.logoUrl != null && community.logoUrl != ''" src="{{community | logoUrl}}"
|
||||
alt="{{(community.displayTitle)?community.displayTitle:community.displayShortTitle}} logo" class="uk-height-max-xsmall">
|
||||
alt="{{(community.title)?community.title:community.shortTitle}} logo" class="uk-height-max-xsmall">
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-card-body uk-padding-remove uk-margin-small-bottom">
|
||||
<h3 class="uk-text-center uk-h6 uk-link" [ngClass]="(showDescription)?'uk-margin-small-bottom':''">
|
||||
<span *ngIf="community.displayTitle">
|
||||
{{community.displayTitle.slice(0, thresholdTitle)}}
|
||||
<span *ngIf="community.displayTitle.length > thresholdTitle">...</span>
|
||||
<span *ngIf="community.title">
|
||||
{{community.title.slice(0, thresholdTitle)}}
|
||||
<span *ngIf="community.title.length > thresholdTitle">...</span>
|
||||
</span>
|
||||
<span *ngIf="!community.displayTitle && community.displayShortTitle">
|
||||
{{community.displayShortTitle.slice(0, thresholdTitle)}}
|
||||
<span *ngIf="community.displayShortTitle.length > thresholdTitle">...</span>
|
||||
<span *ngIf="!community.title && community.shortTitle">
|
||||
{{community.shortTitle.slice(0, thresholdTitle)}}
|
||||
<span *ngIf="community.shortTitle.length > thresholdTitle">...</span>
|
||||
</span>
|
||||
</h3>
|
||||
<div class="uk-text-center" *ngIf="community.description != null && showDescription">
|
||||
|
|
|
@ -1,391 +1,302 @@
|
|||
<div>
|
||||
<div class="uk-overflow-hidden uk-tile-default">
|
||||
<div class="uk-section uk-padding-remove-bottom uk-background-norepeat hero-background">
|
||||
<div class="uk-container uk-container-large"
|
||||
uk-scrollspy="target: [uk-scrollspy-class]; cls: uk-animation-slide-bottom-medium; delay: 200">
|
||||
<div class="uk-grid uk-flex-middle" uk-grid>
|
||||
<div class="uk-width-3-5 uk-margin-large-bottom">
|
||||
<h1 class="uk-heading-large" uk-scrollspy-class>
|
||||
Build a <span class="uk-text-primary">Gateway</span>
|
||||
for your Community<span class="uk-text-primary">.</span>
|
||||
</h1>
|
||||
<div class="uk-text-large uk-margin-medium-top" uk-scrollspy-class>
|
||||
<div>Turn Open Science into Practice.</div>
|
||||
<div>It takes your open and linked {{entities.RESULTS | lowercase}}.</div>
|
||||
<div>A service customized to your needs.</div>
|
||||
</div>
|
||||
<div class="uk-margin-medium-top" uk-scrollspy-class>
|
||||
<a class="uk-button uk-button-primary uk-text-uppercase" routerLink="/about/learn-how">Learn
|
||||
More</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-width-expand uk-visible@m" uk-scrollspy-class>
|
||||
<div class="uk-position-relative">
|
||||
<img style="padding: 1px" src="assets/connect-assets/home/connect-hero.jpg"
|
||||
uk-parallax="y: 300">
|
||||
<img class="uk-position-top-left" src="assets/connect-assets/home/connect-hero-mask.svg">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div #parent class="uk-section uk-section-secondary connect-dark-logo-background">
|
||||
<div class="uk-container uk-container-large uk-margin-large-bottom">
|
||||
<div class="uk-width-1-1 uk-margin-medium-bottom">
|
||||
<span class="uk-h6 uk-text-primary">Benefits.</span>
|
||||
<h2 class="uk-margin-remove-top uk-width-1-2@m">
|
||||
Find the best for your community<span class="uk-text-primary">.</span>
|
||||
</h2>
|
||||
</div>
|
||||
<slider-container [total]="4" [navigation]="'progress'" [period]="6000" [infinite]="true" [parent]="parent">
|
||||
<slider-column type="slider">
|
||||
<slider-item type="static">
|
||||
<img class="uk-position-center uk-position-z-index" src="assets/connect-assets/home/tablet.png"
|
||||
alt="ipad" loading="lazy">
|
||||
</slider-item>
|
||||
<slider-item type="slide" [start]="0">
|
||||
<img src="assets/connect-assets/home/1.png" alt="ipad" loading="lazy">
|
||||
</slider-item>
|
||||
<slider-item type="slide" [start]="1">
|
||||
<img src="assets/connect-assets/home/2.png" alt="ipad" loading="lazy">
|
||||
</slider-item>
|
||||
<slider-item type="slide" [start]="2">
|
||||
<img src="assets/connect-assets/home/3.png" alt="ipad" loading="lazy">
|
||||
</slider-item>
|
||||
<slider-item type="slide" [start]="3">
|
||||
<img src="assets/connect-assets/home/4.png" alt="ipad" loading="lazy">
|
||||
</slider-item>
|
||||
</slider-column>
|
||||
<slider-column type="nav" class="slider-nav">
|
||||
<slider-nav-item [start]="0">
|
||||
<h5 class="uk-margin-remove">
|
||||
<i class="uk-text-primary">Find a repository </i>
|
||||
<span>to deposit your {{entities.RESULT | lowercase}}</span>
|
||||
<span class="uk-text-primary">.</span>
|
||||
</h5>
|
||||
</slider-nav-item>
|
||||
<slider-nav-item [start]="1">
|
||||
<h5 class="uk-margin-remove">
|
||||
<i class="uk-text-primary">Link your {{entities.RESULT | lowercase}} </i>
|
||||
<span>with your community, funding, and other {{entities.RESULTS | lowercase}}</span>
|
||||
<span class="uk-text-primary">.</span>
|
||||
</h5>
|
||||
</slider-nav-item>
|
||||
<slider-nav-item [start]="2">
|
||||
<h5 class="uk-margin-remove">
|
||||
<span>View community's </span>
|
||||
<i class="uk-text-primary">overview at a glance.</i>
|
||||
</h5>
|
||||
</slider-nav-item>
|
||||
<slider-nav-item [start]="3">
|
||||
<h5 class="uk-margin-remove">
|
||||
<i class="uk-text-primary">Search & browse </i>
|
||||
<span>your community's {{entities.RESULTS | lowercase}}</span>
|
||||
<span class="uk-text-primary">.</span>
|
||||
</h5>
|
||||
</slider-nav-item>
|
||||
</slider-column>
|
||||
</slider-container>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-overflow-hidden uk-tile-default">
|
||||
<div class="uk-section uk-padding-remove-bottom uk-background-norepeat hero-background">
|
||||
<div class="uk-container uk-container-large" uk-scrollspy="target: [uk-scrollspy-class]; cls: uk-animation-slide-bottom-medium; delay: 200">
|
||||
<div class="uk-grid uk-flex-middle" uk-grid>
|
||||
<div class="uk-width-3-5 uk-margin-large-bottom">
|
||||
<h1 class="uk-heading-large" uk-scrollspy-class>
|
||||
Build a <span class="uk-text-primary">Gateway</span>
|
||||
for your Community<span class="uk-text-primary">.</span>
|
||||
</h1>
|
||||
<div class="uk-text-large uk-margin-medium-top" uk-scrollspy-class>
|
||||
<div>Turn Open Science into Practice.</div>
|
||||
<div>It takes your open and linked {{entities.RESULTS | lowercase}}.</div>
|
||||
<div>A service customized to your needs.</div>
|
||||
</div>
|
||||
<div class="uk-margin-medium-top" uk-scrollspy-class>
|
||||
<a class="uk-button uk-button-primary uk-text-uppercase" routerLink="/about/learn-how">Learn More</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-width-expand uk-visible@m" uk-scrollspy-class>
|
||||
<div class="uk-position-relative">
|
||||
<img style="padding: 1px" src="assets/connect-assets/home/connect-hero.jpg" uk-parallax="y: 300">
|
||||
<img class="uk-position-top-left" src="assets/connect-assets/home/connect-hero-mask.svg">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <div class="uk-section uk-section-large uk-container uk-container-large">-->
|
||||
<!-- <div class="uk-margin-medium-top">-->
|
||||
<!-- <h2 class="uk-h1">-->
|
||||
<!-- Our mission for an Open and FAIR science<span class="uk-text-primary">.</span>-->
|
||||
<!-- </h2>-->
|
||||
<!-- <div class="uk-margin-large-top">-->
|
||||
<!-- <div class="uk-child-width-1-3@m uk-child-width-1-1@s uk-grid-large uk-grid-match uk-grid" uk-grid=""-->
|
||||
<!-- uk-height-match=".target">-->
|
||||
<!-- <div class="uk-first-column">-->
|
||||
<!-- <div class="uk-card uk-card-default uk-padding">-->
|
||||
<!-- <div class="uk-card-media-top uk-flex uk-flex-middle uk-flex-center-->
|
||||
<!-- uk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">-->
|
||||
<!-- <div>-->
|
||||
<!-- <img src="assets/connect-assets/home/virtual.svg"-->
|
||||
<!-- alt="A Virtual Research Environment" style="height:60px; width:67px"/>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="uk-card-body uk-padding-remove uk-margin-small-bottom">-->
|
||||
<!-- <div class="target uk-text-center">-->
|
||||
<!-- <h3 class="uk-6 uk-card-title uk-margin-small-bottom">A Virtual Research-->
|
||||
<!-- Environment</h3>-->
|
||||
<!-- <div>An overlay platform making it easy to share, link, disseminate and monitor all-->
|
||||
<!-- your {{entities.PUBLICATIONS | lowercase}},-->
|
||||
<!-- {{entities.DATASETS | lowercase}}, {{entities.SOFTWARE | lowercase}}, methods.-->
|
||||
<!-- In one place.-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <hr/>-->
|
||||
<!-- <div>-->
|
||||
<!-- <ul class="uk-list uk-text-small">-->
|
||||
<!-- <li class="uk-flex uk-flex-middle">-->
|
||||
<!-- <icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85"-->
|
||||
<!-- flex="true"></icon>-->
|
||||
<!-- Access to OpenAIRE research graph-->
|
||||
<!-- </li>-->
|
||||
<!-- <li class="uk-flex uk-flex-middle">-->
|
||||
<!-- <icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85"-->
|
||||
<!-- flex="true"></icon>-->
|
||||
<!-- Moderated, front-end linking-->
|
||||
<!-- </li>-->
|
||||
<!-- <li class="uk-flex uk-flex-middle">-->
|
||||
<!-- <icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85"-->
|
||||
<!-- flex="true"></icon>-->
|
||||
<!-- Cross-platform search-->
|
||||
<!-- </li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div>-->
|
||||
<!-- <div class="uk-card uk-card-default uk-padding">-->
|
||||
<!-- <div class="uk-card-media-top uk-flex uk-flex-middle uk-flex-center-->
|
||||
<!-- uk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">-->
|
||||
<!-- <div>-->
|
||||
<!-- <img src="assets/connect-assets/home/open_science.svg" alt="Open science in action"-->
|
||||
<!-- style="height:60px; width:67px"/>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="uk-card-body uk-padding-remove uk-margin-small-bottom">-->
|
||||
<!-- <div class="target uk-text-center" style="">-->
|
||||
<!-- <h3 class="uk-h6 uk-card-title uk-margin-small-bottom">Open Science in action</h3>-->
|
||||
<!-- <div>A time-saving bundle of services for researchers to effortlessly practice open-->
|
||||
<!-- science. An integral-->
|
||||
<!-- part of the European Open Science Cloud.-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <hr>-->
|
||||
<!-- <div>-->
|
||||
<!-- <ul class="uk-list uk-text-small">-->
|
||||
<!-- <li class="uk-flex uk-flex-middle">-->
|
||||
<!-- <icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85"-->
|
||||
<!-- flex="true"></icon>-->
|
||||
<!-- Use of OpenAIRE Guidelines-->
|
||||
<!-- </li>-->
|
||||
<!-- <li class="uk-flex uk-flex-middle">-->
|
||||
<!-- <icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85"-->
|
||||
<!-- flex="true"></icon>-->
|
||||
<!-- Publish and get DOIs with Zenodo-->
|
||||
<!-- </li>-->
|
||||
<!-- <li class="uk-flex uk-flex-middle">-->
|
||||
<!-- <icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85"-->
|
||||
<!-- flex="true"></icon>-->
|
||||
<!-- EOSC Single Sign-On-->
|
||||
<!-- </li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div>-->
|
||||
<!-- <div class="uk-card uk-card-default uk-padding">-->
|
||||
<!-- <div class="uk-card-media-top uk-flex uk-flex-middle uk-flex-center-->
|
||||
<!-- uk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">-->
|
||||
<!-- <div>-->
|
||||
<!-- <img src="assets/connect-assets/home/customize.svg" alt="Customized to your needs"-->
|
||||
<!-- style="height:60px; width:67px"/>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="uk-card-body uk-padding-remove uk-margin-small-bottom">-->
|
||||
<!-- <div class="target uk-text-center" style="">-->
|
||||
<!-- <h3 class="uk-h6 uk-card-title uk-margin-small-bottom">Customized to your needs</h3>-->
|
||||
<!-- <div>A Gateway with your own brand, rules for aggregation, text & data mining,-->
|
||||
<!-- and presentation. Run-->
|
||||
<!-- by you via a simple, yet powerful backend administration tool.-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <hr>-->
|
||||
<!-- <div>-->
|
||||
<!-- <ul class="uk-list uk-text-small">-->
|
||||
<!-- <li class="uk-flex uk-flex-middle">-->
|
||||
<!-- <icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85"-->
|
||||
<!-- flex="true"></icon>-->
|
||||
<!-- Access control-->
|
||||
<!-- </li>-->
|
||||
<!-- <!–<li class="uk-flex uk-flex-middle">-->
|
||||
<!-- <icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85" flex="true"></icon>-->
|
||||
<!-- Analytics: rich set of indicators-->
|
||||
<!-- </li>–>-->
|
||||
<!-- <li class="uk-flex uk-flex-middle">-->
|
||||
<!-- <icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85"-->
|
||||
<!-- flex="true"></icon>-->
|
||||
<!-- Look & feel to match your brand-->
|
||||
<!-- </li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<div *ngIf="researchCommunities.length === 0" class="uk-container uk-container-large uk-margin-large-bottom">
|
||||
<errorMessages [status]="[status]" [type]="'communities'"></errorMessages>
|
||||
<ng-template #scrolling_text let-position_class="position_class">
|
||||
<div #scrolling_element [class]="position_class" uk-parallax="target: #js-sticky-parallax-images-all; start: 15%; end: 100% + 100vh - 150vh; opacity: 0,1 20%,1 99%,0">
|
||||
<h3 class="uk-h2">
|
||||
<span class="uk-text-primary">Find a repository to deposit </span>
|
||||
<span>your {{entities.RESULT | lowercase}}</span>
|
||||
<span class="uk-text-primary">.</span>
|
||||
</h3>
|
||||
</div>
|
||||
<div #scrolling_element [class]="position_class" uk-parallax="target: #js-sticky-parallax-images-all; start: 150vh; end: 100% + 100vh - 200vh; opacity: 0,1 20%,1 99%,0">
|
||||
<h3 class="uk-h2">
|
||||
<span class="uk-text-primary">Link your {{entities.RESULT | lowercase}} </span>
|
||||
<span>with your community, funding, and other {{entities.RESULTS | lowercase}}</span>
|
||||
<span class="uk-text-primary">.</span>
|
||||
</h3>
|
||||
</div>
|
||||
<div *ngIf="!loading && researchCommunities.length > 0" class="uk-section uk-container uk-container-large">
|
||||
<h2 class="uk-h1">Community Gateways already in action<span class="uk-text-primary">.</span></h2>
|
||||
<div class="uk-margin-large-top uk-margin-large-bottom">
|
||||
<div class="uk-visible@xl">
|
||||
<div class="uk-grid-match uk-grid-medium uk-child-width-1-4 uk-flex-center uk-text-center" uk-grid>
|
||||
<div *ngFor="let community of researchCommunities.slice(0, 4); let i = index">
|
||||
<div class="uk-card uk-card-default uk-card-hover"
|
||||
[class.uk-disabled]="!hasPermission(community)">
|
||||
<browse-community [community]=community></browse-community>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-text-center uk-margin-medium-top">
|
||||
<a *ngIf="researchCommunities.length > 4"
|
||||
class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text"
|
||||
routerLinkActive="router-link-active" routerLink="/search/find/communities">
|
||||
<div #scrolling_element [class]="position_class" uk-parallax="target: #js-sticky-parallax-images-all; start: 200vh; end: 100% + 100vh - 250vh; opacity: 0,1 20%,1 99%,0">
|
||||
<h3 class="uk-h2">
|
||||
<span>View community's </span>
|
||||
<span class="uk-text-primary">overview at a glance.</span>
|
||||
</h3>
|
||||
</div>
|
||||
<div #scrolling_element [class]="position_class" uk-parallax="target: #js-sticky-parallax-images-all; start: 250vh; end: 100% + 100vh - 300vh; opacity: 0,1 20%,1">
|
||||
<h3 class="uk-h2">
|
||||
<span class="uk-text-primary">Search & browse </span>
|
||||
<span>your community's {{entities.RESULTS | lowercase}}</span>
|
||||
<span class="uk-text-primary">.</span>
|
||||
</h3>
|
||||
</div>
|
||||
<!-- <div #scrolling_element [class]="position_class" uk-parallax="target: #js-sticky-parallax-images-all; start: 300vh; end: 100% + 100vh - 350vh; opacity: 0,1 20%,1">
|
||||
<h3 class="uk-h2">
|
||||
<span class="uk-text-primary">View statistics </span>
|
||||
<span>for your community's {{entities.RESULTS | lowercase}}</span>
|
||||
<span class="uk-text-primary">.</span>
|
||||
</h3>
|
||||
</div> -->
|
||||
</ng-template>
|
||||
<div class="uk-section uk-section-secondary">
|
||||
<div class="uk-container uk-container-large">
|
||||
<div class="uk-width-1-1">
|
||||
<span class="uk-h6 uk-text-primary">Benefits.</span>
|
||||
<h2 class="uk-h1 uk-margin-remove-top uk-width-1-2@m">
|
||||
Find the best for your community<span class="uk-text-primary">.</span>
|
||||
</h2>
|
||||
</div>
|
||||
<div id="js-sticky-parallax-images-all" style="min-height: 400vh">
|
||||
<div class="uk-visible@m uk-height-viewport connect-dark-logo-background uk-sticky" uk-sticky="bottom: #js-sticky-parallax-images-all; target-offset: true">
|
||||
<div class="uk-grid" uk-grid style="height: 100vh;">
|
||||
<div class="uk-width-expand uk-first-column uk-position-relative uk-height-1-1">
|
||||
<div class="connect-dark-logo-background">
|
||||
<div uk-parallax="target: #js-sticky-parallax-images-all;">
|
||||
<img class="uk-position-center uk-position-z-index" src="assets/connect-assets/home/tablet.png" alt="ipad" loading="lazy"
|
||||
style="width: 100%;">
|
||||
<img class="uk-position-center" src="assets/connect-assets/home/1.png" alt="ipad" loading="lazy"
|
||||
uk-parallax="target: #js-sticky-parallax-images-all; start: 100vh; end: 100% + 100vh - 160vh; opacity: 1,1 99%,0; easing:0"
|
||||
style="width: 100%;">
|
||||
<img class="uk-position-center" src="assets/connect-assets/home/2.png" alt="ipad" loading="lazy"
|
||||
uk-parallax="target: #js-sticky-parallax-images-all; start: 150vh; end: 100% + 100vh - 210vh; opacity: 0,1 20%,1 99%,0; easing:0"
|
||||
style="width: 100%;">
|
||||
<img class="uk-position-center" src="assets/connect-assets/home/3.png" alt="ipad" loading="lazy"
|
||||
uk-parallax="target: #js-sticky-parallax-images-all; start: 200vh; end: 100% + 100vh - 260vh; opacity: 0,1 20%,1 99%,0; easing:0"
|
||||
style="width: 100%;">
|
||||
<img class="uk-position-center" src="assets/connect-assets/home/4.png" alt="ipad" loading="lazy"
|
||||
uk-parallax="target: #js-sticky-parallax-images-all; start: 250vh; end: 100% + 100vh - 310vh; opacity: 0,1 20%,1; easing:0"
|
||||
style="width: 100%;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-inline uk-width-expand uk-height-1-1 uk-margin-large-left">
|
||||
<div class="uk-width-3-4@l">
|
||||
<div uk-parallax="target: #js-sticky-parallax-images-all; y: 55vh, 40vh;">
|
||||
<ng-container *ngTemplateOutlet="scrolling_text; context: {position_class: 'uk-position-center-left'}"></ng-container>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-hidden@m uk-height-viewport connect-dark-logo-background" uk-sticky="bottom: #js-sticky-parallax-images-all">
|
||||
<div class="uk-flex uk-flex-column uk-flex-middle">
|
||||
<div class="connect-dark-logo-background uk-inline uk-width-1-1" style="height: 40vh;">
|
||||
<img class="uk-position-center uk-position-z-index" src="assets/connect-assets/home/tablet.png" alt="ipad" loading="lazy"
|
||||
uk-parallax="target: #js-sticky-parallax-images-all;" style="width: 70%;">
|
||||
<img class="uk-position-center" src="assets/connect-assets/home/1.png" alt="ipad" loading="lazy"
|
||||
uk-parallax="target: #js-sticky-parallax-images-all; start: 100vh; end: 100% + 100vh - 160vh; opacity: 1,1 99%,0; easing:0" style="width: 70%;">
|
||||
<img class="uk-position-center" src="assets/connect-assets/home/2.png" alt="ipad" loading="lazy"
|
||||
uk-parallax="target: #js-sticky-parallax-images-all; start: 150vh; end: 100% + 100vh - 210vh; opacity: 0,1 20%,1 99%,0; easing:0" style="width: 70%;">
|
||||
<img class="uk-position-center" src="assets/connect-assets/home/3.png" alt="ipad" loading="lazy"
|
||||
uk-parallax="target: #js-sticky-parallax-images-all; start: 200vh; end: 100% + 100vh - 260vh; opacity: 0,1 20%,1 99%,0; easing:0" style="width: 70%;">
|
||||
<img class="uk-position-center" src="assets/connect-assets/home/4.png" alt="ipad" loading="lazy"
|
||||
uk-parallax="target: #js-sticky-parallax-images-all; start: 250vh; end: 100% + 100vh - 310vh; opacity: 0,1 20%,1; easing:0" style="width: 70%;">
|
||||
</div>
|
||||
<div class="uk-inline uk-width-2-3">
|
||||
<ng-container *ngTemplateOutlet="scrolling_text; context: {position_class: 'uk-position-top-center'}"></ng-container>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-section uk-section-large uk-container uk-container-large">
|
||||
<div class="uk-margin-medium-top">
|
||||
<h2 class="uk-h1">
|
||||
Our mission for an Open and FAIR science<span class="uk-text-primary">.</span>
|
||||
</h2>
|
||||
<div class="uk-margin-large-top">
|
||||
<div class="uk-child-width-1-3@m uk-child-width-1-1@s uk-grid-large uk-grid-match uk-grid" uk-grid=""
|
||||
uk-height-match=".target">
|
||||
<div class="uk-first-column">
|
||||
<div class="uk-card uk-card-default uk-padding">
|
||||
<div class="uk-card-media-top uk-flex uk-flex-middle uk-flex-center
|
||||
uk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">
|
||||
<div>
|
||||
<img src="assets/connect-assets/home/virtual.svg" alt="A Virtual Research Environment" style="height:60px; width:67px"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-card-body uk-padding-remove uk-margin-small-bottom">
|
||||
<div class="target uk-text-center">
|
||||
<h3 class="uk-6 uk-card-title uk-margin-small-bottom">A Virtual Research Environment</h3>
|
||||
<div>An overlay platform making it easy to share, link, disseminate and monitor all your {{entities.PUBLICATIONS | lowercase}},
|
||||
{{entities.DATASETS | lowercase}}, {{entities.SOFTWARE | lowercase}}, methods. In one place.
|
||||
</div>
|
||||
</div>
|
||||
<hr/>
|
||||
<div>
|
||||
<ul class="uk-list uk-text-small">
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85" flex="true"></icon>
|
||||
Access to OpenAIRE research graph
|
||||
</li>
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85" flex="true"></icon>
|
||||
Moderated, front-end linking
|
||||
</li>
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85" flex="true"></icon>
|
||||
Cross-platform search
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="uk-card uk-card-default uk-padding">
|
||||
<div class="uk-card-media-top uk-flex uk-flex-middle uk-flex-center
|
||||
uk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">
|
||||
<div>
|
||||
<img src="assets/connect-assets/home/open_science.svg" alt="Open science in action" style="height:60px; width:67px"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-card-body uk-padding-remove uk-margin-small-bottom">
|
||||
<div class="target uk-text-center" style="">
|
||||
<h3 class="uk-h6 uk-card-title uk-margin-small-bottom">Open Science in action</h3>
|
||||
<div>A time-saving bundle of services for researchers to effortlessly practice open science. An integral
|
||||
part of the European Open Science Cloud.
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div>
|
||||
<ul class="uk-list uk-text-small">
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85" flex="true"></icon>
|
||||
Use of OpenAIRE Guidelines
|
||||
</li>
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85" flex="true"></icon>
|
||||
Publish and get DOIs with Zenodo
|
||||
</li>
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85" flex="true"></icon>
|
||||
EOSC Single Sign-On
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="uk-card uk-card-default uk-padding">
|
||||
<div class="uk-card-media-top uk-flex uk-flex-middle uk-flex-center
|
||||
uk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">
|
||||
<div>
|
||||
<img src="assets/connect-assets/home/customize.svg" alt="Customized to your needs" style="height:60px; width:67px"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-card-body uk-padding-remove uk-margin-small-bottom">
|
||||
<div class="target uk-text-center" style="">
|
||||
<h3 class="uk-h6 uk-card-title uk-margin-small-bottom">Customized to your needs</h3>
|
||||
<div>A Gateway with your own brand, rules for aggregation, text & data mining, and presentation. Run
|
||||
by you via a simple, yet powerful backend administration tool.
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div>
|
||||
<ul class="uk-list uk-text-small">
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85" flex="true"></icon>
|
||||
Access control
|
||||
</li>
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85" flex="true"></icon>
|
||||
Analytics: rich set of indicators
|
||||
</li>
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85" flex="true"></icon>
|
||||
Look & feel to match your brand
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="researchCommunities.length === 0" class="uk-container uk-container-large uk-margin-large-bottom">
|
||||
<errorMessages [status]="[status]" [type]="'communities'"></errorMessages>
|
||||
</div>
|
||||
<div *ngIf="!loading && researchCommunities.length > 0" class="uk-section uk-container uk-container-large">
|
||||
<h2 class="uk-h1">Community Gateways already in action<span class="uk-text-primary">.</span></h2>
|
||||
<div class="uk-margin-large-top uk-margin-large-bottom">
|
||||
<div class="uk-visible@xl">
|
||||
<div class="uk-grid-match uk-grid-medium uk-child-width-1-4 uk-flex-center uk-text-center" uk-grid>
|
||||
<div *ngFor="let community of researchCommunities.slice(0, 4); let i = index">
|
||||
<div class="uk-card uk-card-default uk-card-hover" [class.uk-disabled]="!hasPermission(community)">
|
||||
<browse-community [community]=community></browse-community>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-text-center uk-margin-medium-top">
|
||||
<a *ngIf="researchCommunities.length > 4"
|
||||
class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text"
|
||||
routerLinkActive="router-link-active" routerLink="/search/find/communities">
|
||||
<span class="uk-flex uk-flex-middle">
|
||||
<span>View All</span>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-hidden@xl">
|
||||
<div class="uk-grid-match uk-grid-medium uk-child-width-1-3@m uk-child-width-1-1 uk-flex-center uk-text-center"
|
||||
uk-grid>
|
||||
<div *ngFor="let community of researchCommunities.slice(0, 3); let i = index">
|
||||
<div class="uk-card uk-card-default uk-card-hover"
|
||||
[class.uk-disabled]="!hasPermission(community)">
|
||||
<browse-community [community]=community></browse-community>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-text-center uk-margin-medium-top">
|
||||
<a *ngIf="researchCommunities.length > 3"
|
||||
class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text"
|
||||
routerLinkActive="router-link-active" routerLink="/search/find/communities">
|
||||
<div class="uk-hidden@xl">
|
||||
<div class="uk-grid-match uk-grid-medium uk-child-width-1-3@m uk-child-width-1-1 uk-flex-center uk-text-center" uk-grid>
|
||||
<div *ngFor="let community of researchCommunities.slice(0, 3); let i = index">
|
||||
<div class="uk-card uk-card-default uk-card-hover">
|
||||
<browse-community [community]=community></browse-community>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-text-center uk-margin-medium-top">
|
||||
<a *ngIf="researchCommunities.length > 3"
|
||||
class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text"
|
||||
routerLinkActive="router-link-active" routerLink="/search/find/communities">
|
||||
<span class="uk-flex uk-flex-middle">
|
||||
<span>View All</span>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-section uk-section-large uk-container uk-container-large">
|
||||
<div class="uk-margin-medium-top">
|
||||
<h2 class="uk-h1">
|
||||
Subscription plans
|
||||
</h2>
|
||||
<div class="uk-margin-large-top">
|
||||
<div class="uk-child-width-1-4@m uk-child-width-1-1@s uk-grid-medium uk-grid-match uk-grid" uk-grid=""
|
||||
uk-height-match=".target">
|
||||
<div class="uk-first-column">
|
||||
<div class="uk-card uk-card-default uk-padding uk-flex">
|
||||
<!--<div class="uk-card-media-top uk-flex uk-flex-middle uk-flex-center
|
||||
uk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">
|
||||
<div>
|
||||
<img src="assets/connect-assets/home/virtual.svg"
|
||||
alt="A Virtual Research Environment" style="height:60px; width:67px"/>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="uk-card-body uk-padding-remove uk-margin-medium-bottom">
|
||||
<div class="target uk-text-center">
|
||||
<h5 class=" uk-card-title uk-margin-medium-bottom uk-text-uppercase uk-text-primary">Standard</h5>
|
||||
<div>
|
||||
Suggested for thematic research communities.
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-first-column">
|
||||
<div class="uk-card uk-card-default uk-padding uk-flex">
|
||||
<!--<div class="uk-card-media-top uk-flex uk-flex-middle uk-flex-center
|
||||
uk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">
|
||||
<div>
|
||||
<img src="assets/connect-assets/home/virtual.svg"
|
||||
alt="A Virtual Research Environment" style="height:60px; width:67px"/>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="uk-card-body uk-padding-remove uk-margin-medium-bottom">
|
||||
<div class="target uk-text-center">
|
||||
<h5 class=" uk-card-title uk-margin-medium-bottom uk-text-uppercase uk-text-primary ">Advanced</h5>
|
||||
<div>
|
||||
Suggested for research infrastructures.
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-first-column">
|
||||
<div class="uk-card uk-card-default uk-padding uk-flex">
|
||||
<!--<div class="uk-card-media-top uk-flex uk-flex-middle uk-flex-center
|
||||
uk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">
|
||||
<div>
|
||||
<img src="assets/connect-assets/home/virtual.svg"
|
||||
alt="A Virtual Research Environment" style="height:60px; width:67px"/>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="uk-card-body uk-padding-remove uk-margin-medium-bottom">
|
||||
<div class="target uk-text-center">
|
||||
<h5 class=" uk-card-title uk-margin-medium-bottom uk-text-uppercase uk-text-primary">Premium</h5>
|
||||
<div>
|
||||
Suggested for university alliances and networks of research organisations.
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-first-column">
|
||||
<div class="uk-card uk-card-default uk-padding uk-flex">
|
||||
<!--<div class="uk-card-media-top uk-flex uk-flex-middle uk-flex-center
|
||||
uk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">
|
||||
<div>
|
||||
<img src="assets/connect-assets/home/virtual.svg"
|
||||
alt="A Virtual Research Environment" style="height:60px; width:67px"/>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="uk-card-body uk-padding-remove uk-margin-medium-bottom">
|
||||
<div class="target uk-text-center">
|
||||
<h5 class=" uk-card-title uk-margin-small-bottom uk-text-uppercase uk-text-primary">CONNECT +<br>MONITOR BUNDLE</h5>
|
||||
<div>
|
||||
Bundle CONNECT and MONITOR plans at a special price.
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-text-center uk-margin-medium-top">
|
||||
<a class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text"
|
||||
routerLinkActive="router-link-active" routerLink="subscriptions">
|
||||
<span class="uk-flex uk-flex-middle">
|
||||
<span>Learn more</span>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div #contact
|
||||
class="uk-section uk-container uk-container-large uk-margin-large-bottom uk-flex uk-flex-middle uk-flex-column">
|
||||
<h2 class="uk-text-center uk-width-3-4@m">
|
||||
<div>Let us Help you Develop a Collaborative Science Gateway<span class="uk-text-primary">.</span></div>
|
||||
<div>It is fast<span class="uk-text-primary">.</span> It is reliable<span class="uk-text-primary">.</span>
|
||||
</div>
|
||||
</h2>
|
||||
<a class="uk-button uk-button-primary uk-margin-medium-top uk-margin-medium-bottom" routerLink="/contact-us">Contact
|
||||
us</a>
|
||||
</div>
|
||||
<div #contact class="uk-section uk-container uk-container-large uk-margin-large-bottom uk-flex uk-flex-middle uk-flex-column">
|
||||
<h2 class="uk-text-center uk-width-3-4@m">
|
||||
<div>Let us Help you Develop a Collaborative Science Gateway<span class="uk-text-primary">.</span></div>
|
||||
<div>It is fast<span class="uk-text-primary">.</span> It is reliable<span class="uk-text-primary">.</span></div>
|
||||
</h2>
|
||||
<a class="uk-button uk-button-primary uk-margin-medium-top uk-margin-medium-bottom" routerLink="/contact-us">Contact us</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -7,11 +7,7 @@
|
|||
.connect-dark-logo-background {
|
||||
background-image: url("~src/assets/connect-assets/home/connect-dark-logo.svg");
|
||||
background-repeat: no-repeat;
|
||||
background-position: -5% 102%;
|
||||
background-size: 35%;
|
||||
background-position: left 95%;
|
||||
background-size: 65%;
|
||||
}
|
||||
|
||||
.slider-nav {
|
||||
max-width: 650px;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -39,6 +39,7 @@ export class CommunitiesComponent implements OnInit, OnDestroy, AfterViewInit {
|
|||
public subscriberErrorMessage: string = "";
|
||||
public errorCodes: ErrorCodes;
|
||||
private errorMessages: ErrorMessagesComponent;
|
||||
public showQuickContact: boolean = true;
|
||||
@ViewChildren('scrolling_element') elements: QueryList<ElementRef>;
|
||||
@ViewChild('contact') contact: ElementRef;
|
||||
public entities = OpenaireEntities;
|
||||
|
@ -69,14 +70,15 @@ export class CommunitiesComponent implements OnInit, OnDestroy, AfterViewInit {
|
|||
this.errorCodes = new ErrorCodes();
|
||||
this.errorMessages = new ErrorMessagesComponent();
|
||||
this.status = this.errorCodes.LOADING;
|
||||
this.quickContactService.setDisplay(false);
|
||||
}
|
||||
|
||||
public ngOnInit() {
|
||||
var url = this.properties.domain + this.properties.baseLink + this._router.url;
|
||||
this.seoService.createLinkForCanonicalURL(url, false);
|
||||
this._meta.updateTag({content: url}, "property='og:url'");
|
||||
this.subscriptions.push(this._piwikService.trackView(this.properties, "OpenAIRE Connect").subscribe());
|
||||
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
this.subscriptions.push(this._piwikService.trackView(this.properties, "OpenAIRE Connect", this.properties.piwikSiteId).subscribe());
|
||||
}
|
||||
this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => {
|
||||
this.user = user;
|
||||
this.getCommunities();
|
||||
|
@ -92,16 +94,14 @@ export class CommunitiesComponent implements OnInit, OnDestroy, AfterViewInit {
|
|||
this.subscriptions.forEach(subscription => {
|
||||
if (subscription instanceof Subscriber) {
|
||||
subscription.unsubscribe();
|
||||
} else if ((typeof MutationObserver != 'undefined' && subscription instanceof MutationObserver) ||
|
||||
(typeof IntersectionObserver != 'undefined' && subscription instanceof IntersectionObserver)) {
|
||||
subscription.disconnect();
|
||||
}
|
||||
} else if (subscription instanceof IntersectionObserver || subscription instanceof MutationObserver) {
|
||||
subscription.disconnect();
|
||||
}
|
||||
});
|
||||
this.quickContactService.setDisplay(true);
|
||||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
if(typeof IntersectionObserver !== "undefined" && typeof MutationObserver !== "undefined") {
|
||||
if(typeof window !== "undefined") {
|
||||
this.createObservers();
|
||||
}
|
||||
}
|
||||
|
@ -126,7 +126,13 @@ export class CommunitiesComponent implements OnInit, OnDestroy, AfterViewInit {
|
|||
};
|
||||
let intersectionObserver = new IntersectionObserver(entries => {
|
||||
entries.forEach(entry => {
|
||||
this.quickContactService.setDisplay(!entry.isIntersecting);
|
||||
if (entry.isIntersecting && this.showQuickContact) {
|
||||
this.showQuickContact = false;
|
||||
this.quickContactService.setDisplay(this.showQuickContact);
|
||||
} else if (!entry.isIntersecting && !this.showQuickContact) {
|
||||
this.showQuickContact = true;
|
||||
this.quickContactService.setDisplay(this.showQuickContact);
|
||||
}
|
||||
});
|
||||
}, options);
|
||||
intersectionObserver.observe(this.contact.nativeElement);
|
||||
|
@ -175,7 +181,7 @@ export class CommunitiesComponent implements OnInit, OnDestroy, AfterViewInit {
|
|||
let showCommunity: boolean = true;
|
||||
community.isSubscribed = Session.isSubscribedTo('community', community.communityId, this.user);
|
||||
|
||||
if (community.isPrivate() || community.isRestricted()) {
|
||||
if (community['status'] == "hidden" || community['status'] == "manager") {
|
||||
showCommunity = false;
|
||||
}
|
||||
if (showCommunity) {
|
||||
|
@ -193,7 +199,7 @@ export class CommunitiesComponent implements OnInit, OnDestroy, AfterViewInit {
|
|||
}
|
||||
|
||||
hasPermission(communityInfo: CommunityInfo) {
|
||||
return communityInfo.isPublic() || (communityInfo.isRestricted() && communityInfo.isManager);
|
||||
return communityInfo.status === "all" || (communityInfo.status === "manager" && communityInfo.isManager);
|
||||
}
|
||||
|
||||
private sort(results: CommunityInfo[]) {
|
||||
|
|
|
@ -14,19 +14,19 @@ import {ErrorMessagesModule} from '../openaireLibrary/utils/errorMessages.m
|
|||
import {SearchFormModule} from '../openaireLibrary/searchPages/searchUtils/searchForm.module';
|
||||
import {BrowseCommunityModule} from './browseCommunity/browse-community.module';
|
||||
import {HelperModule} from "../openaireLibrary/utils/helper/helper.module";
|
||||
import {GifSliderModule} from "../openaireLibrary/utils/gif-slider/gif-slider.module";
|
||||
import {OtherPortalsModule} from "../openaireLibrary/sharedComponents/other-portals/other-portals.module";
|
||||
import {SEOServiceModule} from "../openaireLibrary/sharedComponents/SEO/SEOService.module";
|
||||
import {IsRouteEnabled} from "../openaireLibrary/error/isRouteEnabled.guard";
|
||||
import {SectionScrollModule} from "../openaireLibrary/utils/section-scroll/section-scroll.module";
|
||||
import {IconsModule} from "../openaireLibrary/utils/icons/icons.module";
|
||||
import {SliderUtilsModule} from "../openaireLibrary/sharedComponents/slider-utils/slider-utils.module";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule, FormsModule, RouterModule,
|
||||
ManageModule, ErrorMessagesModule,
|
||||
SearchFormModule, BrowseCommunityModule, OtherPortalsModule,
|
||||
HelperModule, SEOServiceModule, SectionScrollModule, IconsModule, SliderUtilsModule
|
||||
SearchFormModule, BrowseCommunityModule, GifSliderModule, OtherPortalsModule,
|
||||
HelperModule, SEOServiceModule, SectionScrollModule, IconsModule
|
||||
],
|
||||
declarations: [
|
||||
CommunitiesComponent
|
||||
|
|
|
@ -1,14 +1,816 @@
|
|||
<ng-container *ngIf="showLoading">
|
||||
<div class="uk-container uk-container-large uk-section">
|
||||
<loading></loading>
|
||||
<div>
|
||||
<ng-template #tab_content
|
||||
let-resultType="resultType" let-fetch="fetch" let-searchLinkToAdvancedPage="searchLinkToAdvancedPage"
|
||||
let-params="params" let-type="type" let-typeName="typeName">
|
||||
<div class="uk-grid uk-margin-remove">
|
||||
<div class="uk-width-expand uk-padding uk-padding-remove-horizontal">
|
||||
<search-tab [fetch]="fetch" [resultType]="resultType" [params]="params"
|
||||
[searchLinkToAdvancedPage]="searchLinkToAdvancedPage" [properties]="properties">
|
||||
</search-tab>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #analytics_tab_content
|
||||
let-type="type" let-typeName="typeName">
|
||||
<div *ngIf="analyticsActiveTab == type && isEntityEnabled(type)
|
||||
&& statistics.statisticsSum && statistics.statisticsDisplay && statistics.statisticsSum[type].total>0
|
||||
&& (statistics.statisticsDisplay.entities[type].numbers.map['total']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities[type].numbers.map['project']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities[type].numbers.map['open']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities[type].numbers.map['closed']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities[type].numbers.map['embargo']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities[type].numbers.map['restricted']['showInMonitor']
|
||||
|| (statistics.allowedEntitiesMode['showInMonitor'] && statistics.statisticsSum
|
||||
&& statistics.allowedChartsMode['showInMonitor'] && statistics.statisticsSum[type]
|
||||
&& statistics.allowedChartsMode['showInMonitor'][type] && statistics.statisticsSum[type].total > 0
|
||||
&& statistics.allowedChartsMode['showInMonitor'][type].length > 0) )">
|
||||
<div class="tab-header uk-margin-bottom">
|
||||
{{typeName}}
|
||||
</div>
|
||||
<ng-container *ngTemplateOutlet="stats; context: {
|
||||
entity: type, entityName: typeName,
|
||||
statisticsSum:statistics.statisticsSum, statisticsDisplay:statistics.statisticsDisplay,
|
||||
allowedEntities: statistics.allowedEntitiesMode['showInMonitor'],
|
||||
allowedCharts:statistics.allowedChartsMode['showInMonitor'],
|
||||
showChartTitle: statistics.chartTitlesMode['showInMonitor'],
|
||||
chartsInfoMap:statistics.chartsInfoMap, showIn:'showInMonitor'}">
|
||||
</ng-container>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #stats let-entity="entity" let-entityName="entityName" let-statisticsSum="statisticsSum"
|
||||
let-statisticsDisplay="statisticsDisplay" let-allowedEntities="allowedEntities"
|
||||
let-allowedCharts="allowedCharts" let-chartsInfoMap="chartsInfoMap"
|
||||
let-showChartTitle="showChartTitle"
|
||||
let-showIn="showIn">
|
||||
<div *ngIf=" showIn == 'showInMonitor' && allowedCharts && allowedCharts[entity] && allowedCharts[entity].length == 0 &&
|
||||
!statisticsDisplay.entities[entity].numbers.map['total'][showIn] && !statisticsDisplay.entities[entity].numbers.map['project'][showIn] &&
|
||||
!statisticsDisplay.entities[entity].numbers.map['open'][showIn] && !statisticsDisplay.entities[entity].numbers.map['closed'][showIn] &&
|
||||
!statisticsDisplay.entities[entity].numbers.map['embargo'][showIn] && !statisticsDisplay.entities[entity].numbers.map['restricted'][showIn]"
|
||||
class="uk-alert uk-alert-primary">
|
||||
No graphs available
|
||||
</div>
|
||||
<div *ngIf="statisticsSum && statisticsDisplay && statisticsSum[entity].total > 0"
|
||||
[class]="'uk-grid uk-grid-small uk-grid-match ' + (showIn == 'showInMonitor' ? ' uk-child-width-1-3@s uk-child-width-1-6@m' : ' uk-child-width-1-1@s uk-child-width-1-3@m')"
|
||||
uk-grid>
|
||||
<div *ngIf="statisticsDisplay.entities[entity].numbers.map['total'][showIn]">
|
||||
<div class="uk-card uk-card-default uk-padding-small">
|
||||
<div class="uk-h4 uk-text-bold">
|
||||
{{statisticsSum[entity].total|number}}
|
||||
</div>
|
||||
<div>
|
||||
Total
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="statisticsDisplay.entities[entity].numbers.map['project'][showIn] && statisticsSum[entity].projects">
|
||||
<div class="uk-card uk-card-default uk-padding-small">
|
||||
<div class="uk-h4 uk-text-bold">
|
||||
{{statisticsSum[entity].projects|number}}
|
||||
</div>
|
||||
<div>
|
||||
Total linked projects
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="statisticsDisplay.entities[entity].numbers.map['open'][showIn] && statisticsSum[entity].open_access">
|
||||
<div class="uk-card uk-card-default uk-padding-small">
|
||||
<div class="uk-h4 uk-text-bold">
|
||||
{{statisticsSum[entity].open_access|number}}
|
||||
</div>
|
||||
<div>
|
||||
Open access
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="statisticsDisplay.entities[entity].numbers.map['closed'][showIn] && statisticsSum[entity].closed_access">
|
||||
<div class="uk-card uk-card-default uk-padding-small">
|
||||
<div class="uk-h4 uk-text-bold">
|
||||
{{statisticsSum[entity].closed_access|number}}
|
||||
</div>
|
||||
<div>
|
||||
Closed access
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="statisticsDisplay.entities[entity].numbers.map['embargo'][showIn] && statisticsSum[entity].embargo">
|
||||
<div class="uk-card uk-card-default uk-padding-small">
|
||||
<div class="uk-h4 uk-text-bold">
|
||||
{{statisticsSum[entity].embargo|number}}
|
||||
</div>
|
||||
<div>
|
||||
Embargoed
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="statisticsDisplay.entities[entity].numbers.map['restricted'][showIn] && statisticsSum[entity].restricted">
|
||||
<div class="uk-card uk-card-default uk-padding-small">
|
||||
<div class="uk-h4 uk-text-bold">
|
||||
{{statisticsSum[entity].restricted|number}}
|
||||
</div>
|
||||
<div>
|
||||
Restricted
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="allowedEntities &&
|
||||
statisticsSum && allowedCharts && statisticsSum[entity] &&
|
||||
allowedCharts[entity] && statisticsSum[entity].total>0 &&
|
||||
allowedCharts[entity].length>0">
|
||||
<div *ngIf="showIn == 'showInDashboard'">
|
||||
<div>
|
||||
<div class="uk-position-relative">
|
||||
<ul class="uk-list">
|
||||
<li *ngFor="let chart of allowedCharts[entity]">
|
||||
<div class="iframeContainer uk-height-medium uk-margin-medium-top uk-card uk-card-default uk-card-body">
|
||||
<div *ngIf="showChartTitle[chart]">
|
||||
{{chartsInfoMap[chart].title}}
|
||||
</div>
|
||||
<iframe [src]=chartsInfoMap[chart].url scrolling="no"></iframe>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="showIn == 'showInMonitor'" class="uk-grid uk-child-width-1-2@l uk-child-width-1-1@m ">
|
||||
<div *ngFor="let chart of allowedCharts[entity]" class="uk-clearfix uk-margin-bottom">
|
||||
<div class="iframeContainer uk-height-large uk-margin-medium-top uk-card uk-card-default uk-card-body">
|
||||
<div *ngIf="showChartTitle[chart]">
|
||||
{{chartsInfoMap[chart].title}}
|
||||
</div>
|
||||
<iframe [src]=chartsInfoMap[chart].url scrolling="no"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
<div *ngIf="communityInfo && community && !isPrivate()" >
|
||||
<div *ngIf="communityInfo && community" class="generalSearchForm heroBackground"> <!-- this div will have the
|
||||
customized color or image -->
|
||||
<div class="uk-container uk-container-large uk-flex uk-flex-center">
|
||||
<div class="uk-width-2-3@m uk-width-1-2@l uk-margin-large-top uk-margin-large-bottom">
|
||||
<h1 *ngIf="community.title" class="uk-text-center uk-h2 uk-margin-remove">
|
||||
{{community.shortTitle}}
|
||||
</h1>
|
||||
<div *ngIf="community.shortTitle && community.title != community.shortTitle" class="uk-text-center uk-margin-top">
|
||||
{{community.title}}
|
||||
</div>
|
||||
<div [class.uk-invisible]="disableSelect" class="uk-margin-medium-top">
|
||||
<advanced-search-input #advanced (searchEmitter)="goTo(true)">
|
||||
<entities-selection [simpleView]="true" currentEntity="result" [selectedEntity]="selectedEntity" [customFilter]="customFilter"
|
||||
(selectionChange)="entityChanged($event);advanced.focusNext(input, $event)" (disableSelectEmitter)="disableSelectChange($event)"
|
||||
[onChangeNavigate]="false"></entities-selection>
|
||||
<div input #input placeholder="Scholary works" [searchable]="true" [hint]="'Search in OpenAIRE'" [(value)]="keyword"></div>
|
||||
</advanced-search-input>
|
||||
<div *ngIf="selectedEntity === 'result' && input.focused" (click)="$event.stopPropagation();advanced.focusNext(input, $event)" class="uk-dropdown uk-display-block uk-margin-small-top uk-width-auto">
|
||||
<div class="uk-padding-small">
|
||||
<quick-selections [resultTypes]="resultTypes" [quickFilter]="resultsQuickFilter"></quick-selections>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="communityInfo && community" class=" uk-container uk-container-large uk-section uk-section-small">
|
||||
<div *ngIf="communityId" >
|
||||
<div>
|
||||
<div class="main-tabs-div">
|
||||
<!-- <ng-template #summary_tab>
|
||||
<div *ngIf="community" class="uk-grid uk-margin-remove">
|
||||
<div class="uk-width-expand uk-padding uk-inline">
|
||||
<div *ngIf="community.description" class="uk-margin-bottom ">
|
||||
<div [innerHTML]="community.description | safeHtml"></div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="isRouteEnabled('/curators')" class="uk-margin-small-bottom">
|
||||
<curators [longView]="false"></curators>
|
||||
</div>
|
||||
<div [class]="community.date || subscribers ? 'uk-margin-small-bottom' : ''">
|
||||
<span *ngIf="community.date" class="uk-margin-right">
|
||||
<span
|
||||
class="lowOpacityColor uk-text-meta">Created: </span> {{community.date | date:'dd-MMM-yyyy'}}
|
||||
</span>
|
||||
<span>
|
||||
<subscribe *ngIf="communityId" [communityId]="communityId" showNumbers=true
|
||||
(countSubscribersEvent)="countSubscribersEvent($event)"></subscribe>
|
||||
</span>
|
||||
</div>
|
||||
<div [class]="((projectTotal && projectTotal > 0 && isEntityEnabled('project') && isRouteEnabled(searchLinkToProjects)) ||
|
||||
(contentProviderTotal && contentProviderTotal > 0 && isEntityEnabled('datasource') && isRouteEnabled(searchLinkToDataProviders)))
|
||||
? 'uk-margin-small-bottom' : ''">
|
||||
<span
|
||||
*ngIf="projectTotal && projectTotal > 0 && isEntityEnabled('project') && isRouteEnabled(searchLinkToProjects)">
|
||||
<span class="uk-text-meta">Projects: </span>
|
||||
<a class="uk-margin-auto-vertical uk-margin-auto portal-link" [queryParams]=params
|
||||
routerLinkActive="router-link-active"
|
||||
[routerLink]="searchLinkToProjects">{{projectTotal|number}}
|
||||
</a>
|
||||
</span>
|
||||
<span
|
||||
*ngIf="contentProviderTotal && contentProviderTotal > 0 && isEntityEnabled('datasource') && isRouteEnabled(searchLinkToDataProviders)"
|
||||
[class]="'uk-display-inline-block '+((projectTotal && projectTotal > 0 && isEntityEnabled('project') && isRouteEnabled(searchLinkToProjects)) ? 'uk-margin-left' : '')">
|
||||
<span class="uk-text-meta">Content Providers: </span>
|
||||
<a class="uk-margin-auto-vertical uk-margin-auto portal-link" [queryParams]=params
|
||||
routerLinkActive="router-link-active"
|
||||
[routerLink]="searchLinkToDataProviders">{{contentProviderTotal|number}}
|
||||
</a>
|
||||
</span>
|
||||
<span *ngIf="projectsCalculated && contentProvidersCalculated &&
|
||||
((projectTotal && projectTotal > 0 && isEntityEnabled('project') && isRouteEnabled(searchLinkToProjects))
|
||||
|| (contentProviderTotal && contentProviderTotal > 0 && isEntityEnabled('datasource') && isRouteEnabled(searchLinkToDataProviders)))"
|
||||
class="uk-icon uk-text-meta uk-margin-small-left"
|
||||
title="{{buildProjectsAndContentProvidesTooltip()}}"
|
||||
uk-tooltip="pos:bottom-right; delay:10; cls: community-page-tooltip uk-width-medium">
|
||||
<svg width="15" height="15" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="question"
|
||||
ratio="1">
|
||||
<circle fill="none" stroke="#000" stroke-width="1.1" cx="10" cy="10" r="9"></circle>
|
||||
<circle cx="10.44" cy="14.42" r="1.05"></circle>
|
||||
<path fill="none" stroke="#000" stroke-width="1.2"
|
||||
d="M8.17,7.79 C8.17,4.75 12.72,4.73 12.72,7.72 C12.72,8.67 11.81,9.15 11.23,9.75 C10.75,10.24 10.51,10.73 10.45,11.4 C10.44,11.53 10.43,11.64 10.43,11.75"></path>
|
||||
</svg>
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
*ngIf="(zenodoCommunityIdS.length + ((masterZenodoCommunity) ? 1 : 0) > 0) && isRouteEnabled(shareInZenodoPage)"
|
||||
class="">
|
||||
<span class="lowOpacityColor uk-text-meta">Linked to</span>
|
||||
<a class="portal-link uk-margin-small-left uk-margin-small-right" [queryParams]=params
|
||||
routerLinkActive="router-link-active" [routerLink]="shareInZenodoPage">
|
||||
<span>{{zenodoCommunityIdS.length + ((masterZenodoCommunity) ? 1 : 0)}}</span>
|
||||
</a>
|
||||
<span class="lowOpacityColor uk-text-meta">Zenodo Communities</span>
|
||||
<span class="uk-icon uk-text-meta uk-margin-small-left"
|
||||
title="{{buildZenodoCommunitiesTooltip()}}"
|
||||
uk-tooltip="pos:bottom-right; delay:10; cls: community-page-tooltip uk-width-medium">
|
||||
<svg width="15" height="15" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="question"
|
||||
ratio="1">
|
||||
<circle fill="none" stroke="#000" stroke-width="1.1" cx="10" cy="10" r="9"></circle>
|
||||
<circle cx="10.44" cy="14.42" r="1.05"></circle>
|
||||
<path fill="none" stroke="#000" stroke-width="1.2"
|
||||
d="M8.17,7.79 C8.17,4.75 12.72,4.73 12.72,7.72 C12.72,8.67 11.81,9.15 11.23,9.75 C10.75,10.24 10.51,10.73 10.45,11.4 C10.44,11.53 10.43,11.64 10.43,11.75"></path>
|
||||
</svg>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="isRouteEnabled('/subjects') && community.subjects && community.subjects.length > 0"
|
||||
class="uk-width-1-3@m uk-padding right-column uk-inline">
|
||||
<div class="uk-margin-bottom">
|
||||
<div class="uk-text-meta uk-margin-small-bottom">Subjects</div>
|
||||
<span *ngFor="let subject of community.subjects.slice(0,20) let i=index">
|
||||
<span *ngIf="subject != ''">
|
||||
<a class="portal-link"
|
||||
[queryParams]="{f0:'resultsubject',fv0:createParams(subject)}"
|
||||
routerLinkActive="router-link-active" [routerLink]="searchLinkToAdvancedResults">
|
||||
<span>{{subject}}</span>
|
||||
</a>
|
||||
<span *ngIf="i < community.subjects.length-1 && i != 19">, </span>
|
||||
</span>
|
||||
</span>
|
||||
<div
|
||||
class="uk-margin-top uk-animation-fade uk-padding uk-padding-remove-top uk-position-bottom-right">
|
||||
<a class="portal-link" routerLinkActive="router-link-active" [routerLink]="'/subjects'">
|
||||
View all
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<ng-template #publications_tab>
|
||||
<ng-container *ngTemplateOutlet="tab_content; context: {
|
||||
resultType: 'publication', fetch: fetchPublications,
|
||||
searchLinkToAdvancedPage: properties.searchLinkToAdvancedResults,
|
||||
params: getParamsForSearchLink('publications'),
|
||||
type: 'publication', typeName: 'publication',
|
||||
showImpactFactors:(community.communityId == 'elixir-gr' || community.communityId == 'inspired-ris' )}">
|
||||
</ng-container>
|
||||
</ng-template>
|
||||
<ng-template #datasets_tab>
|
||||
<ng-container *ngTemplateOutlet="tab_content; context: {
|
||||
resultType: 'dataset', fetch: fetchDatasets,
|
||||
searchLinkToAdvancedPage: properties.searchLinkToAdvancedResults,
|
||||
params: getParamsForSearchLink('datasets'),
|
||||
type: 'dataset', typeName: 'research data',
|
||||
showImpactFactors:(community.communityId == 'elixir-gr' || community.communityId == 'inspired-ris')}">
|
||||
</ng-container>
|
||||
</ng-template>
|
||||
<ng-template #software_tab>
|
||||
<ng-container *ngTemplateOutlet="tab_content; context: {
|
||||
resultType: 'software', fetch: fetchSoftware,
|
||||
searchLinkToAdvancedPage: properties.searchLinkToAdvancedResults,
|
||||
params: getParamsForSearchLink('software'),
|
||||
type: 'software', typeName: 'software',
|
||||
showImpactFactors:(community.communityId == 'elixir-gr' || community.communityId == 'inspired-ris')}">
|
||||
</ng-container>
|
||||
</ng-template>
|
||||
<ng-template #other_tab>
|
||||
<ng-container *ngTemplateOutlet="tab_content; context: {
|
||||
resultType: 'other', fetch: fetchOrps,
|
||||
searchLinkToAdvancedPage: properties.searchLinkToAdvancedResults,
|
||||
params: getParamsForSearchLink('other'),
|
||||
type: 'orp', typeName: 'other products',
|
||||
showImpactFactors:(community.communityId == 'elixir-gr' || community.communityId == 'inspired-ris')}">
|
||||
</ng-container>
|
||||
</ng-template>
|
||||
<ng-template #analytics_tab>
|
||||
<div *ngIf="statistics && statistics.statisticsDisplay && statistics.statisticsDisplay.isActive"
|
||||
class="content-overflow uk-overflow-auto">
|
||||
<div *ngIf="statistics && activeTab=='analytics'" class="uk-width-expand uk-padding">
|
||||
|
||||
<div class="uk-text-center">
|
||||
<button *ngIf="isEntityEnabled('publication')
|
||||
&& statistics.statisticsSum && statistics.statisticsDisplay && statistics.statisticsSum['publication'].total>0
|
||||
&& statistics.statisticsSum && statistics.statisticsDisplay && statistics.statisticsSum['publication'].total>0
|
||||
&&
|
||||
( statistics.statisticsDisplay.entities['publication'].numbers.map['total']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['publication'].numbers.map['project']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['publication'].numbers.map['open']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['publication'].numbers.map['closed']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['publication'].numbers.map['embargo']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['publication'].numbers.map['restricted']['showInMonitor']
|
||||
|| ( statistics.allowedEntitiesMode['showInMonitor'] && statistics.statisticsSum
|
||||
&& statistics.allowedChartsMode['showInMonitor'] && statistics.statisticsSum['publication']
|
||||
&& statistics.allowedChartsMode['showInMonitor']['publication'] && statistics.statisticsSum['publication'].total > 0
|
||||
&& statistics.allowedChartsMode['showInMonitor']['publication'].length > 0))"
|
||||
[class]="(analyticsActiveTab == 'publication' ? 'active ' : '')+' publicationAnalytics uk-icon uk-icon-button uk-margin-right'"
|
||||
uk-tooltip="title: Publications" (click)="analyticsActiveTab = 'publication'">
|
||||
<img src="assets/connect-assets/home/entities/publication.svg">
|
||||
</button>
|
||||
<button *ngIf="isEntityEnabled('dataset')
|
||||
&& statistics.statisticsSum && statistics.statisticsDisplay && statistics.statisticsSum['dataset'].total>0
|
||||
&&
|
||||
( statistics.statisticsDisplay.entities['dataset'].numbers.map['total']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['dataset'].numbers.map['project']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['dataset'].numbers.map['open']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['dataset'].numbers.map['closed']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['dataset'].numbers.map['embargo']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['dataset'].numbers.map['restricted']['showInMonitor']
|
||||
|| ( statistics.allowedEntitiesMode['showInMonitor'] && statistics.statisticsSum
|
||||
&& statistics.allowedChartsMode['showInMonitor'] && statistics.statisticsSum['dataset']
|
||||
&& statistics.allowedChartsMode['showInMonitor']['dataset'] && statistics.statisticsSum['dataset'].total > 0
|
||||
&& statistics.allowedChartsMode['showInMonitor']['dataset'].length > 0))"
|
||||
[class]="(analyticsActiveTab == 'dataset' ? 'active ' : '')+' datasetAnalytics uk-icon uk-icon-button uk-margin-right'"
|
||||
uk-tooltip="title: Research Data" (click)="analyticsActiveTab = 'dataset'">
|
||||
<img src="assets/connect-assets/home/entities/dataset.svg">
|
||||
</button>
|
||||
<button *ngIf="isEntityEnabled('software')
|
||||
&& statistics.statisticsSum && statistics.statisticsDisplay && statistics.statisticsSum['software'].total>0
|
||||
&&
|
||||
( statistics.statisticsDisplay.entities['software'].numbers.map['total']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['software'].numbers.map['project']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['software'].numbers.map['open']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['software'].numbers.map['closed']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['software'].numbers.map['embargo']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['software'].numbers.map['restricted']['showInMonitor']
|
||||
|| ( statistics.allowedEntitiesMode['showInMonitor'] && statistics.statisticsSum
|
||||
&& statistics.allowedChartsMode['showInMonitor'] && statistics.statisticsSum['software']
|
||||
&& statistics.allowedChartsMode['showInMonitor']['software'] && statistics.statisticsSum['software'].total > 0
|
||||
&& statistics.allowedChartsMode['showInMonitor']['software'].length > 0))"
|
||||
[class]="(analyticsActiveTab == 'software' ? 'active ' : '')+' softwareAnalytics uk-icon uk-icon-button uk-margin-right'"
|
||||
uk-tooltip="title: Software" (click)="analyticsActiveTab = 'software'">
|
||||
<img src="assets/connect-assets/home/entities/software.svg">
|
||||
</button>
|
||||
<button *ngIf="isEntityEnabled('orp')
|
||||
&& statistics.statisticsSum && statistics.statisticsDisplay && statistics.statisticsSum['orp'].total>0
|
||||
&&
|
||||
( statistics.statisticsDisplay.entities['orp'].numbers.map['total']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['orp'].numbers.map['project']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['orp'].numbers.map['open']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['orp'].numbers.map['closed']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['orp'].numbers.map['embargo']['showInMonitor']
|
||||
|| statistics.statisticsDisplay.entities['orp'].numbers.map['restricted']['showInMonitor']
|
||||
|| ( statistics.allowedEntitiesMode['showInMonitor'] && statistics.statisticsSum
|
||||
&& statistics.allowedChartsMode['showInMonitor'] && statistics.statisticsSum['orp']
|
||||
&& statistics.allowedChartsMode['showInMonitor']['orp'] && statistics.statisticsSum['orp'].total > 0
|
||||
&& statistics.allowedChartsMode['showInMonitor']['orp'].length > 0))"
|
||||
[class]="(analyticsActiveTab == 'orp' ? 'active ' : '')+' otherAnalytics uk-icon uk-icon-button'"
|
||||
uk-tooltip="title: Other Research Products" (click)="analyticsActiveTab = 'orp'">
|
||||
<img src="assets/connect-assets/home/entities/other.svg">
|
||||
</button>
|
||||
</div>
|
||||
<hr>
|
||||
<ng-container *ngTemplateOutlet="analytics_tab_content; context: {
|
||||
type: 'publication', typeName: 'publications'}">
|
||||
</ng-container>
|
||||
<ng-container *ngTemplateOutlet="analytics_tab_content; context: {
|
||||
type: 'dataset', typeName: 'research data'}">
|
||||
</ng-container>
|
||||
<ng-container *ngTemplateOutlet="analytics_tab_content; context: {
|
||||
type: 'software', typeName: 'software'}">
|
||||
</ng-container>
|
||||
<ng-container *ngTemplateOutlet="analytics_tab_content; context: {
|
||||
type: 'orp', typeName: 'other products'}">
|
||||
</ng-container>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<ng-template #enermaps_tab>
|
||||
<div class="uk-grid uk-margin-remove">
|
||||
<div class="uk-width-expand uk-padding">
|
||||
<search-tab [fetch]="fetchFeaturedDatasets" [resultType]="'dataset'"
|
||||
[properties]="properties" customTitle="Featured Datasets"
|
||||
[showImpactFactors]="false" [showEnermaps]="true">
|
||||
<div class="uk-margin-top uk-margin-bottom uk-text-meta">
|
||||
<div>Here are listed some of the most important energy datasets as selected by energy experts.</div>
|
||||
<div>
|
||||
Check them if you want to easily explore and visualize the European energy landscape,
|
||||
using only well-known datasets which you can trust.
|
||||
</div>
|
||||
</div>
|
||||
</search-tab>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<ng-template #mapping_tab>
|
||||
<div *ngIf="activeTab == 'mapping'">
|
||||
<div
|
||||
class="uk-margin-left tab-header uk-margin uk-margin-top ">
|
||||
Browse OpenAIRE Research Graph through a map of the main concepts linked to Coronavirus
|
||||
</div>
|
||||
<div class="uk-padding">
|
||||
<iframe src="https://openaire.opscidia.com/?iframe=true&keyword=covid19&mapping_size=4"
|
||||
title="Opscidia Ontology mapping" class="uk-width-1-1" style="height:700px"></iframe>
|
||||
<span
|
||||
class=" uk-text-baseline uk-text-meta uk-text-left ">Powered by <a
|
||||
href="http://www.opscidia.com/" target="_blank" class="">Opscidia</a> and <a
|
||||
href="https://graph.openaire.eu/" target="_blank" class="">OpenAIRE Research Graph</a> </span>
|
||||
<span class="uk-text-right uk-float-right uk-text-baseline uk-text-meta"> Visit <a
|
||||
class=" uk-margin-right uk-margin-small-top"
|
||||
href="https://openaire.opscidia.com/?iframe=true&keyword=covid19&mapping_size=4" target="_blank" >
|
||||
Opscidia Tool
|
||||
</a></span>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<ng-template #twitter_tab *ngIf="properties.environment == 'development'">
|
||||
<div>
|
||||
<div>
|
||||
<a href="https://twitter.com/{{ communityInfo.twitterAccount }}?ref_src=twsrc%5Etfw" class="twitter-timeline" data-height="900">
|
||||
Tweets by {{ communityInfo.twitterAccount }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template> -->
|
||||
|
||||
<div id="mytabs" class="uk-grid uk-margin-remove-left uk-position-relative">
|
||||
<div class="uk-margin-medium-right uk-margin-top uk uk-padding-remove uk-width-expand">
|
||||
<div class="uk-width-1-1" uk-slider="finite: true">
|
||||
<div class="uk-position-relative " >
|
||||
<div class="uk-slider-container ">
|
||||
<ul class=" uk-slider-items " style="flex-wrap: nowrap !important;" >
|
||||
<li (click)="onSelectActiveTab('summary')">
|
||||
<ul class="uk-tab">
|
||||
<li [class.uk-active]="activeTab == 'summary'">
|
||||
<a class="uk-width-1-1 uk-height-1-1 uk-flex uk-flex-center">
|
||||
Summary
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li *ngIf="fetchPublications.searchUtils.totalResults > 0 && isEntityEnabled('publication')"
|
||||
(click)="onSelectActiveTab('publications')">
|
||||
<ul class="uk-tab">
|
||||
<li [class.uk-active]="activeTab == 'publication'">
|
||||
<a class="uk-width-1-1 uk-height-1-1 uk-flex uk-flex-center">
|
||||
{{openaireEntities.PUBLICATIONS}} ({{fetchPublications.searchUtils.totalResults | number}})
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li *ngIf="fetchDatasets.searchUtils.totalResults > 0 && isEntityEnabled('dataset')"
|
||||
(click)="onSelectActiveTab('datasets')">
|
||||
<ul class="uk-tab">
|
||||
<li [class.uk-active]="activeTab == 'dataset'">
|
||||
<a class="uk-width-1-1 uk-height-1-1 uk-flex uk-flex-center">
|
||||
{{openaireEntities.DATASETS}} ({{fetchDatasets.searchUtils.totalResults | number}})
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li *ngIf="fetchSoftware.searchUtils.totalResults > 0 && isEntityEnabled('software')"
|
||||
(click)="onSelectActiveTab('software')">
|
||||
<ul class="uk-tab">
|
||||
<li [class.uk-active]="activeTab == 'software'">
|
||||
<a class="uk-width-1-1 uk-height-1-1 uk-flex uk-flex-center">
|
||||
{{openaireEntities.SOFTWARE}} ({{fetchSoftware.searchUtils.totalResults | number}})
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li *ngIf="fetchOrps.searchUtils.totalResults > 0 && isEntityEnabled('orp')"
|
||||
(click)="onSelectActiveTab('other')">
|
||||
<ul class="uk-tab">
|
||||
<li [class.uk-active]="activeTab == 'orp'">
|
||||
<a class="uk-width-1-1 uk-height-1-1 uk-flex uk-flex-center">
|
||||
{{openaireEntities.OTHER}} ({{fetchOrps.searchUtils.totalResults | number}})
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li *ngIf="properties.environment == 'development' && communityInfo.twitterAccount"
|
||||
(click)="onSelectActiveTab('twitter')">
|
||||
<ul class="uk-tab">
|
||||
<li [class.uk-active]="activeTab == 'twitter'">
|
||||
<a class="uk-width-1-1 uk-height-1-1 uk-flex uk-flex-center">
|
||||
Twitter
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="">
|
||||
<a class="uk-position-center-left uk-blur-background" uk-slider-item="previous"><span uk-icon="chevron-left"></span></a>
|
||||
<a class="uk-position-center-right uk-blur-background" uk-slider-item="next"><span uk-icon="chevron-right"></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-padding-small uk-padding-remove-bottom uk-padding-remove-right">
|
||||
<ul class="uk-tab uk-height-1-1">
|
||||
<li *ngIf="properties.environment != 'production' && communityId == 'covid-19'" (click)="onSelectActiveTab('mapping')" [class.uk-active]="activeTab == 'mapping'">
|
||||
<a class="uk-width-1-1 uk-height-1-1 uk-flex uk-flex-center featuredTab">
|
||||
Ontology Mapping
|
||||
</a>
|
||||
</li>
|
||||
<li
|
||||
*ngIf="communityId == 'enermaps' && fetchFeaturedDatasets.searchUtils.totalResults > 0 && isEntityEnabled('dataset')"
|
||||
(click)="onSelectActiveTab('enermaps')" [class.uk-active]="activeTab == 'enermaps'">
|
||||
<a class="uk-width-1-1 uk-height-1-1 uk-flex uk-flex-center featuredTab">
|
||||
Featured Datasets ({{fetchFeaturedDatasets.searchUtils.totalResults | number}})
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="activeTab == 'summary'">
|
||||
<div *ngIf="community" class="uk-grid uk-grid-divider uk-padding uk-padding-remove-horizontal" uk-grid>
|
||||
<div class="uk-width-expand">
|
||||
<div *ngIf="community.description" class="uk-margin-bottom ">
|
||||
<div [innerHTML]="community.description | safeHtml">
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-card uk-card-default uk-padding-small">
|
||||
<div *ngIf="isRouteEnabled('/curators')" class="uk-margin-bottom">
|
||||
<curators [longView]="false"></curators>
|
||||
</div>
|
||||
<div class="uk-grid uk-grid-divider uk-child-width-1-2@m" uk-grid>
|
||||
<div>
|
||||
<div *ngIf="community.date" class="uk-margin-small-bottom">
|
||||
<span class="uk-text-meta">Created: </span> {{community.date | date:'dd-MMM-yyyy'}}
|
||||
</div>
|
||||
<div [class]="projectTotal && projectTotal > 0 && isEntityEnabled('project') && isRouteEnabled(searchLinkToProjects) ? 'uk-margin-small-bottom' : ''">
|
||||
<span *ngIf="projectTotal && projectTotal > 0 && isEntityEnabled('project') && isRouteEnabled(searchLinkToProjects)">
|
||||
<span class="uk-text-meta">Projects: </span>
|
||||
<a [queryParams]=params
|
||||
routerLinkActive="router-link-active"
|
||||
[routerLink]="searchLinkToProjects">{{projectTotal|number}}
|
||||
</a>
|
||||
<a *ngIf="projectsCalculated && (projectTotal && projectTotal > 0 && isEntityEnabled('project') && isRouteEnabled(searchLinkToProjects))"
|
||||
[title]="buildProjectsTooltip()"
|
||||
[attr.uk-tooltip]="'pos: bottom-right; delay: 10;'"
|
||||
class="uk-link-reset uk-display-inline-block uk-margin-small-left">
|
||||
<svg width="15" height="15" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="question" ratio="1">
|
||||
<circle fill="none" stroke="#8E8E8E" stroke-width="1.1" cx="10" cy="10" r="9"></circle>
|
||||
<circle fill="none" stroke="#8E8E8E" cx="10.44" cy="14.42" r="1.05"></circle>
|
||||
<path fill="none" stroke="#8E8E8E" stroke-width="1.2"
|
||||
d="M8.17,7.79 C8.17,4.75 12.72,4.73 12.72,7.72 C12.72,8.67 11.81,9.15 11.23,9.75 C10.75,10.24 10.51,10.73 10.45,11.4 C10.44,11.53 10.43,11.64 10.43,11.75"></path>
|
||||
</svg>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<div *ngIf="(zenodoCommunityIdS.length + ((masterZenodoCommunity) ? 1 : 0) > 0) && isRouteEnabled(shareInZenodoPage)">
|
||||
<span class="uk-text-meta">Linked Zenodo Communities: </span>
|
||||
<a [queryParams]=params
|
||||
routerLinkActive="router-link-active" [routerLink]="shareInZenodoPage">
|
||||
<span>{{zenodoCommunityIdS.length + ((masterZenodoCommunity) ? 1 : 0)}}</span>
|
||||
</a>
|
||||
<a [title]="buildZenodoCommunitiesTooltip()"
|
||||
[attr.uk-tooltip]="'pos: bottom-right; delay: 10;'"
|
||||
class="uk-link-reset uk-display-inline-block uk-margin-small-left">
|
||||
<svg width="15" height="15" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="question" ratio="1">
|
||||
<circle fill="none" stroke="#8E8E8E" stroke-width="1.1" cx="10" cy="10" r="9"></circle>
|
||||
<circle fill="none" stroke="#8E8E8E" cx="10.44" cy="14.42" r="1.05"></circle>
|
||||
<path fill="none" stroke="#8E8E8E" stroke-width="1.2"
|
||||
d="M8.17,7.79 C8.17,4.75 12.72,4.73 12.72,7.72 C12.72,8.67 11.81,9.15 11.23,9.75 C10.75,10.24 10.51,10.73 10.45,11.4 C10.44,11.53 10.43,11.64 10.43,11.75"></path>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div [class]="community.date || subscribers ? 'uk-margin-small-bottom' : ''">
|
||||
<span>
|
||||
<subscribe *ngIf="communityId" [communityId]="communityId" showNumbers=true
|
||||
(countSubscribersEvent)="countSubscribersEvent($event)">
|
||||
</subscribe>
|
||||
</span>
|
||||
</div>
|
||||
<div [class]="contentProviderTotal && contentProviderTotal > 0 && isEntityEnabled('datasource') && isRouteEnabled(searchLinkToDataProviders) ? 'uk-margin-small-bottom' : ''">
|
||||
<span *ngIf="contentProviderTotal && contentProviderTotal > 0 && isEntityEnabled('datasource') && isRouteEnabled(searchLinkToDataProviders)">
|
||||
<span class="uk-text-meta">Content Providers: </span>
|
||||
<a [queryParams]=params
|
||||
routerLinkActive="router-link-active"
|
||||
[routerLink]="searchLinkToDataProviders">{{contentProviderTotal|number}}
|
||||
</a>
|
||||
<a *ngIf="contentProvidersCalculated && (contentProviderTotal && contentProviderTotal > 0 && isEntityEnabled('datasource') && isRouteEnabled(searchLinkToDataProviders))"
|
||||
[title]="buildContentProvidersTooltip()"
|
||||
[attr.uk-tooltip]="'pos: bottom-right; delay: 10;'"
|
||||
class="uk-link-reset uk-display-inline-block uk-margin-small-left">
|
||||
<svg width="15" height="15" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="question" ratio="1">
|
||||
<circle fill="none" stroke="#8E8E8E" stroke-width="1.1" cx="10" cy="10" r="9"></circle>
|
||||
<circle fill="none" stroke="#8E8E8E" cx="10.44" cy="14.42" r="1.05"></circle>
|
||||
<path fill="none" stroke="#8E8E8E" stroke-width="1.2"
|
||||
d="M8.17,7.79 C8.17,4.75 12.72,4.73 12.72,7.72 C12.72,8.67 11.81,9.15 11.23,9.75 C10.75,10.24 10.51,10.73 10.45,11.4 C10.44,11.53 10.43,11.64 10.43,11.75"></path>
|
||||
</svg>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="isRouteEnabled('/subjects') && displayedAllSubjects && displayedAllSubjects.length > 0" class="uk-width-1-3@m">
|
||||
<div>
|
||||
<div class="uk-text-meta uk-margin-small-bottom">Subjects</div>
|
||||
<span *ngFor="let item of displayedAllSubjects.slice(0,20) let i=index">
|
||||
<span *ngIf="item.value != ''">
|
||||
<a class="portal-link"
|
||||
[queryParams]="{f0:item.type,fv0:createParams(item.value)}"
|
||||
routerLinkActive="router-link-active" [routerLink]="searchLinkToAdvancedResults">
|
||||
<span>{{item.value}}</span>
|
||||
</a>
|
||||
<span *ngIf="i < displayedAllSubjects.length-1 && i != 19">, </span>
|
||||
</span>
|
||||
</span>
|
||||
<div class="uk-animation-fade uk-margin-top">
|
||||
<a class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text" routerLinkActive="router-link-active" [routerLink]="'/subjects'">
|
||||
View all
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="activeTab == 'publication' && fetchPublications.searchUtils.totalResults > 0 && isEntityEnabled('publication')">
|
||||
<ng-container *ngTemplateOutlet="tab_content; context: {
|
||||
resultType: 'publication', fetch: fetchPublications,
|
||||
searchLinkToAdvancedPage: properties.searchLinkToAdvancedResults,
|
||||
params: getParamsForSearchLink('publications'),
|
||||
type: 'publication', typeName: 'publication'}">
|
||||
</ng-container>
|
||||
</div>
|
||||
<div *ngIf="activeTab == 'dataset' && fetchDatasets.searchUtils.totalResults > 0 && isEntityEnabled('dataset')">
|
||||
<ng-container *ngTemplateOutlet="tab_content; context: {
|
||||
resultType: 'dataset', fetch: fetchDatasets,
|
||||
searchLinkToAdvancedPage: properties.searchLinkToAdvancedResults,
|
||||
params: getParamsForSearchLink('datasets'),
|
||||
type: 'dataset', typeName: 'research data'}">
|
||||
</ng-container>
|
||||
</div>
|
||||
<div *ngIf="activeTab == 'software' && fetchSoftware.searchUtils.totalResults > 0 && isEntityEnabled('software')">
|
||||
<ng-container *ngTemplateOutlet="tab_content; context: {
|
||||
resultType: 'software', fetch: fetchSoftware,
|
||||
searchLinkToAdvancedPage: properties.searchLinkToAdvancedResults,
|
||||
params: getParamsForSearchLink('software'),
|
||||
type: 'software', typeName: 'software'}">
|
||||
</ng-container>
|
||||
</div>
|
||||
<div *ngIf="activeTab == 'orp' && fetchOrps.searchUtils.totalResults > 0 && isEntityEnabled('orp')">
|
||||
<ng-container *ngTemplateOutlet="tab_content; context: {
|
||||
resultType: 'other', fetch: fetchOrps,
|
||||
searchLinkToAdvancedPage: properties.searchLinkToAdvancedResults,
|
||||
params: getParamsForSearchLink('other'),
|
||||
type: 'orp', typeName: 'other products'}">
|
||||
</ng-container>
|
||||
</div>
|
||||
<div *ngIf="activeTab == 'twitter' && properties.environment == 'development' && communityInfo.twitterAccount">
|
||||
<div>
|
||||
<div>
|
||||
<a href="https://twitter.com/{{ communityInfo.twitterAccount }}?ref_src=twsrc%5Etfw" class="twitter-timeline" data-height="900">
|
||||
Tweets by {{communityInfo.twitterAccount}}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="activeTab == 'mapping' && properties.environment != 'production' && communityId == 'covid-19'"
|
||||
class="uk-padding uk-padding-remove-horizontal">
|
||||
<div>
|
||||
Browse OpenAIRE Research Graph through a map of the main concepts linked to Coronavirus
|
||||
</div>
|
||||
<div class="uk-margin-medium-top">
|
||||
<iframe src="https://openaire.opscidia.com/?iframe=true&keyword=covid19&mapping_size=4"
|
||||
title="Opscidia Ontology mapping" class="uk-width-1-1" style="height:700px"></iframe>
|
||||
<span class=" uk-text-baseline uk-text-meta uk-text-left ">
|
||||
Powered by
|
||||
<a href="http://www.opscidia.com/" target="_blank" class="">Opscidia</a> and
|
||||
<a href="https://graph.openaire.eu/" target="_blank" class="">OpenAIRE Research Graph</a>
|
||||
</span>
|
||||
<span class="uk-text-right uk-float-right uk-text-baseline uk-text-meta"> Visit
|
||||
<a class="uk-margin-right uk-margin-small-top" href="https://openaire.opscidia.com/?iframe=true&keyword=covid19&mapping_size=4" target="_blank">
|
||||
Opscidia Tool
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
*ngIf="activeTab == 'enermaps' && communityId == 'enermaps' && fetchFeaturedDatasets.searchUtils.totalResults > 0 && isEntityEnabled('dataset')">
|
||||
<div class="uk-grid uk-margin-remove">
|
||||
<div class="uk-width-expand uk-padding uk-padding-remove-horizontal">
|
||||
<search-tab [fetch]="fetchFeaturedDatasets" [resultType]="'dataset'"
|
||||
[properties]="properties" customTitle="Featured Datasets" [currentPage]="page"
|
||||
[showEnermaps]="true">
|
||||
<div class="uk-margin-top uk-margin-medium-bottom uk-text-meta">
|
||||
<div>Here are listed some of the most important energy datasets as selected by energy experts.</div>
|
||||
<div>
|
||||
Check them if you want to easily explore and visualize the European energy landscape,
|
||||
using only well-known datasets which you can trust.
|
||||
</div>
|
||||
</div>
|
||||
<no-load-paging *ngIf="fetchFeaturedDatasets && fetchFeaturedDatasets.results.length > size" [type]="'Featured Datasets'"
|
||||
(pageChange)="updatePage($event)"
|
||||
[page]="page" [pageSize]="size"
|
||||
[totalResults]="fetchFeaturedDatasets.results.length" >
|
||||
</no-load-paging>
|
||||
</search-tab>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="!showLoading">
|
||||
<ng-container *ngFor="let pluginGroup of pluginsByPlacement.get('top') ; let i=index">
|
||||
<ng-container *ngIf="(pluginGroup.template.portalSpecific.length == 0 || pluginGroup.template.portalSpecific.indexOf(community.communityId) != -1 ) &&
|
||||
(pluginGroup.template.plan == 'Default'|| pluginGroup.template.plan == 'Standard'|| pluginGroup.template.plan == community.plan ) && pluginGroup.plugin.active">
|
||||
<plugin-wrapper [pluginTemplate]="pluginGroup.template" [plugin]="pluginGroup.plugin"
|
||||
[pluginObject]="pluginGroup.plugin.object"></plugin-wrapper>
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
|
||||
<!-- <ng-container *ngIf="communityId == 'enermaps'">
|
||||
<div class="uk-section uk-container uk-container-large tm-middle">
|
||||
<div class="uk-margin-large-bottom">
|
||||
<h2 class="uk-margin-top uk-text-center">
|
||||
About Enermaps
|
||||
</h2>
|
||||
<div class="uk-padding uk-grid uk-child-width-1-1@s uk-child-width-1-2@m uk-child-width-1-4@l uk-grid-large uk-margin-medium-top" uk-grid>
|
||||
<div class="uk-flex uk-flex-column uk-flex-middle">
|
||||
<div class="icon-wrapper uk-flex uk-flex-center uk-flex-middle">
|
||||
<img src="assets/connect-assets/home/website.svg">
|
||||
</div>
|
||||
<div class="uk-margin-medium-top">
|
||||
<a href="https://enermaps.eu/" target="_blank" class="uk-button uk-button-text uk-text-bolder custom-text">Project Website</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-flex uk-flex-column uk-flex-middle">
|
||||
<div class="icon-wrapper uk-flex uk-flex-center uk-flex-middle">
|
||||
<img src="assets/connect-assets/home/map.svg">
|
||||
</div>
|
||||
<div class="uk-margin-medium-top">
|
||||
<a href="https://lab.idiap.ch/enermaps/" target="_blank" class="uk-button uk-button-text uk-text-bolder custom-text">Open Data Management Tool</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-flex uk-flex-column uk-flex-middle">
|
||||
<div class="icon-wrapper uk-flex uk-flex-center uk-flex-middle">
|
||||
<img src="assets/connect-assets/home/wiki.svg">
|
||||
</div>
|
||||
<div class="uk-margin-medium-top">
|
||||
<a href="https://enermaps-wiki.herokuapp.com/" target="_blank" class="uk-button uk-button-text uk-text-bolder custom-text">Wiki</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-flex uk-flex-column uk-flex-middle">
|
||||
<div class="icon-wrapper uk-flex uk-flex-center uk-flex-middle">
|
||||
<img src="assets/connect-assets/home/training.svg">
|
||||
</div>
|
||||
<div class="uk-margin-medium-top">
|
||||
<a href="https://www.youtube.com/watch?v=fHBeaKWS8Ss&list=PLhwt57nEFA8n295WJq_ickGCIBYHDcjm3&ab_channel=REVOLVE" target="_blank" class="uk-button uk-button-text uk-text-bolder custom-text">Training</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-container> -->
|
||||
|
||||
<div *ngIf="communityId && communityInfo && isRouteEnabled('/organizations')"
|
||||
class="uk-container uk-container-large">
|
||||
<affiliations [longView]="false" [getAffiliationsFromAPI]="true" [communityFirstPage]="true"></affiliations>
|
||||
</div>
|
||||
|
||||
<div *ngIf="(communityId == null || communityId == '' ) && !communityInfo"
|
||||
class="uk-section tm-middle uk-container uk-margin-large-top ">
|
||||
<div class="uk-container uk-margin-bottom uk-grid">
|
||||
<div class="uk-width-expand uk-padding-remove">
|
||||
<article class="uk-article ">
|
||||
<div class="uk-child-width-1-6@l uk-child-width-1-6@m uk-child-width-1-3@s uk-text-center uk-alert uk-alert-primary">
|
||||
No community chosen
|
||||
</div>
|
||||
<div *ngIf="communityId">
|
||||
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<error *ngIf="communityInfo && community && isPrivate()" [page]="community.status == 'manager'?'-1':null">
|
||||
</error>
|
||||
</div>
|
||||
|
|
|
@ -1,42 +1,148 @@
|
|||
import {Component, ElementRef, Input} from '@angular/core';
|
||||
import {ChangeDetectorRef, Component, ElementRef, Inject, Input, Renderer2, ViewChild} from '@angular/core';
|
||||
import {ActivatedRoute, Router} from '@angular/router';
|
||||
import {Location} from '@angular/common';
|
||||
import {DOCUMENT, Location} from '@angular/common';
|
||||
import {Meta, Title} from '@angular/platform-browser';
|
||||
import {EnvProperties} from '../openaireLibrary/utils/properties/env-properties';
|
||||
import {CommunityService} from "../openaireLibrary/connect/community/community.service";
|
||||
import {ConfigurationService} from '../openaireLibrary/utils/configuration/configuration.service';
|
||||
import {PiwikService} from '../openaireLibrary/utils/piwik/piwik.service';
|
||||
import {User} from '../openaireLibrary/login/utils/helper.class';
|
||||
import {SearchZenodoCommunitiesService} from '../openaireLibrary/connect/zenodoCommunities/searchZenodoCommunities.service';
|
||||
import {ZenodoCommunitiesService} from '../openaireLibrary/connect/zenodoCommunities/zenodo-communities.service';
|
||||
import {Session, User} from '../openaireLibrary/login/utils/helper.class';
|
||||
import {StatisticsForDashboardComponent} from '../statistics/statistics.component';
|
||||
import {StringUtils} from '../openaireLibrary/utils/string-utils.class';
|
||||
import {SearchCommunityDataprovidersService} from "../openaireLibrary/connect/contentProviders/searchDataproviders.service";
|
||||
import {SearchCommunityProjectsService} from "../openaireLibrary/connect/projects/searchProjects.service";
|
||||
import {SearchResearchResultsService} from "../openaireLibrary/services/searchResearchResults.service";
|
||||
import {RouterHelper} from "../openaireLibrary/utils/routerHelper.class";
|
||||
import {SEOService} from "../openaireLibrary/sharedComponents/SEO/SEO.service";
|
||||
import {UserManagementService} from "../openaireLibrary/services/user-management.service";
|
||||
import {SearchCustomFilter} from "../openaireLibrary/searchPages/searchUtils/searchUtils.class";
|
||||
import {FetchResearchResults} from "../openaireLibrary/utils/fetchEntitiesClasses/fetchResearchResults.class";
|
||||
import {ErrorCodes} from "../openaireLibrary/utils/properties/errorCodes";
|
||||
import {Subscription} from "rxjs";
|
||||
import {properties} from "../../environments/environment";
|
||||
import {ConnectHelper} from "../openaireLibrary/connect/connectHelper";
|
||||
import {PluginsService} from "../openaireLibrary/services/plugins.service";
|
||||
import {PluginTemplate} from "../openaireLibrary/utils/entities/adminTool/pluginTemplate";
|
||||
import {Plugin} from "../openaireLibrary/utils/entities/adminTool/plugin";
|
||||
import {PluginUtils} from "../openaireLibrary/dashboard/plugins/utils/pluginUtils";
|
||||
import {Filter} from "../openaireLibrary/searchPages/searchUtils/searchHelperClasses.class";
|
||||
import {OpenaireEntities} from '../openaireLibrary/utils/properties/searchFields';
|
||||
|
||||
@Component({
|
||||
selector: 'community',
|
||||
templateUrl: 'community.component.html',
|
||||
|
||||
styles: [
|
||||
`
|
||||
#mytabs .uk-tab::before {
|
||||
border-bottom: none;
|
||||
}
|
||||
#mytabs::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
}
|
||||
`
|
||||
]
|
||||
})
|
||||
|
||||
export class CommunityComponent {
|
||||
public url: string = null;
|
||||
|
||||
public projectTotal = null;
|
||||
public contentProviderTotal = null;
|
||||
|
||||
public projectsCalculated: boolean = false;
|
||||
public contentProvidersCalculated: boolean = false;
|
||||
|
||||
params: any = {};
|
||||
properties: EnvProperties = properties;
|
||||
|
||||
public errorCodes: ErrorCodes = new ErrorCodes();
|
||||
// Request results of each tab only the one time (first time tab is clicked)
|
||||
private reloadPublications: boolean = true;
|
||||
private reloadDatasets: boolean = true;
|
||||
private reloadSoftware: boolean = true;
|
||||
private reloadOrps: boolean = true;
|
||||
private reloadFeaturedDatasets: boolean = true;
|
||||
|
||||
// Variables for publications, research data, projects, content providers, related content providers tabs
|
||||
public fetchPublications: FetchResearchResults;
|
||||
public fetchDatasets: FetchResearchResults;
|
||||
public fetchSoftware: FetchResearchResults;
|
||||
public fetchOrps: FetchResearchResults;
|
||||
public fetchFeaturedDatasets: FetchResearchResults;
|
||||
public searchNumber: number = 5;
|
||||
|
||||
@Input() communityId = null;
|
||||
public community = null;
|
||||
|
||||
public portal = null;
|
||||
subscriptions: Subscription[] = [];
|
||||
public communityInfo = null;
|
||||
|
||||
public showLoading: boolean = true;
|
||||
masterZenodoCommunity = null;
|
||||
zenodoCommunityIdS = [];
|
||||
showAllDescription = false;
|
||||
public thresholdDescription: number = 500;
|
||||
public descriptionDiff: number = 100;
|
||||
|
||||
page = 1;
|
||||
size = 5;
|
||||
|
||||
subscribers: number = 0;
|
||||
|
||||
subs: Subscription[] = [];
|
||||
|
||||
displayedAllSubjects = [];
|
||||
displayedSubjects = [];
|
||||
displayedSdg = [];
|
||||
displayedFos = [];
|
||||
|
||||
@ViewChild(StatisticsForDashboardComponent) statistics: StatisticsForDashboardComponent = null;
|
||||
public activeTab = "summary";
|
||||
public show: string = 'overview';
|
||||
public analyticsActiveTab: string = "";
|
||||
public analyticsChecked: boolean = false;
|
||||
|
||||
searchLinkToResults: string = null;
|
||||
|
||||
searchLinkToProjects: string = null;
|
||||
searchLinkToDataProviders: string = null;
|
||||
searchLinkToAdvancedResults: string = null;
|
||||
shareInZenodoPage: string = null;
|
||||
public routerHelper: RouterHelper = new RouterHelper();
|
||||
private user: User;
|
||||
public showLoading = true;
|
||||
pluginTemplates: PluginTemplate[] = [];
|
||||
plugins: Plugin[] = [];
|
||||
public pluginsByPlacement: Map<string,{plugin:Plugin, template:PluginTemplate}[]> = new Map();
|
||||
public pluginUtils = new PluginUtils();
|
||||
selectedEntity = 'result';
|
||||
selectedEntitySimpleUrl;
|
||||
selectedEntityAdvancedUrl;
|
||||
resultTypes: Filter = {
|
||||
values: [],
|
||||
filterId: "type",
|
||||
countSelectedValues: 0,
|
||||
filterType: 'checkbox',
|
||||
originalFilterId: "",
|
||||
valueIsExact: true,
|
||||
title: "Type",
|
||||
filterOperator: "or"
|
||||
};
|
||||
showPublications: boolean = false;
|
||||
showDatasets: boolean = false;
|
||||
showSoftware: boolean = false;
|
||||
showOrp: boolean = false;
|
||||
showProjects: boolean = false;
|
||||
showDataProviders: boolean = false;
|
||||
keyword: string = "";
|
||||
customFilter;
|
||||
placeholderText = "Search by title, author, abstract, DOI, orcid... ";
|
||||
resultsQuickFilter: { filter: Filter, selected: boolean, filterId: string, value: string } = {
|
||||
filter: null,
|
||||
selected: true,
|
||||
filterId: "resultbestaccessright",
|
||||
value: "Open Access"
|
||||
};
|
||||
disableSelect: boolean = true;
|
||||
openaireEntities= OpenaireEntities;
|
||||
piwikSiteId;
|
||||
|
||||
constructor(
|
||||
private element: ElementRef,
|
||||
|
@ -48,10 +154,16 @@ export class CommunityComponent {
|
|||
private _piwikService: PiwikService,
|
||||
private config: ConfigurationService,
|
||||
private _communityService: CommunityService,
|
||||
|
||||
private _searchCommunityDataprovidersService: SearchCommunityDataprovidersService,
|
||||
private _searchCommunityProjectsService: SearchCommunityProjectsService,
|
||||
private _searchResearchResultsService: SearchResearchResultsService,
|
||||
private _searchZenodoCommunitiesService: SearchZenodoCommunitiesService,
|
||||
private _zenodoCommunitieService: ZenodoCommunitiesService,
|
||||
private seoService: SEOService,
|
||||
private userManagementService: UserManagementService,
|
||||
private _pluginsService:PluginsService) {
|
||||
private _renderer2: Renderer2,
|
||||
private cdr: ChangeDetectorRef,
|
||||
@Inject(DOCUMENT) private _document: Document) {
|
||||
|
||||
var description = "OpenAIRE - Connect, Community Dashboard, research community";
|
||||
var title = "OpenAIRE - Connect";
|
||||
|
@ -60,88 +172,513 @@ export class CommunityComponent {
|
|||
this._meta.updateTag({content: title}, "property='og:title'");
|
||||
this._title.setTitle(title);
|
||||
|
||||
this.fetchPublications = new FetchResearchResults(this._searchResearchResultsService);
|
||||
this.fetchDatasets = new FetchResearchResults(this._searchResearchResultsService);
|
||||
this.fetchSoftware = new FetchResearchResults(this._searchResearchResultsService);
|
||||
this.fetchOrps = new FetchResearchResults(this._searchResearchResultsService);
|
||||
this.fetchFeaturedDatasets = new FetchResearchResults(this._searchResearchResultsService);
|
||||
|
||||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.url = properties.domain + properties.baseLink + this._router.url;
|
||||
this.searchLinkToResults = this.properties.searchLinkToResults;
|
||||
this.searchLinkToProjects = this.properties.searchLinkToProjects;
|
||||
this.searchLinkToDataProviders = this.properties.searchLinkToDataProviders;
|
||||
this.searchLinkToAdvancedResults = this.properties.searchLinkToAdvancedResults;
|
||||
this.shareInZenodoPage = this.properties.shareInZenodoPage;
|
||||
this.url = properties.domain + properties.baseLink + this._router.url;
|
||||
this.seoService.createLinkForCanonicalURL(this.url, false);
|
||||
this._meta.updateTag({content: this.url}, "property='og:url'");
|
||||
|
||||
this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => {
|
||||
this.subs.push(this.userManagementService.getUserInfo().subscribe(user => {
|
||||
this.user = user;
|
||||
this.subscriptions.push(this._communityService.getCommunityAsObservable().subscribe(
|
||||
community => {
|
||||
this.community = community;
|
||||
if(community && !ConnectHelper.isPrivate(community, this.user)) {
|
||||
|
||||
this._meta.updateTag({content: community.description}, "name='description'");
|
||||
this._meta.updateTag({content: community.description}, "property='og:description'");
|
||||
this._meta.updateTag({content: community.displayTitle}, "property='og:title'");
|
||||
this._title.setTitle(community.displayTitle);
|
||||
this.subscriptions.push(this._piwikService.trackView(this.properties, community.displayTitle).subscribe());
|
||||
this.getPagePlugins();
|
||||
}
|
||||
}));
|
||||
}));
|
||||
this.customFilter = new SearchCustomFilter("Community", "communityId", this.communityId, "");
|
||||
this.subs.push(this._communityService.getCommunityAsObservable().subscribe(
|
||||
community => {
|
||||
this.community = community;
|
||||
if(community && !ConnectHelper.isPrivate(community, this.user)) {
|
||||
this.displayedSubjects = community.subjects;
|
||||
this.displayedSdg = community.sdg;
|
||||
this.displayedFos = community.fos;
|
||||
this.displayedSubjects.forEach(element => {
|
||||
this.displayedAllSubjects.push({value: element, type: 'resultsubject'});
|
||||
});
|
||||
this.displayedSdg.forEach(element => {
|
||||
this.displayedAllSubjects.push({value: element, type: 'sdg'});
|
||||
});
|
||||
this.displayedFos.forEach(element => {
|
||||
this.displayedAllSubjects.push({value: element, type: 'fos'});
|
||||
});
|
||||
if (community.description != null && (community.description.length - this.thresholdDescription <= this.descriptionDiff)) {
|
||||
this.thresholdDescription = community.description.length;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
getPagePlugins() {
|
||||
this.showLoading = true;
|
||||
this.subscriptions.push(this._pluginsService.getPluginTemplatesByPageRoute(this.properties.adminToolsAPIURL, this.community.communityId, this._router.url.split('?')[0] ).subscribe(
|
||||
templates => {
|
||||
this.pluginTemplates = templates;
|
||||
|
||||
this.subscriptions.push(this._pluginsService.getPluginsByPageRoute(this.properties.adminToolsAPIURL, this.community.communityId, this._router.url.split('?')[0]).subscribe(
|
||||
plugins => {
|
||||
this.plugins = plugins;
|
||||
this.pluginsByPlacement = new Map();
|
||||
for(let pos of this.pluginUtils.placementsOptions){
|
||||
this.pluginsByPlacement.set(pos.value,[]);
|
||||
}
|
||||
let self = this;
|
||||
this.pluginTemplates.forEach(_ => {
|
||||
let plugin:Plugin = null;
|
||||
if(!_.custom) {
|
||||
for (let pl of plugins) {
|
||||
if (pl.templateId == _._id) {
|
||||
plugin = pl;
|
||||
}
|
||||
}
|
||||
if (!plugin) {
|
||||
plugin = new Plugin("", "", _);
|
||||
this.plugins.push(plugin);
|
||||
}
|
||||
plugin.object = PluginUtils.initializeObjectAndCompare(_.code, plugin.object)
|
||||
this.pluginsByPlacement.get(plugin.placement).push({plugin: plugin, template: _});
|
||||
}
|
||||
});
|
||||
//add custom plugins in the list
|
||||
this.plugins.forEach(_ => {
|
||||
|
||||
if(_.custom == true){
|
||||
let customTemplate = null;
|
||||
this.pluginTemplates.forEach(template => {
|
||||
if (_.templateId == template._id) {
|
||||
customTemplate = template;
|
||||
}
|
||||
});
|
||||
if(customTemplate && customTemplate.custom){
|
||||
this.pluginsByPlacement.get(customTemplate.placement).push({plugin: _, template: customTemplate});
|
||||
}
|
||||
if (this.properties.environment == "development") {
|
||||
this.params = {communityId: community.communityId};
|
||||
}
|
||||
this._meta.updateTag({content: community.description}, "name='description'");
|
||||
this._meta.updateTag({content: community.description}, "property='og:description'");
|
||||
this._meta.updateTag({content: community.title}, "property='og:title'");
|
||||
this._title.setTitle(community.title);
|
||||
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
this.subs.push(this.config.communityInformationState.subscribe(portal => {
|
||||
if(portal && portal.piwik) {
|
||||
this.piwikSiteId = portal.piwik;
|
||||
this.subs.push(this._piwikService.trackView(this.properties, community.title, this.piwikSiteId).subscribe());
|
||||
}
|
||||
});
|
||||
|
||||
for(let placement of this.pluginUtils.placementsOptions){
|
||||
this.pluginsByPlacement.get(placement.value).sort(function (a, b) {
|
||||
return a.plugin.order - b.plugin.order;
|
||||
})
|
||||
}));
|
||||
}
|
||||
if (this.community.zenodoCommunity) {
|
||||
this.subs.push(this._zenodoCommunitieService.getZenodoCommunityById(this.properties, this.properties.zenodoCommunities + this.community.zenodoCommunity, null).subscribe(
|
||||
result => {
|
||||
this.masterZenodoCommunity = result;
|
||||
},
|
||||
error => {
|
||||
this.handleError("Error getting Master Zenodo community with id: " + this.community.zenodoCommunity, error);
|
||||
}
|
||||
));
|
||||
}
|
||||
this.subs.push(this._searchZenodoCommunitiesService.searchZCommunities(this.properties, this.communityId).subscribe(
|
||||
result => {
|
||||
this.zenodoCommunityIdS = result;
|
||||
},
|
||||
error => {
|
||||
this.handleError("Error getting list of zenodo communities for community with openaire id: " + this.communityId, error);
|
||||
}
|
||||
this.showLoading = false;
|
||||
},
|
||||
error => {}));
|
||||
));
|
||||
}
|
||||
}));
|
||||
|
||||
this.countResearchResults("publication");
|
||||
this.countResearchResults("dataset");
|
||||
this.countResearchResults("software");
|
||||
this.countResearchResults("other");
|
||||
if(this.communityId == "enermaps"){
|
||||
this.countResearchResults("dataset", "enermaps::selection" );
|
||||
}
|
||||
|
||||
this.subs.push(this._searchCommunityProjectsService.countTotalProjects(this.properties, this.communityId).subscribe(
|
||||
projectTotal => {
|
||||
this.projectTotal = projectTotal;
|
||||
},
|
||||
error => {}));
|
||||
error => {
|
||||
this.handleError("Error getting number of projects for community with id: " + this.communityId, error);
|
||||
},
|
||||
() => {
|
||||
this.projectsCalculated = true;
|
||||
}
|
||||
));
|
||||
|
||||
this.subs.push(this._searchCommunityDataprovidersService.countTotalDataproviders(this.properties, this.communityId).subscribe(
|
||||
contentProviderTotal => {
|
||||
this.contentProviderTotal = contentProviderTotal;
|
||||
//console.log(contentProviderTotal);
|
||||
},
|
||||
error => {
|
||||
this.handleError("Error getting number of content providers for community with id: " + this.communityId, error);
|
||||
},
|
||||
() => {
|
||||
this.contentProvidersCalculated = true;
|
||||
}
|
||||
));
|
||||
this.subs.push(this.config.communityInformationState.subscribe(
|
||||
res => {
|
||||
this.communityInfo = res;
|
||||
|
||||
// loading twitter widget script conditionally
|
||||
if (properties.environment == "development") {
|
||||
if (this.communityInfo && this.communityInfo.twitterAccount) {
|
||||
let script = this._renderer2.createElement('script');
|
||||
script.charset = "utf-8";
|
||||
script.src = "https://platform.twitter.com/widgets.js";
|
||||
this._renderer2.appendChild(this._document.body, script);
|
||||
}
|
||||
}
|
||||
},
|
||||
error => {
|
||||
//console.log(error)
|
||||
this.handleError("Error getting community with id: " + this.communityId, error);
|
||||
}
|
||||
));
|
||||
this.subs.push(this.config.communityInformationState.subscribe(data => {
|
||||
if (data) {
|
||||
var showEntity = {};
|
||||
for (var i = 0; i < data['entities'].length; i++) {
|
||||
showEntity["" + data['entities'][i]["pid"] + ""] = data['entities'][i]["isEnabled"];
|
||||
}
|
||||
this.showPublications = !!showEntity["publication"];
|
||||
this.showDatasets = !!showEntity["dataset"];
|
||||
this.showSoftware = !!showEntity["software"];
|
||||
this.showOrp = !!showEntity["orp"];
|
||||
this.showProjects = !!showEntity["project"];
|
||||
this.showDataProviders = !!showEntity["datasource"];
|
||||
this.resultTypes.values = [];
|
||||
if (this.showPublications) {
|
||||
this.resultTypes.values.push({
|
||||
name: this.openaireEntities.PUBLICATIONS,
|
||||
id: "publications",
|
||||
selected: false,
|
||||
number: 0
|
||||
});
|
||||
}
|
||||
if (this.showDatasets) {
|
||||
this.resultTypes.values.push({
|
||||
name: this.openaireEntities.DATASETS,
|
||||
id: "datasets",
|
||||
selected: false,
|
||||
number: 0
|
||||
});
|
||||
}
|
||||
if (this.showSoftware) {
|
||||
this.resultTypes.values.push({
|
||||
name: this.openaireEntities.SOFTWARE,
|
||||
id: "software",
|
||||
selected: false,
|
||||
number: 0
|
||||
});
|
||||
}
|
||||
if (this.showOrp) {
|
||||
this.resultTypes.values.push({name: this.openaireEntities.OTHER, id: "other", selected: false, number: 0});
|
||||
}
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
private searchPublications(page: number, size: number) {
|
||||
this.setActiveTab("publication");
|
||||
|
||||
if (this.reloadPublications &&
|
||||
(this.fetchPublications.searchUtils.status == this.errorCodes.LOADING ||
|
||||
(this.fetchPublications.searchUtils.status == this.errorCodes.DONE && this.fetchPublications.searchUtils.totalResults > 0)
|
||||
)
|
||||
) {
|
||||
this.fetchPublications.getResultsForCommunity("publication", this.communityId, page, size, this.properties);
|
||||
}
|
||||
this.reloadPublications = false;
|
||||
}
|
||||
|
||||
private searchDatasets(page: number, size: number) {
|
||||
this.setActiveTab("dataset");
|
||||
|
||||
if (this.reloadDatasets &&
|
||||
(this.fetchDatasets.searchUtils.status == this.errorCodes.LOADING ||
|
||||
(this.fetchDatasets.searchUtils.status == this.errorCodes.DONE && this.fetchDatasets.searchUtils.totalResults > 0)
|
||||
)
|
||||
) {
|
||||
this.fetchDatasets.getResultsForCommunity("dataset", this.communityId, page, size, this.properties);
|
||||
}
|
||||
this.reloadDatasets = false;
|
||||
}
|
||||
|
||||
private searchSoftware(page: number, size: number) {
|
||||
this.setActiveTab("software");
|
||||
|
||||
if (this.reloadSoftware &&
|
||||
(this.fetchSoftware.searchUtils.status == this.errorCodes.LOADING ||
|
||||
(this.fetchSoftware.searchUtils.status == this.errorCodes.DONE && this.fetchSoftware.searchUtils.totalResults > 0)
|
||||
)
|
||||
) {
|
||||
this.fetchSoftware.getResultsForCommunity("software", this.communityId, page, size, this.properties);
|
||||
}
|
||||
this.reloadSoftware = false;
|
||||
}
|
||||
|
||||
private searchOrps(page: number, size: number) {
|
||||
this.setActiveTab("other");
|
||||
|
||||
if (this.reloadOrps &&
|
||||
(this.fetchOrps.searchUtils.status == this.errorCodes.LOADING ||
|
||||
(this.fetchOrps.searchUtils.status == this.errorCodes.DONE && this.fetchOrps.searchUtils.totalResults > 0)
|
||||
)
|
||||
) {
|
||||
this.fetchOrps.getResultsForCommunity("other", this.communityId, page, size, this.properties);
|
||||
}
|
||||
this.reloadOrps = false;
|
||||
}
|
||||
private searchFeaturedDatasets(page: number, size: number) {
|
||||
this.setActiveTab("enermaps");
|
||||
if (this.reloadFeaturedDatasets &&
|
||||
(this.fetchFeaturedDatasets.searchUtils.status == this.errorCodes.LOADING ||
|
||||
(this.fetchFeaturedDatasets.searchUtils.status == this.errorCodes.DONE && this.fetchFeaturedDatasets.searchUtils.totalResults > 0)
|
||||
)
|
||||
) {
|
||||
this.fetchFeaturedDatasets.getAllResultsForCommunity("dataset", this.communityId, page, size, this.properties, "enermaps::selection");
|
||||
// console.log(this.fetchFeaturedDatasets);
|
||||
}
|
||||
this.reloadFeaturedDatasets = false;
|
||||
}
|
||||
|
||||
private countResearchResults(resultType: string, contextId = null) {
|
||||
let fetch: FetchResearchResults;
|
||||
|
||||
if (resultType == "publication") {
|
||||
fetch = this.fetchPublications;
|
||||
} else if (resultType == "dataset" && !contextId) {
|
||||
fetch = this.fetchDatasets;
|
||||
} else if (resultType == "software") {
|
||||
fetch = this.fetchSoftware;
|
||||
} else if (resultType == "other") {
|
||||
fetch = this.fetchOrps;
|
||||
} else if (resultType == "dataset" && contextId) {
|
||||
fetch = this.fetchFeaturedDatasets;
|
||||
this.fetchFeaturedDatasets.getAllResultsForCommunity("dataset", this.communityId, 0, 0, this.properties, contextId);
|
||||
return;
|
||||
}
|
||||
fetch.getNumForCommunity(resultType, this.communityId, this.properties, contextId);
|
||||
}
|
||||
|
||||
public ngOnDestroy() {
|
||||
for (let sub of this.subs) {
|
||||
sub.unsubscribe();
|
||||
}
|
||||
this.fetchPublications.clearSubscriptions();
|
||||
this.fetchDatasets.clearSubscriptions();
|
||||
this.fetchOrps.clearSubscriptions();
|
||||
this.fetchSoftware.clearSubscriptions();
|
||||
this.fetchFeaturedDatasets.clearSubscriptions();
|
||||
}
|
||||
|
||||
isEntityEnabled(entity: string) {
|
||||
return this.communityInfo.entities.some(x => x['pid'] == entity && x['isEnabled'] === true);
|
||||
}
|
||||
|
||||
isRouteEnabled(route: string) {
|
||||
return this.communityInfo.pages.some(x => x['route'] == route && x['isEnabled'] === true);
|
||||
}
|
||||
|
||||
showInvite() {
|
||||
return this.isManager();
|
||||
}
|
||||
|
||||
isManager() {
|
||||
if (!this.user) {
|
||||
return false;
|
||||
}
|
||||
var email = this.user.email;
|
||||
var index = -1;
|
||||
if (email && this.community != null && this.community.managers != null) {
|
||||
index = this.community.managers.indexOf(email);
|
||||
}
|
||||
return Session.isPortalAdministrator(this.user) || Session.isCommunityCurator(this.user) || index != -1;
|
||||
}
|
||||
|
||||
private handleError(message: string, error) {
|
||||
console.error("Community (component): " + message, error);
|
||||
}
|
||||
|
||||
getSearchPlaceHolder() {
|
||||
var entities = [];
|
||||
if (this.isEntityEnabled("publication")) {
|
||||
entities.push("publications");
|
||||
}
|
||||
if (this.isEntityEnabled("dataset")) {
|
||||
entities.push("research data");
|
||||
}
|
||||
if (this.isEntityEnabled("software")) {
|
||||
entities.push("software");
|
||||
}
|
||||
if (this.isEntityEnabled("orp")) {
|
||||
entities.push("other research products");
|
||||
}
|
||||
return "Search" + ((entities.length > 0) ? (" for " + entities.join(', ') + "...") : "");
|
||||
}
|
||||
|
||||
countOtherGraphs() {
|
||||
var count = 0;
|
||||
if (this.statistics && this.statistics.allowedEntities) {
|
||||
for (var entity of this.statistics.allowedEntities) {
|
||||
if (this.statistics.statisticsSum[entity].total > 0 && this.statistics.allowedCharts[entity].length > 0 && this.activeTab != entity) {
|
||||
count += this.statistics.allowedCharts[entity].length;
|
||||
}
|
||||
}
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
createParams(param) {
|
||||
return StringUtils.quote(StringUtils.URIEncode(param));
|
||||
}
|
||||
|
||||
private setActiveTab(entityType: string) {
|
||||
if (entityType == "other") {
|
||||
this.activeTab = "orp";
|
||||
} else {
|
||||
this.activeTab = entityType;
|
||||
}
|
||||
}
|
||||
|
||||
public getParamsForSearchLink(type: string = "") {
|
||||
if (type) {
|
||||
return this.routerHelper.createQueryParams(['type', 'qf', 'sortBy'], [type, 'false', 'resultdateofacceptance,descending']);
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
private getEntityName(entityType: string, plural: boolean, full: boolean): string {
|
||||
if (entityType == "publication") {
|
||||
return "publication" + (plural ? "s" : "");
|
||||
} else if (entityType == "dataset") {
|
||||
return (full ? "research data" : ("dataset" + (plural ? "s" : "")));
|
||||
} else if (entityType == "software") {
|
||||
return "software";
|
||||
} else if (entityType == "other") {
|
||||
return (full ? ("other research product" + (plural ? "s" : "")) : "other");
|
||||
}
|
||||
}
|
||||
|
||||
public buildProjectsTooltip(): string {
|
||||
let tooltipContent: string = "<div>";
|
||||
|
||||
if (this.projectTotal != null && this.projectTotal > 0 && this.isEntityEnabled('project') && this.isRouteEnabled(this.searchLinkToProjects)) {
|
||||
tooltipContent += "<span class='uk-text-bold'>Projects</span>";
|
||||
}
|
||||
|
||||
tooltipContent += " have been selected as relevant for your community by the gateway curators.";
|
||||
tooltipContent += "</div>";
|
||||
|
||||
return tooltipContent;
|
||||
}
|
||||
|
||||
public buildContentProvidersTooltip(): string {
|
||||
let tooltipContent: string = "<div>";
|
||||
|
||||
if (this.contentProviderTotal != null && this.contentProviderTotal > 0 && this.isEntityEnabled('datasource') && this.isRouteEnabled(this.searchLinkToDataProviders)) {
|
||||
tooltipContent += "<span class='uk-text-bold'>Content Providers</span>";
|
||||
}
|
||||
|
||||
tooltipContent += " have been selected as relevant for your community by the gateway curators.";
|
||||
tooltipContent += "</div>";
|
||||
|
||||
return tooltipContent;
|
||||
}
|
||||
|
||||
public buildZenodoCommunitiesTooltip(): string {
|
||||
let tooltipContent: string = "<div>";
|
||||
|
||||
tooltipContent += "<span class='uk-text-bold'>Zenodo</span> is a catch-all repository for OpenAIRE.";
|
||||
tooltipContent += "<div class='uk-margin-small-top'>A <span class='uk-text-bold'>Zenodo Community</span> is created and curated by Zenodo users.</div>";
|
||||
tooltipContent += "</div>";
|
||||
|
||||
return tooltipContent;
|
||||
}
|
||||
|
||||
entityChanged($event) {
|
||||
this.selectedEntity = $event.entity;
|
||||
this.selectedEntitySimpleUrl = $event.simpleUrl;
|
||||
this.selectedEntityAdvancedUrl = $event.advancedUrl;
|
||||
if (this.selectedEntity == 'result') {
|
||||
this.placeholderText = "Search by title, author, abstract, DOI, orcid... ";
|
||||
} else if (this.selectedEntity == 'project') {
|
||||
this.placeholderText = "Search by project title, grant id, funder...";
|
||||
} else if (this.selectedEntity == 'dataprovider') {
|
||||
this.placeholderText = "Search by name...";
|
||||
} else {
|
||||
this.placeholderText = "Search community content";
|
||||
}
|
||||
}
|
||||
|
||||
goTo(simple: boolean) {
|
||||
let url = (simple) ? this.selectedEntitySimpleUrl : this.selectedEntityAdvancedUrl;
|
||||
let parameterNames = [];
|
||||
let parameterValues = [];
|
||||
|
||||
if (this.selectedEntity == "result" && this.resultsQuickFilter && this.resultsQuickFilter.selected) {
|
||||
parameterNames.push(this.resultsQuickFilter.filterId);
|
||||
parameterValues.push('"'+ encodeURIComponent(this.resultsQuickFilter.value)+'"');
|
||||
}
|
||||
|
||||
if (this.keyword.length > 0) {
|
||||
parameterNames.push("fv0");
|
||||
parameterValues.push(this.keyword);
|
||||
parameterNames.push("f0");
|
||||
parameterValues.push("q");
|
||||
}
|
||||
this._router.navigate([url], {queryParams: this.routerHelper.createQueryParams(parameterNames, parameterValues)});
|
||||
}
|
||||
|
||||
public countSubscribersEvent($event) {
|
||||
this.subscribers = $event.value;
|
||||
}
|
||||
|
||||
public checkStatistics(type: string) {
|
||||
return !!(this.isEntityEnabled(type)
|
||||
&& this.statistics && this.statistics.statisticsDisplay && this.statistics.statisticsDisplay.isActive
|
||||
&& this.statistics.statisticsSum && this.statistics.statisticsSum[type] && this.statistics.statisticsSum[type].total > 0
|
||||
&&
|
||||
(this.statistics.statisticsDisplay.entities[type].numbers.map['total']['showInMonitor']
|
||||
|| this.statistics.statisticsDisplay.entities[type].numbers.map['project']['showInMonitor']
|
||||
|| this.statistics.statisticsDisplay.entities[type].numbers.map['open']['showInMonitor']
|
||||
|| this.statistics.statisticsDisplay.entities[type].numbers.map['closed']['showInMonitor']
|
||||
|| this.statistics.statisticsDisplay.entities[type].numbers.map['embargo']['showInMonitor']
|
||||
|| this.statistics.statisticsDisplay.entities[type].numbers.map['restricted']['showInMonitor']
|
||||
|| (this.statistics.allowedEntitiesMode['showInMonitor']
|
||||
&& this.statistics.allowedChartsMode['showInMonitor'][type]
|
||||
&& this.statistics.allowedChartsMode['showInMonitor'][type].length > 0)));
|
||||
}
|
||||
|
||||
public initializeAnalyticsActiveTab() {
|
||||
if (!this.analyticsChecked) {
|
||||
if (this.checkStatistics("publication")) {
|
||||
this.analyticsActiveTab = "publication";
|
||||
} else if (this.checkStatistics("dataset")) {
|
||||
this.analyticsActiveTab = "dataset";
|
||||
} else if (this.checkStatistics("software")) {
|
||||
this.analyticsActiveTab = "software";
|
||||
} else if (this.checkStatistics("orp")) {
|
||||
this.analyticsActiveTab = "orp";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public showAnalyticsTab() {
|
||||
this.initializeAnalyticsActiveTab();
|
||||
return this.analyticsActiveTab;
|
||||
}
|
||||
|
||||
public onSelectActiveTab(activeTabId) {
|
||||
if (this.activeTab != "activaTabId") { // tab really changed
|
||||
if (activeTabId == 'summary') {
|
||||
this.activeTab = 'summary';
|
||||
} else if (activeTabId == 'publications') {
|
||||
this.show = 'overview';
|
||||
this.searchPublications(1, this.searchNumber);
|
||||
} else if (activeTabId == 'datasets') {
|
||||
this.show = 'overview';
|
||||
this.searchDatasets(1, this.searchNumber);
|
||||
} else if (activeTabId == 'software') {
|
||||
this.show = 'overview';
|
||||
this.searchSoftware(1, this.searchNumber);
|
||||
} else if (activeTabId == 'other') {
|
||||
this.show = 'overview';
|
||||
this.searchOrps(1, this.searchNumber);
|
||||
} else if (activeTabId == 'analytics') {
|
||||
this.show = 'analysis';
|
||||
this.activeTab = 'analytics';
|
||||
this.analyticsChecked = true;
|
||||
} else if (activeTabId == 'mapping') {
|
||||
this.show = 'mapping';
|
||||
this.activeTab = 'mapping';
|
||||
} else if (activeTabId == 'enermaps') {
|
||||
this.show = 'enermaps';
|
||||
this.activeTab = 'enermaps';
|
||||
this.searchFeaturedDatasets(1, this.fetchFeaturedDatasets.searchUtils.totalResults);
|
||||
} else if (activeTabId == 'twitter') {
|
||||
this.show = 'twitter';
|
||||
this.activeTab = 'twitter';
|
||||
}
|
||||
}
|
||||
}
|
||||
isPrivate(){
|
||||
return ConnectHelper.isPrivate(this.community, this.user);
|
||||
}
|
||||
|
||||
disableSelectChange(event: boolean) {
|
||||
this.disableSelect = event;
|
||||
this.cdr.detectChanges();
|
||||
}
|
||||
|
||||
public updatePage(event) {
|
||||
this.page = event.value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,58 +12,47 @@ import {InviteModule} from '../utils/subscribe/invite/invite.module';
|
|||
import {ManageModule} from '../openaireLibrary/utils/manage/manage.module';
|
||||
|
||||
import {StatisticsModule} from "../statistics/statistics.module";
|
||||
import {
|
||||
ZenodoCommunitiesServiceModule
|
||||
} from '../openaireLibrary/connect/zenodoCommunities/zenodo-communitiesService.module';
|
||||
|
||||
import {SearchZenodoCommunitiesServiceModule} from '../openaireLibrary/connect/zenodoCommunities/searchZenodoCommunitiesService.module';
|
||||
import {ZenodoCommunitiesServiceModule} from '../openaireLibrary/connect/zenodoCommunities/zenodo-communitiesService.module';
|
||||
import {SearchFormModule} from '../openaireLibrary/searchPages/searchUtils/searchForm.module';
|
||||
import {
|
||||
SearchDataprovidersServiceModule
|
||||
} from "../openaireLibrary/connect/contentProviders/searchDataprovidersService.module";
|
||||
import {SearchDataprovidersServiceModule} from "../openaireLibrary/connect/contentProviders/searchDataprovidersService.module";
|
||||
import {SearchProjectsServiceModule} from '../openaireLibrary/connect/projects/searchProjectsService.module';
|
||||
import {SearchResearchResultsServiceModule} from "../openaireLibrary/services/searchResearchResultsService.module";
|
||||
import {SearchResultsModule} from "../openaireLibrary/searchPages/searchUtils/searchResults.module";
|
||||
import {CuratorsModule} from "../openaireLibrary/connect/components/curators/curators.module";
|
||||
import {AffiliationsModule} from "../openaireLibrary/connect/affiliations/affiliations.module";
|
||||
import {CuratorsModule} from "../curators/curators.module";
|
||||
import {AffiliationsModule} from "../affiliations/affiliations.module";
|
||||
import {SEOServiceModule} from "../openaireLibrary/sharedComponents/SEO/SEOService.module";
|
||||
import {MatSelectModule} from "@angular/material/select";
|
||||
import { MatSelectModule } from "@angular/material/select";
|
||||
import {EntitiesSelectionModule} from "../openaireLibrary/searchPages/searchUtils/entitiesSelection.module";
|
||||
import {TabsModule} from "../openaireLibrary/utils/tabs/tabs.module";
|
||||
import {SearchTabModule} from "../openaireLibrary/utils/tabs/contents/search-tab.module";
|
||||
import {ErrorMessagesModule} from "../openaireLibrary/utils/errorMessages.module";
|
||||
import {SafeHtmlPipeModule} from '../openaireLibrary/utils/pipes/safeHTMLPipe.module';
|
||||
import {ErrorModule} from "../openaireLibrary/error/error.module";
|
||||
import {
|
||||
AdvancedSearchInputModule
|
||||
} from '../openaireLibrary/sharedComponents/advanced-search-input/advanced-search-input.module';
|
||||
import {AdvancedSearchInputModule} from '../openaireLibrary/sharedComponents/advanced-search-input/advanced-search-input.module';
|
||||
import {InputModule} from '../openaireLibrary/sharedComponents/input/input.module';
|
||||
import {QuickSelectionsModule} from '../openaireLibrary/searchPages/searchUtils/quick-selections.module';
|
||||
import {IconsModule} from '../openaireLibrary/utils/icons/icons.module';
|
||||
import {NoLoadPaging} from '../openaireLibrary/searchPages/searchUtils/no-load-paging.module';
|
||||
import {NumberRoundModule} from '../openaireLibrary/utils/pipes/number-round.module';
|
||||
import {PluginsService} from '../openaireLibrary/services/plugins.service';
|
||||
import {PluginWrapperModule} from "../openaireLibrary/dashboard/plugins/wrapper/plugin-wrapper.module";
|
||||
import {LoadingModule} from "../openaireLibrary/utils/loading/loading.module";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule, FormsModule, RouterModule,
|
||||
SubscribeModule, StatisticsModule, ManageModule, InviteModule,
|
||||
ZenodoCommunitiesServiceModule, SearchFormModule, SearchDataprovidersServiceModule, SearchProjectsServiceModule,
|
||||
SearchZenodoCommunitiesServiceModule, ZenodoCommunitiesServiceModule, SearchFormModule, SearchDataprovidersServiceModule, SearchProjectsServiceModule,
|
||||
SearchResearchResultsServiceModule, SearchResultsModule, CuratorsModule, AffiliationsModule,
|
||||
SEOServiceModule, MatSelectModule, EntitiesSelectionModule,
|
||||
TabsModule, SearchTabModule, ErrorMessagesModule, SafeHtmlPipeModule, ErrorModule,
|
||||
AdvancedSearchInputModule, InputModule, QuickSelectionsModule, IconsModule, NoLoadPaging, NumberRoundModule, PluginWrapperModule, LoadingModule
|
||||
AdvancedSearchInputModule, InputModule, QuickSelectionsModule, IconsModule, NoLoadPaging
|
||||
],
|
||||
declarations: [
|
||||
CommunityComponent
|
||||
],
|
||||
providers:[
|
||||
PreviousRouteRecorder, PiwikService, PluginsService
|
||||
PreviousRouteRecorder, PiwikService
|
||||
],
|
||||
exports: [
|
||||
CommunityComponent
|
||||
]
|
||||
})
|
||||
export class CommunityModule {
|
||||
}
|
||||
export class CommunityModule { }
|
||||
|
|
|
@ -58,7 +58,10 @@ export class ContactComponent implements OnInit {
|
|||
|
||||
this.properties = properties;
|
||||
this.email = {body: '', subject: '', recipients: []};
|
||||
this.subscriptions.push( this._piwikService.trackView(this.properties, this.pageTitle).subscribe());
|
||||
|
||||
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
this.subscriptions.push( this._piwikService.trackView(this.properties, this.pageTitle, this.properties.piwikSiteId).subscribe());
|
||||
}
|
||||
this.url = this.properties.domain + this._router.url;
|
||||
this.seoService.createLinkForCanonicalURL(this.url);
|
||||
this.updateUrl(this.url);
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
import { NgModule} from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import {CuratorsComponent} from "./curators.component";
|
||||
import {IsRouteEnabled} from "../openaireLibrary/error/isRouteEnabled.guard";
|
||||
import {PreviousRouteRecorder} from "../openaireLibrary/utils/piwik/previousRouteRecorder.guard";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: CuratorsComponent, canActivate: [IsRouteEnabled], canDeactivate: [PreviousRouteRecorder]}
|
||||
])
|
||||
]
|
||||
})
|
||||
export class CuratorsRoutingModule {
|
||||
}
|
|
@ -0,0 +1,152 @@
|
|||
<schema2jsonld *ngIf="url" [URL]="url" [name]="pageTitle" type="other"></schema2jsonld>
|
||||
<ng-container *ngIf="longView else shortView">
|
||||
<div style="min-height: 650px;">
|
||||
<div class="uk-container uk-container-large uk-section uk-section-small uk-padding-remove-bottom">
|
||||
<div class="uk-padding-small uk-padding-remove-horizontal">
|
||||
<breadcrumbs [breadcrumbs]="breadcrumbs"></breadcrumbs>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-container uk-container-large uk-section uk-section-small">
|
||||
<div *ngIf="showLoading" class="uk-margin-large uk-padding-large uk-padding-remove-horizontal">
|
||||
<loading></loading>
|
||||
</div>
|
||||
<div *ngIf="!showLoading">
|
||||
<h1 class="uk-margin-top">
|
||||
Curators
|
||||
</h1>
|
||||
<div *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0" class="uk-margin-medium">
|
||||
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
|
||||
[texts]="pageContents['top']">
|
||||
</helper>
|
||||
</div>
|
||||
<div *ngIf="curators" class="uk-margin-large-top">
|
||||
<div *ngFor="let curator of curators let i=index;" class="uk-card uk-card-default uk-padding uk-margin-medium-bottom">
|
||||
<div class="uk-grid" uk-grid>
|
||||
<div class="uk-width-2-3@m uk-flex uk-flex-middle">
|
||||
<div class="uk-width-small">
|
||||
<img *ngIf="curator.photo && curator.photo !== ''" class="uk-border-circle" style="width: 150px; height: 150px;"
|
||||
src="{{downloadUrl + curator.photo}}" alt="Curator Photo">
|
||||
<img *ngIf="!curator.photo || curator.photo == ''" class="uk-border-circle" style="width: 150px; height: 150px;"
|
||||
src="../../assets/common-assets/curator-default.png" alt="Curator Photo">
|
||||
</div>
|
||||
<div class="uk-width-expand">
|
||||
<div class="uk-padding">
|
||||
<h4 class="uk-margin-remove">{{curator.name}}</h4>
|
||||
<div *ngIf="curator.bio" class="uk-margin-top uk-height-max-large uk-overflow-auto">
|
||||
<div class="uk-text-muted uk-margin-small-bottom">
|
||||
Biography
|
||||
</div>
|
||||
<div>
|
||||
<div *ngIf="!viewingMore">{{format(curator.bio)}}</div>
|
||||
<div *ngIf="viewingMore">{{curator.bio}}</div>
|
||||
<div *ngIf="curator.bio.length >= maxCharacters" class="uk-text-right uk-margin-small-top">
|
||||
<a *ngIf="curator.bio.length >= maxCharacters"
|
||||
(click)="openFsModal(curator)">
|
||||
View details
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="curator.affiliations && curator.affiliations.length > 0" class="uk-width-1-3@m uk-padding" style="border-left: 1px solid #eaeaea">
|
||||
<div class="uk-text-muted uk-margin-bottom">
|
||||
Affiliations
|
||||
</div>
|
||||
<div class="uk-grid uk-flex-middle uk-child-width-1-2" uk-grid>
|
||||
<div *ngFor="let affiliation of curator.affiliations">
|
||||
<span *ngIf="!affiliation.website_url">
|
||||
<img [src]="affiliation.logo_url | urlPrefix" [alt]="affiliation.name">
|
||||
</span>
|
||||
<a *ngIf="affiliation.website_url"
|
||||
target="_blank" [href]="affiliation.website_url | urlPrefix">
|
||||
<img [src]="affiliation.logo_url | urlPrefix" [alt]="affiliation.name">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-margin-medium">
|
||||
<helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
|
||||
[texts]="pageContents['bottom']">
|
||||
</helper>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-container>
|
||||
|
||||
<!-- Short view for community's homepage -->
|
||||
<ng-template #shortView>
|
||||
<div *ngIf=" curators && curators.length > 0" class="uk-grid">
|
||||
<span class="uk-text-meta uk-width-auto">
|
||||
Curated by:
|
||||
</span>
|
||||
<div class="uk-width-expand uk-padding-remove uk-overflow-auto">
|
||||
<div class="uk-height-max-medium uk-margin-xsmall-left">
|
||||
<a routerLink="/curators">
|
||||
<span *ngFor="let curator of curators.slice(0,curatorsLimit) let i=index;">
|
||||
{{curator.name}}
|
||||
<span *ngIf="i < curators.length-1 && i < curatorsLimit-1">, </span>
|
||||
</span>
|
||||
<span *ngIf="curators.length > curatorsLimit">
|
||||
+{{curators.length-curatorsLimit}} more
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<fs-modal #fsModal classTitle="">
|
||||
<div *ngIf="curatorInModal" class="uk-width-1-1 uk-height-1-1">
|
||||
<div class="uk-container uk-container-large uk-section">
|
||||
<div class="uk-margin-large-top uk-grid uk-grid-large" uk-grid>
|
||||
<div class="uk-width-1-3@m">
|
||||
<h2>
|
||||
{{curatorInModal.name}}
|
||||
</h2>
|
||||
<img *ngIf="curatorInModal.photo && curatorInModal.photo !== ''" class="uk-width-2-3 uk-border-circle uk-margin-top uk-margin-bottom"
|
||||
src="{{downloadUrl + curatorInModal.photo}}" alt="Curator Photo">
|
||||
<img *ngIf="!curatorInModal.photo || curatorInModal.photo == ''" class="uk-width-2-3 uk-border-circle uk-margin-top uk-margin-bottom"
|
||||
src="../../assets/common-assets/curator-default.png" alt="Curator Photo">
|
||||
</div>
|
||||
<div class="uk-width-2-3@m">
|
||||
<ul class="uk-tab" uk-tab>
|
||||
<li>
|
||||
<a>Biography</a>
|
||||
</li>
|
||||
<li *ngIf="curatorInModal.affiliations && curatorInModal.affiliations.length > 0">
|
||||
<a>Affiliations</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="uk-switcher">
|
||||
<li class="uk-padding uk-padding-remove-left">
|
||||
<h5>
|
||||
Biography
|
||||
</h5>
|
||||
<div>
|
||||
{{curatorInModal.bio}}
|
||||
</div>
|
||||
</li>
|
||||
<li *ngIf="curatorInModal.affiliations && curatorInModal.affiliations.length > 0" class="uk-padding uk-padding-remove-left">
|
||||
<div class="uk-grid uk-flex-middle uk-child-width-1-3" uk-grid>
|
||||
<div *ngFor="let affiliation of curatorInModal.affiliations">
|
||||
<span *ngIf="!affiliation.website_url">
|
||||
<img [src]="affiliation.logo_url | urlPrefix" [alt]="affiliation.name">
|
||||
</span>
|
||||
<a *ngIf="affiliation.website_url"
|
||||
target="_blank" [href]="affiliation.website_url | urlPrefix">
|
||||
<img [src]="affiliation.logo_url | urlPrefix" [alt]="affiliation.name">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fs-modal>
|
|
@ -0,0 +1,158 @@
|
|||
import {Component, Input, ViewChild} from '@angular/core';
|
||||
import {EnvProperties} from '../openaireLibrary/utils/properties/env-properties';
|
||||
import {CuratorService} from "../openaireLibrary/connect/curators/curator.service";
|
||||
import {Curator} from "../openaireLibrary/utils/entities/CuratorInfo";
|
||||
import {ActivatedRoute, Router} from "@angular/router";
|
||||
import {CommunityService} from "../openaireLibrary/connect/community/community.service";
|
||||
import {HelperService} from "../openaireLibrary/utils/helper/helper.service";
|
||||
import {Meta, Title} from "@angular/platform-browser";
|
||||
import {SEOService} from "../openaireLibrary/sharedComponents/SEO/SEO.service";
|
||||
import {PiwikService} from "../openaireLibrary/utils/piwik/piwik.service";
|
||||
import {PiwikHelper} from "../utils/piwikHelper";
|
||||
import {Breadcrumb} from "../openaireLibrary/utils/breadcrumbs/breadcrumbs.component";
|
||||
import {Subscription} from "rxjs";
|
||||
import {properties} from "../../environments/environment";
|
||||
import {UserRegistryService} from "../openaireLibrary/services/user-registry.service";
|
||||
import {FullScreenModalComponent} from '../openaireLibrary/utils/modal/full-screen-modal/full-screen-modal.component';
|
||||
import {CommunityInfo} from "../openaireLibrary/connect/community/communityInfo";
|
||||
|
||||
@Component({
|
||||
selector: 'curators',
|
||||
templateUrl: './curators.component.html'
|
||||
|
||||
})
|
||||
export class CuratorsComponent {
|
||||
@Input() longView = true;
|
||||
community: CommunityInfo;
|
||||
public downloadUrl = null;
|
||||
public showLoading = true;
|
||||
|
||||
public curators: Curator[] = [];
|
||||
|
||||
public curatorsLimit: number = 5;
|
||||
public numberOfCurators: number = 5;
|
||||
|
||||
public showMore = [];
|
||||
public maxCharacters = 450;
|
||||
public viewingMore: boolean = false;
|
||||
public curatorInModal;
|
||||
|
||||
public properties: EnvProperties;
|
||||
public pageContents = null;
|
||||
public divContents = null;
|
||||
|
||||
public url: string = null;
|
||||
public pageTitle: string = "Curators";
|
||||
|
||||
public breadcrumbs: Breadcrumb[] = [{name: 'Home', route: '/'}, {name: 'About - Curators'}];
|
||||
|
||||
subs: Subscription[] = [];
|
||||
|
||||
@ViewChild('fsModal', { static: true }) fsModal: FullScreenModalComponent;
|
||||
|
||||
constructor(private route: ActivatedRoute,
|
||||
private curatorsService: CuratorService,
|
||||
private communityService: CommunityService,
|
||||
private userRegistryService: UserRegistryService,
|
||||
private _router: Router,
|
||||
private helper: HelperService,
|
||||
private _meta: Meta,
|
||||
private _title: Title,
|
||||
private seoService: SEOService,
|
||||
private _piwikService: PiwikService) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.showLoading = true;
|
||||
this.properties = properties;
|
||||
this.downloadUrl = this.properties.utilsService + '/download/';
|
||||
//if (properties.environment !== 'development') {
|
||||
if (!this.longView) {
|
||||
this.subs.push(this.communityService.getCommunityAsObservable().subscribe(community => {
|
||||
if (community) {
|
||||
this.community = community;
|
||||
this.getCurators();
|
||||
}
|
||||
}));
|
||||
} else {
|
||||
this.subs.push(this.communityService.getCommunityAsObservable().subscribe(community => {
|
||||
if (community) {
|
||||
this.community = community;
|
||||
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
this.subs.push(this._piwikService.trackView(this.properties, this.pageTitle, PiwikHelper.getSiteId(this.community.communityId)).subscribe());
|
||||
}
|
||||
this.url = this.properties.domain + this._router.url;
|
||||
this.seoService.createLinkForCanonicalURL(this.url);
|
||||
this.updateUrl(this.url);
|
||||
this.updateTitle(this.pageTitle);
|
||||
this.updateDescription("OpenAIRE - Connect, Community Gateway, research community");
|
||||
//this.getDivContents();
|
||||
this.getPageContents();
|
||||
this.getCurators();
|
||||
}
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
for (let sub of this.subs) {
|
||||
sub.unsubscribe();
|
||||
}
|
||||
}
|
||||
|
||||
private getCurators() {
|
||||
this.subs.push(this.curatorsService.getCurators(this.properties, this.community.communityId).subscribe(curators => {
|
||||
this.curators = curators;
|
||||
this.showLoading = false;
|
||||
}, error => {
|
||||
console.error(error);
|
||||
this.curators = [];
|
||||
this.showLoading = false;
|
||||
}));
|
||||
}
|
||||
|
||||
private getPageContents() {
|
||||
this.subs.push(this.helper.getPageHelpContents(this.properties, this.community.communityId, this._router.url).subscribe(contents => {
|
||||
this.pageContents = contents;
|
||||
}));
|
||||
}
|
||||
|
||||
private getDivContents() {
|
||||
this.subs.push(this.helper.getDivHelpContents(this.properties, this.community.communityId, this._router.url).subscribe(contents => {
|
||||
this.divContents = contents;
|
||||
}));
|
||||
}
|
||||
|
||||
format(name: string) {
|
||||
if (name) {
|
||||
return (((name).length > this.maxCharacters) ? (name.substring(0, (this.maxCharacters - ('...').length)) + '...') : name);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public viewMore() {
|
||||
this.viewingMore = !this.viewingMore;
|
||||
}
|
||||
|
||||
public openFsModal(curator) {
|
||||
this.curatorInModal = curator;
|
||||
this.fsModal.title = this.community.shortTitle + ' Curator';
|
||||
this.fsModal.open();
|
||||
}
|
||||
|
||||
private updateDescription(description: string) {
|
||||
this._meta.updateTag({content: description}, "name='description'");
|
||||
this._meta.updateTag({content: description}, "property='og:description'");
|
||||
}
|
||||
|
||||
private updateTitle(title: string) {
|
||||
var _title = ((title.length > 50) ? title.substring(0, 50) : title);
|
||||
this._title.setTitle(_title);
|
||||
this._meta.updateTag({content: _title}, "property='og:title'");
|
||||
}
|
||||
|
||||
private updateUrl(url: string) {
|
||||
this._meta.updateTag({content: url}, "property='og:url'");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
import { NgModule} from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { RouterModule } from '@angular/router';
|
||||
|
||||
import {CuratorsComponent} from './curators.component';
|
||||
import {CuratorService} from "../openaireLibrary/connect/curators/curator.service";
|
||||
import {CuratorsRoutingModule} from "./curators-routing.module";
|
||||
import {AffiliationsModule} from "../affiliations/affiliations.module";
|
||||
import {HelperModule} from "../openaireLibrary/utils/helper/helper.module";
|
||||
import {Schema2jsonldModule} from "../openaireLibrary/sharedComponents/schema2jsonld/schema2jsonld.module";
|
||||
import {SEOServiceModule} from "../openaireLibrary/sharedComponents/SEO/SEOService.module";
|
||||
import {PiwikServiceModule} from "../openaireLibrary/utils/piwik/piwikService.module";
|
||||
import {BreadcrumbsModule} from "../openaireLibrary/utils/breadcrumbs/breadcrumbs.module";
|
||||
import {UrlPrefixModule} from "../openaireLibrary/utils/pipes/url-prefix.module";
|
||||
import {LoadingModule} from '../openaireLibrary/utils/loading/loading.module';
|
||||
import {FullScreenModalModule} from '../openaireLibrary/utils/modal/full-screen-modal/full-screen-modal.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule, FormsModule, RouterModule,
|
||||
CuratorsRoutingModule, AffiliationsModule, HelperModule,
|
||||
Schema2jsonldModule, SEOServiceModule, PiwikServiceModule,
|
||||
BreadcrumbsModule, UrlPrefixModule, LoadingModule,
|
||||
FullScreenModalModule
|
||||
],
|
||||
declarations: [
|
||||
CuratorsComponent
|
||||
],
|
||||
providers: [CuratorService],
|
||||
exports: [
|
||||
CuratorsComponent
|
||||
]
|
||||
})
|
||||
export class CuratorsModule {}
|
|
@ -6,20 +6,22 @@ import {ZenodoInformationClass} from "../openaireLibrary/deposit/utils/zenodoInf
|
|||
import {FetchZenodoInformation} from "./utils/fetchZenodoInformation.class";
|
||||
import {ZenodoCommunitiesService} from "../openaireLibrary/connect/zenodoCommunities/zenodo-communities.service";
|
||||
import {CommunityService} from "../openaireLibrary/connect/community/community.service";
|
||||
import {SearchZenodoCommunitiesService} from "../openaireLibrary/connect/zenodoCommunities/searchZenodoCommunities.service";
|
||||
import {PiwikHelper} from "../utils/piwikHelper";
|
||||
import {Subscriber, Subscription} from "rxjs";
|
||||
import {properties} from "../../environments/environment";
|
||||
import {SearchCommunityDataprovidersService} from "../openaireLibrary/connect/contentProviders/searchDataproviders.service";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-deposit',
|
||||
template: `
|
||||
<deposit-first-page [zenodoInformation]="zenodoInformation"
|
||||
<deposit-first-page [piwikSiteId]=piwikSiteId [zenodoInformation]="zenodoInformation"
|
||||
[communityId]="communityId" [assetsPath]="'assets/connect-assets'"></deposit-first-page>
|
||||
`
|
||||
})
|
||||
|
||||
export class OpenaireDepositComponent {
|
||||
properties: EnvProperties = properties;
|
||||
piwikSiteId = null;
|
||||
public pageContents = null;
|
||||
public divContents = null;
|
||||
public communityId = null;
|
||||
|
@ -32,32 +34,23 @@ export class OpenaireDepositComponent {
|
|||
constructor(private route: ActivatedRoute,
|
||||
private _zenodoCommunitieService: ZenodoCommunitiesService,
|
||||
private _communityService: CommunityService,
|
||||
private searchCommunityDataprovidersService: SearchCommunityDataprovidersService) {
|
||||
this.fetchZenodoInformation = new FetchZenodoInformation(this._zenodoCommunitieService);
|
||||
private _searchZenodoCommunitiesService: SearchZenodoCommunitiesService) {
|
||||
this.fetchZenodoInformation = new FetchZenodoInformation(this._zenodoCommunitieService, this._searchZenodoCommunitiesService);
|
||||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.subs.push(this._communityService.getCommunityAsObservable().subscribe(
|
||||
community => {
|
||||
if(community) {
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
this.communityId = community.communityId
|
||||
let masterZenodoCommunityId = community.zenodoCommunity;
|
||||
if (masterZenodoCommunityId || (community.otherZenodoCommunities && community.otherZenodoCommunities.length > 0)) {
|
||||
if (masterZenodoCommunityId) {
|
||||
this.zenodoInformation.shareInZenodoUrl = this.properties.shareInZenodoPage;
|
||||
} else {
|
||||
this.zenodoInformation.url = this.properties.zenodo;
|
||||
this.zenodoInformation.name = "Zenodo";
|
||||
}
|
||||
this.subs.push(this.searchCommunityDataprovidersService.searchDataproviders(this.properties, this.communityId, true).subscribe(
|
||||
res => {
|
||||
if(res && res.length > 0){
|
||||
this.zenodoInformation.hasSuggestedRepositories = true;
|
||||
}
|
||||
},
|
||||
error => {
|
||||
console.log(error);
|
||||
}
|
||||
));
|
||||
}
|
||||
}));
|
||||
if (!this.zenodoInformation.shareInZenodoUrl) {
|
||||
|
|
|
@ -9,7 +9,7 @@ import {DepositRoutingModule} from "./deposit-routing.module";
|
|||
import {DepositFirstPageModule} from "../openaireLibrary/deposit/depositFirstPage.module";
|
||||
|
||||
import {ZenodoCommunitiesService} from "../openaireLibrary/connect/zenodoCommunities/zenodo-communities.service";
|
||||
import {SearchCommunityDataprovidersService} from "../openaireLibrary/connect/contentProviders/searchDataproviders.service";
|
||||
import {SearchZenodoCommunitiesService} from "../openaireLibrary/connect/zenodoCommunities/searchZenodoCommunities.service";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
|
@ -22,7 +22,7 @@ import {SearchCommunityDataprovidersService} from "../openaireLibrary/connect/co
|
|||
exports: [
|
||||
OpenaireDepositComponent,
|
||||
],
|
||||
providers: [PreviousRouteRecorder, IsRouteEnabled, SearchCommunityDataprovidersService,
|
||||
ZenodoCommunitiesService]
|
||||
providers: [PreviousRouteRecorder, IsRouteEnabled,
|
||||
ZenodoCommunitiesService, SearchZenodoCommunitiesService]
|
||||
})
|
||||
export class LibDepositModule { }
|
||||
|
|
|
@ -1,20 +1,22 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {ActivatedRoute} from '@angular/router';
|
||||
|
||||
import {PiwikHelper} from '../utils/piwikHelper';
|
||||
import {EnvProperties} from '../openaireLibrary/utils/properties/env-properties';
|
||||
|
||||
import {ZenodoCommunitiesService} from '../openaireLibrary/connect/zenodoCommunities/zenodo-communities.service';
|
||||
import {SearchZenodoCommunitiesService} from '../openaireLibrary/connect/zenodoCommunities/searchZenodoCommunities.service';
|
||||
import {CommunityService} from '../openaireLibrary/connect/community/community.service';
|
||||
|
||||
import {ZenodoInformationClass} from '../openaireLibrary/deposit/utils/zenodoInformation.class';
|
||||
import {FetchZenodoInformation} from './utils/fetchZenodoInformation.class';
|
||||
import {Subscriber, Subscription} from "rxjs";
|
||||
import {properties} from "../../environments/environment";
|
||||
import {SearchCommunityDataprovidersService} from "../openaireLibrary/connect/contentProviders/searchDataproviders.service";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-search-deposit',
|
||||
template: `
|
||||
<deposit-search-dataproviders [zenodoInformation]="zenodoInformation"
|
||||
<deposit-search-dataproviders [piwikSiteId]=piwikSiteId [zenodoInformation]="zenodoInformation"
|
||||
[communityId]="communityId" [searchForm]="{dark: false, class: 'search-form'}"></deposit-search-dataproviders>
|
||||
`
|
||||
})
|
||||
|
@ -23,15 +25,16 @@ export class OpenaireSearchDataprovidersToDepositComponent {
|
|||
public zenodoInformation: ZenodoInformationClass = new ZenodoInformationClass();
|
||||
properties: EnvProperties = properties;
|
||||
fetchZenodoInformation: FetchZenodoInformation;
|
||||
|
||||
piwikSiteId = null;
|
||||
communityId: string = null;
|
||||
|
||||
subs: Subscription[] = [];
|
||||
|
||||
constructor(private route: ActivatedRoute,
|
||||
private _zenodoCommunitieService: ZenodoCommunitiesService,
|
||||
private _communityService: CommunityService,
|
||||
private searchCommunityDataprovidersService: SearchCommunityDataprovidersService) {
|
||||
this.fetchZenodoInformation = new FetchZenodoInformation(this._zenodoCommunitieService);
|
||||
private _communityService: CommunityService, private _searchZenodoCommunitiesService: SearchZenodoCommunitiesService) {
|
||||
this.fetchZenodoInformation = new FetchZenodoInformation(this._zenodoCommunitieService, this._searchZenodoCommunitiesService);
|
||||
}
|
||||
|
||||
public ngOnInit() {
|
||||
|
@ -39,23 +42,14 @@ export class OpenaireSearchDataprovidersToDepositComponent {
|
|||
community => {
|
||||
if(community) {
|
||||
this.communityId = community.communityId;
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
let masterZenodoCommunityId = community.zenodoCommunity;
|
||||
if (masterZenodoCommunityId || (community.otherZenodoCommunities && community.otherZenodoCommunities.length > 0)) {
|
||||
if (masterZenodoCommunityId) {
|
||||
this.zenodoInformation.shareInZenodoUrl = this.properties.shareInZenodoPage;
|
||||
} else {
|
||||
this.zenodoInformation.url = this.properties.zenodo;
|
||||
this.zenodoInformation.name = "Zenodo";
|
||||
}
|
||||
this.subs.push(this.searchCommunityDataprovidersService.searchDataproviders(this.properties, this.communityId, true).subscribe(
|
||||
res => {
|
||||
if(res && res.length > 0){
|
||||
this.zenodoInformation.hasSuggestedRepositories = true;
|
||||
}
|
||||
},
|
||||
error => {
|
||||
console.log(error);
|
||||
}
|
||||
));
|
||||
}
|
||||
}
|
||||
));
|
||||
|
|
|
@ -9,14 +9,14 @@ import {SearchDataprovidersToDepositModule} from '../openaireLibrary/deposit/sea
|
|||
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../openaireLibrary/error/isRouteEnabled.guard';
|
||||
import {ZenodoCommunitiesServiceModule} from '../openaireLibrary/connect/zenodoCommunities/zenodo-communitiesService.module';
|
||||
import {SearchCommunityDataprovidersService} from "../openaireLibrary/connect/contentProviders/searchDataproviders.service";
|
||||
import {SearchZenodoCommunitiesServiceModule} from '../openaireLibrary/connect/zenodoCommunities/searchZenodoCommunitiesService.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule, FormsModule,
|
||||
SearchDataprovidersToDepositModule,
|
||||
SearchDataprovidersToDepositRoutingModule,
|
||||
ZenodoCommunitiesServiceModule
|
||||
ZenodoCommunitiesServiceModule, SearchZenodoCommunitiesServiceModule
|
||||
],
|
||||
declarations: [
|
||||
OpenaireSearchDataprovidersToDepositComponent
|
||||
|
@ -24,6 +24,6 @@ import {SearchCommunityDataprovidersService} from "../openaireLibrary/connect/co
|
|||
exports: [
|
||||
OpenaireSearchDataprovidersToDepositComponent,
|
||||
],
|
||||
providers: [PreviousRouteRecorder, IsRouteEnabled, SearchCommunityDataprovidersService]
|
||||
providers: [PreviousRouteRecorder, IsRouteEnabled]
|
||||
})
|
||||
export class LibSearchDataprovidersToDepositModule { }
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from "../../openaireLibrary/error/isRouteEnabled.guard";
|
||||
import {SuggestedRepositoriesComponent} from "./suggestedRepositories.component";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: SuggestedRepositoriesComponent, canActivate: [IsRouteEnabled], canDeactivate: [PreviousRouteRecorder] }
|
||||
|
||||
])
|
||||
]
|
||||
})
|
||||
export class SuggestedRepositoriesRoutingModule { }
|
|
@ -1,79 +0,0 @@
|
|||
<schema2jsonld *ngIf="url" [URL]="url" [name]="title" type="other"></schema2jsonld>
|
||||
<div class="uk-container uk-container-large uk-section uk-section-small uk-padding-remove-bottom">
|
||||
<div class="uk-padding-small uk-padding-remove-horizontal">
|
||||
<breadcrumbs [breadcrumbs]="breadcrumbs"></breadcrumbs>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-container uk-container-large uk-section uk-section-small uk-margin-medium-bottom" id="tm-main">
|
||||
|
||||
<div class="uk-container uk-container-large uk-margin-bottom">
|
||||
<div class=" uk-grid uk-flex uk-flex-middle">
|
||||
<h2 class="uk-margin-top uk-margin-medium-bottom uk-width-1-2@m">Repositories suggested by the curators.</h2>
|
||||
<div class="uk-flex uk-flex-center uk-flex-middle uk-width-expand@m uk-width-1-1@s">
|
||||
<div class="uk-padding">
|
||||
<div page-enabled [pageRoute]="'/participate/deposit/zenodo'" class="uk-flex uk-flex-column uk-flex-middle uk-margin-large-bottom">
|
||||
<img src="assets/common-assets/common/logo-zenodo.png" alt="Zenodo logo" class="uk-width-small ">
|
||||
|
||||
<div *ngIf="this.community.zenodoCommunity || this.community.otherZenodoCommunities.length > 0" class="">
|
||||
<a class="uk-button uk-button-text" [routerLink]="['../zenodo']" >
|
||||
Use related Zenodo communities
|
||||
</a>
|
||||
</div>
|
||||
<div *ngIf="!(this.community.zenodoCommunity || this.community.otherZenodoCommunities.length > 0)"
|
||||
class="">
|
||||
<a class="uk-button uk-button-text custom-external" [href]="properties.zenodo" target="_blank">
|
||||
Zenodo Repository
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div page-enabled [pageRoute]="'/participate/deposit/search'" class="uk-flex uk-flex-column uk-flex-middle">
|
||||
<img src="assets/common-assets/common/Logo_Horizontal.png" alt="OpenAIRE logo" class="uk-width-small uk-margin-bottom">
|
||||
<a routerLink="/participate/deposit/search" type="submit"
|
||||
class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text">
|
||||
OpenAIRE Compliant Repositories
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
|
||||
[texts]="pageContents['top']"></helper>
|
||||
<div *ngIf="zenodoSearchUtils.status == errorCodes.LOADING"
|
||||
class="uk-animation-fade uk-margin-large uk-padding-large uk-padding-remove-horizontal" role="alert">
|
||||
<loading></loading>
|
||||
</div>
|
||||
<div *ngIf="(zenodoSearchUtils.status == errorCodes.ERROR || zenodoSearchUtils.status == errorCodes.NONE)"
|
||||
class="uk-animation-fade uk-margin-top uk-width-1-1 uk-alert uk-alert-warning" role="alert">
|
||||
No suggested repositories found
|
||||
</div>
|
||||
<div class="uk-section">
|
||||
|
||||
<div *ngIf="contentProviders && contentProviders.length > 0" class="uk-grid uk-grid-medium uk-grid-match uk-child-width-1-2@m uk-margin-top" uk-grid
|
||||
uk-height-match="target: .header, .body">
|
||||
<ng-template ngFor let-item [ngForOf]="contentProviders" let-i="index">
|
||||
<div
|
||||
class="uk-animation-fade">
|
||||
<div class="uk-card uk-card-default uk-card-body uk-card-hover">
|
||||
<a [routerLink]="properties.searchLinkToDataProvider.split('?')[0]" [queryParams]="{datasourceId : item.openaireId}" >{{item.officialname?item.officialname:item.name}}</a>
|
||||
<hr>
|
||||
<div class="uk-text-small" [innerHTML]="item.message">
|
||||
</div>
|
||||
|
||||
<!-- update with link to dataprovider -->
|
||||
<!--<div class="uk-flex uk-flex-right uk-margin-small-top">
|
||||
<a [href]="properties.connectPortalUrl + properties.searchLinkToDataProvider + item.openaireId " class="uk-float-right uk-margin-small-left uk-display-inline-block uk-text-uppercase uk-button uk-button-text" target="_blank">
|
||||
<span class="uk-flex uk-flex-middle">
|
||||
<icon [name]="'file_upload'" [type]="'outlined'" class="uk-margin-small-right"></icon>
|
||||
<span>Go to repository</span>
|
||||
</span>
|
||||
</a>
|
||||
</div>-->
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
|
||||
[texts]="pageContents['bottom']"></helper>
|
||||
</div>
|
|
@ -1,141 +0,0 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {ActivatedRoute, Router} from '@angular/router';
|
||||
import {Meta, Title} from '@angular/platform-browser';
|
||||
import {EnvProperties} from '../../openaireLibrary/utils/properties/env-properties';
|
||||
import {ZenodoCommunitiesService} from '../../openaireLibrary/connect/zenodoCommunities/zenodo-communities.service';
|
||||
import {CommunityService} from '../../openaireLibrary/connect/community/community.service';
|
||||
import {CommunityInfo} from '../../openaireLibrary/connect/community/communityInfo';
|
||||
import {SearchUtilsClass} from '../../openaireLibrary/searchPages/searchUtils/searchUtils.class';
|
||||
import {ErrorCodes} from '../../openaireLibrary/utils/properties/errorCodes';
|
||||
import {HelperService} from "../../openaireLibrary/utils/helper/helper.service";
|
||||
import {RouterHelper} from "../../openaireLibrary/utils/routerHelper.class";
|
||||
import {SEOService} from "../../openaireLibrary/sharedComponents/SEO/SEO.service";
|
||||
import {PiwikService} from "../../openaireLibrary/utils/piwik/piwik.service";
|
||||
import {Breadcrumb} from "../../openaireLibrary/utils/breadcrumbs/breadcrumbs.component";
|
||||
import {properties} from "../../../environments/environment";
|
||||
import {Subscriber, Subscription} from "rxjs";
|
||||
import {SearchCommunityDataprovidersService} from "../../openaireLibrary/connect/contentProviders/searchDataproviders.service";
|
||||
|
||||
@Component({
|
||||
selector: 'suggested-repositories',
|
||||
templateUrl: './suggestedRepositories.component.html'
|
||||
})
|
||||
export class SuggestedRepositoriesComponent {
|
||||
public url: string = null;
|
||||
public title: string = "Suggested Repositories";
|
||||
properties: EnvProperties = properties;
|
||||
communityId: string = null;
|
||||
community: CommunityInfo = null;
|
||||
public pageContents = null;
|
||||
public divContents = null;
|
||||
|
||||
|
||||
// public warningMessage = "";
|
||||
// public infoMessage = "";
|
||||
|
||||
masterZenodoCommunityId = null;
|
||||
masterZenodoCommunity = null;
|
||||
|
||||
communityIds = null;
|
||||
communities = [];
|
||||
page = 1;
|
||||
size = 5;
|
||||
zenodoCommunitiesLoadedCount = 0;
|
||||
zenodoSearchUtils: SearchUtilsClass = new SearchUtilsClass();
|
||||
errorCodes: ErrorCodes = new ErrorCodes();
|
||||
depositLink = "https://zenodo.org/deposit/new?c=";
|
||||
depositLearnHowPage: string = null;
|
||||
public routerHelper: RouterHelper = new RouterHelper();
|
||||
breadcrumbs: Breadcrumb[] = [];
|
||||
|
||||
subs: Subscription[] = [];
|
||||
contentProviders;
|
||||
|
||||
constructor(private route: ActivatedRoute,
|
||||
private _router: Router,
|
||||
private _meta: Meta,
|
||||
private _title: Title,
|
||||
private _zenodoCommunitieService: ZenodoCommunitiesService,
|
||||
private _communityService: CommunityService,
|
||||
private searchCommunityDataprovidersService: SearchCommunityDataprovidersService,
|
||||
private helper: HelperService,
|
||||
private _piwikService: PiwikService,
|
||||
private seoService: SEOService) {
|
||||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.zenodoSearchUtils.status = this.errorCodes.LOADING;
|
||||
this.url = properties.domain + properties.baseLink + this._router.url;
|
||||
this.seoService.createLinkForCanonicalURL(this.url, false);
|
||||
this.updateUrl(this.url);
|
||||
this.updateTitle(this.title);
|
||||
this.updateDescription("sugested repositories, deposit");
|
||||
this.depositLearnHowPage = this.properties.depositLearnHowPage;
|
||||
this.breadcrumbs.push({name: 'home', route: '/'}, {
|
||||
name: "Deposit",
|
||||
route: this.depositLearnHowPage
|
||||
}, {name: "Suggested Repositories", route: null});
|
||||
//this.getDivContents();
|
||||
this.getPageContents();
|
||||
this.subs.push(this._communityService.getCommunityAsObservable().subscribe(
|
||||
community => {
|
||||
if (community) {
|
||||
this.communityId = community.communityId;
|
||||
this.subs.push(this._piwikService.trackView(this.properties, this.title).subscribe());
|
||||
this.community = community;
|
||||
this.masterZenodoCommunityId = this.community.zenodoCommunity;
|
||||
this.subs.push(this.searchCommunityDataprovidersService.searchDataproviders(this.properties, this.community.communityId, true).subscribe(
|
||||
res => {
|
||||
this.contentProviders = res;
|
||||
this.zenodoSearchUtils.status = this.contentProviders && this.contentProviders.length > 0 ? this.errorCodes.DONE: this.errorCodes.NONE;
|
||||
},
|
||||
error => {
|
||||
console.log(error);
|
||||
}
|
||||
));
|
||||
|
||||
}
|
||||
}));
|
||||
|
||||
}
|
||||
|
||||
public ngOnDestroy() {
|
||||
for (let sub of this.subs) {
|
||||
if (sub instanceof Subscriber) {
|
||||
sub.unsubscribe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private updateDescription(description: string) {
|
||||
this._meta.updateTag({content: description}, "name='description'");
|
||||
this._meta.updateTag({content: description}, "property='og:description'");
|
||||
}
|
||||
|
||||
private updateTitle(title: string) {
|
||||
var _title = ((title.length > 50) ? title.substring(0, 50) : title);
|
||||
this._title.setTitle(_title);
|
||||
this._meta.updateTag({content: _title}, "property='og:title'");
|
||||
}
|
||||
|
||||
private updateUrl(url: string) {
|
||||
this._meta.updateTag({content: url}, "property='og:url'");
|
||||
}
|
||||
|
||||
private getPageContents() {
|
||||
this.subs.push(this.helper.getPageHelpContents(this.properties, this.communityId, this._router.url).subscribe(contents => {
|
||||
this.pageContents = contents;
|
||||
}));
|
||||
}
|
||||
|
||||
private getDivContents() {
|
||||
this.subs.push(this.helper.getDivHelpContents(this.properties, this.communityId, this._router.url).subscribe(contents => {
|
||||
this.divContents = contents;
|
||||
}));
|
||||
}
|
||||
|
||||
private handleError(message: string, error) {
|
||||
console.error("Share in Zenodo Page: " + message, error);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
import { NgModule} from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
|
||||
import {ZenodoCommunitiesServiceModule} from '../../openaireLibrary/connect/zenodoCommunities/zenodo-communitiesService.module';
|
||||
|
||||
import {RouterModule} from "@angular/router";
|
||||
import {HelperModule} from "../../openaireLibrary/utils/helper/helper.module";
|
||||
import {PiwikServiceModule} from "../../openaireLibrary/utils/piwik/piwikService.module";
|
||||
import {Schema2jsonldModule} from "../../openaireLibrary/sharedComponents/schema2jsonld/schema2jsonld.module";
|
||||
import {SEOServiceModule} from "../../openaireLibrary/sharedComponents/SEO/SEOService.module";
|
||||
import {BreadcrumbsModule} from "../../openaireLibrary/utils/breadcrumbs/breadcrumbs.module";
|
||||
import {NoLoadPaging} from "../../openaireLibrary/searchPages/searchUtils/no-load-paging.module";
|
||||
import {IconsModule} from 'src/app/openaireLibrary/utils/icons/icons.module';
|
||||
import {LoadingModule} from 'src/app/openaireLibrary/utils/loading/loading.module';
|
||||
import {SuggestedRepositoriesRoutingModule} from "./suggestedRepositories-routing.module";
|
||||
import {SuggestedRepositoriesComponent} from "./suggestedRepositories.component";
|
||||
import {SearchCommunityDataprovidersService} from "../../openaireLibrary/connect/contentProviders/searchDataproviders.service";
|
||||
import {IsPageEnabledModule} from "../../openaireLibrary/utils/isPageEnabled/isPageEnabled.module";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule, SuggestedRepositoriesRoutingModule, ZenodoCommunitiesServiceModule,
|
||||
RouterModule, HelperModule, LoadingModule,
|
||||
PiwikServiceModule, Schema2jsonldModule, SEOServiceModule, BreadcrumbsModule, NoLoadPaging, IconsModule, IsPageEnabledModule
|
||||
],
|
||||
declarations: [
|
||||
SuggestedRepositoriesComponent
|
||||
],
|
||||
providers:[PreviousRouteRecorder, IsRouteEnabled, SearchCommunityDataprovidersService],
|
||||
exports: [
|
||||
SuggestedRepositoriesComponent
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
export class SuggestedRepositoriesModule {}
|
|
@ -1,5 +1,6 @@
|
|||
import {EnvProperties} from '../../openaireLibrary/utils/properties/env-properties';
|
||||
import {ZenodoCommunitiesService} from '../../openaireLibrary/connect/zenodoCommunities/zenodo-communities.service';
|
||||
import {SearchZenodoCommunitiesService} from '../../openaireLibrary/connect/zenodoCommunities/searchZenodoCommunities.service';
|
||||
|
||||
import {ZenodoInformationClass} from '../../openaireLibrary/deposit/utils/zenodoInformation.class';
|
||||
import {Subscriber} from "rxjs";
|
||||
|
@ -10,7 +11,8 @@ import {Injectable} from "@angular/core";
|
|||
})
|
||||
export class FetchZenodoInformation {
|
||||
private subscriptions = [];
|
||||
constructor ( private _zenodoCommunitieService: ZenodoCommunitiesService ) { }
|
||||
constructor ( private _zenodoCommunitieService: ZenodoCommunitiesService,
|
||||
private _searchZenodoCommunitiesService: SearchZenodoCommunitiesService ) { }
|
||||
|
||||
public ngOnDestroy() {
|
||||
this.clearSubscriptions();
|
||||
|
@ -24,7 +26,7 @@ export class FetchZenodoInformation {
|
|||
});
|
||||
}
|
||||
public getZenodoCommunityNameAndUrlById(masterZenodoCommunityId: string, properties:EnvProperties, zenodoInformation: ZenodoInformationClass){
|
||||
this.subscriptions.push(this._zenodoCommunitieService.getZenodoCommunityById(properties, masterZenodoCommunityId).subscribe(
|
||||
this.subscriptions.push(this._zenodoCommunitieService.getZenodoCommunityById(properties, properties.zenodoCommunities+masterZenodoCommunityId, null).subscribe(
|
||||
result => {
|
||||
console.info("getZenodoCommunityNameAndUrlById", result);
|
||||
var masterZenodoCommunity = result;
|
||||
|
@ -36,4 +38,22 @@ export class FetchZenodoInformation {
|
|||
}
|
||||
));
|
||||
}
|
||||
|
||||
public searchNumberOfZCommunities(communityId: string, properties: EnvProperties, zenodoInformation: ZenodoInformationClass) {
|
||||
this.subscriptions.push(this._searchZenodoCommunitiesService.searchZCommunities(properties,communityId).subscribe (
|
||||
result => {
|
||||
console.info("searchNumberOfZCommunities", result);
|
||||
|
||||
var CommunityIds = result;
|
||||
var totalResults = CommunityIds.length;
|
||||
if(totalResults > 0) {
|
||||
zenodoInformation.shareInZenodoUrl = properties.shareInZenodoPage;
|
||||
console.info(zenodoInformation.shareInZenodoUrl);
|
||||
}
|
||||
},
|
||||
error => {
|
||||
console.error("list of zenodo communities couldn't be loaded");
|
||||
}
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,157 +1,145 @@
|
|||
<schema2jsonld *ngIf="url" [URL]="url" [name]="title" type="other"></schema2jsonld>
|
||||
<div class="uk-container uk-container-large uk-section uk-section-small uk-padding-remove-bottom">
|
||||
<div class="uk-padding-small uk-padding-remove-horizontal">
|
||||
<breadcrumbs [breadcrumbs]="breadcrumbs"></breadcrumbs>
|
||||
<breadcrumbs [breadcrumbs]="breadcrumbs"></breadcrumbs>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-container uk-container-large uk-section uk-section-small uk-margin-medium-bottom" id="tm-main">
|
||||
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
|
||||
[texts]="pageContents['top']"></helper>
|
||||
<div class="uk-container uk-container-large uk-margin-bottom">
|
||||
<div class="uk-grid uk-grid-large uk-child-width-1-2@s uk-flex uk-flex-middle" uk-grid>
|
||||
<div>
|
||||
<h2 class="uk-margin-top uk-margin-medium-bottom">Deposit your research in Zenodo.</h2>
|
||||
<div *ngIf="masterZenodoCommunity" class="uk-animation-fade uk-margin-medium-top uk-margin-large-bottom">
|
||||
<h6 class="uk-margin-medium-bottom">Main Zenodo community</h6>
|
||||
<div class="uk-card uk-card-default">
|
||||
<div class="uk-card-body">
|
||||
<div class="uk-grid uk-grid-medium uk-flex-middle" uk-grid>
|
||||
<div class="uk-width-auto" *ngIf="masterZenodoCommunity.logoUrl">
|
||||
<a target="_blank" [href]="masterZenodoCommunity.link">
|
||||
<img *ngIf="masterZenodoCommunity.logoUrl"
|
||||
src="{{masterZenodoCommunity.logoUrl}}" width="80" height="80" alt="">
|
||||
</a>
|
||||
</div>
|
||||
<div class="uk-width-expand">
|
||||
<h2 class="uk-margin-remove uk-text-break uk-inline-block uk-h6">
|
||||
<a *ngIf="masterZenodoCommunity.link"
|
||||
class="custom-external uk-link uk-link-heading uk-width-expand" target="_blank"
|
||||
href="{{masterZenodoCommunity.link}}">
|
||||
<span *ngIf="masterZenodoCommunity.title">{{masterZenodoCommunity.title}}</span>
|
||||
<span *ngIf="!masterZenodoCommunity.title">[no name available]</span>
|
||||
</a>
|
||||
<span *ngIf="!masterZenodoCommunity.link">
|
||||
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0"
|
||||
[texts]="pageContents['top']"></helper>
|
||||
<div class="uk-container uk-container-large uk-margin-bottom">
|
||||
<h2 class="uk-margin-top uk-margin-medium-bottom uk-width-2-5@m">Deposit your research in Zenodo.</h2>
|
||||
<div *ngIf="masterZenodoCommunity" class="uk-animation-fade uk-margin-medium-top uk-margin-large-bottom">
|
||||
<h6 class="uk-margin-medium-bottom">Main Zenodo community</h6>
|
||||
<div class="uk-grid uk-grid-large uk-child-width-1-2@s" uk-grid>
|
||||
<div>
|
||||
<div class="uk-card uk-card-default">
|
||||
<div class="uk-card-body">
|
||||
<div class="uk-grid uk-grid-medium uk-flex-middle" uk-grid>
|
||||
<div class="uk-width-auto" *ngIf="masterZenodoCommunity.logoUrl">
|
||||
<a target="_blank" [href]="masterZenodoCommunity.link">
|
||||
<img *ngIf="masterZenodoCommunity.logoUrl"
|
||||
src="{{masterZenodoCommunity.logoUrl}}" width="80" height="80" alt="{{masterZenodoCommunity.title}}">
|
||||
</a>
|
||||
</div>
|
||||
<div class="uk-width-expand">
|
||||
<h2 class="uk-margin-remove uk-text-break uk-inline-block uk-h6">
|
||||
<a *ngIf="masterZenodoCommunity.link" class="custom-external uk-link uk-link-heading uk-width-expand" target="_blank"
|
||||
href="{{masterZenodoCommunity.link}}">
|
||||
<span *ngIf="masterZenodoCommunity.title">{{masterZenodoCommunity.title}}</span>
|
||||
<span *ngIf="!masterZenodoCommunity.title">[no name available]</span>
|
||||
</a>
|
||||
<span *ngIf="!masterZenodoCommunity.link">
|
||||
<span *ngIf="masterZenodoCommunity.title">{{masterZenodoCommunity.title}}</span>
|
||||
<span *ngIf="!masterZenodoCommunity.title">[no name available]</span>
|
||||
</span>
|
||||
</h2>
|
||||
<div *ngIf="masterZenodoCommunity.date" class="uk-text-small uk-margin-small-top">
|
||||
<span class="uk-text-meta">Last update: </span>{{masterZenodoCommunity.date | date:'yyyy/MM/dd'}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="masterZenodoCommunity.description" class="uk-margin-top uk-margin-bottom uk-text-small">
|
||||
<p *ngIf="masterZenodoCommunity.description" class="uk-margin-remove"
|
||||
[innerHTML]="masterZenodoCommunity.description"></p>
|
||||
</div>
|
||||
<div>
|
||||
</h2>
|
||||
<div *ngIf="masterZenodoCommunity.date" class="uk-text-small uk-margin-small-top">
|
||||
<span class="uk-text-meta">Last update: </span>{{masterZenodoCommunity.date | date:'yyyy/MM/dd'}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="masterZenodoCommunity.description" class="uk-margin-top uk-margin-bottom uk-text-small">
|
||||
<p *ngIf="masterZenodoCommunity.description" class="uk-margin-remove" [innerHTML]="masterZenodoCommunity.description"></p>
|
||||
</div>
|
||||
<div>
|
||||
<span class="uk-width-expand uk-flex-right">
|
||||
<a [href]="depositLink + masterZenodoCommunity.id" target="_blank" type="submit"
|
||||
class="uk-float-right uk-margin-small-left uk-display-inline-block uk-text-uppercase uk-button uk-button-text">
|
||||
class="uk-float-right uk-margin-small-left uk-display-inline-block uk-text-uppercase uk-button uk-button-text">
|
||||
<span class="uk-flex uk-flex-middle">
|
||||
<icon name="file_upload" type="outlined" [flex]="true" class="uk-margin-small-right"></icon>
|
||||
<span>New upload</span>
|
||||
</span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-flex uk-flex-center uk-flex-middle">
|
||||
<div class="uk-padding">
|
||||
<div page-enabled [pageRoute]="'/participate/deposit/suggested'"
|
||||
class="uk-flex uk-flex-column uk-flex-middle uk-margin-large-bottom">
|
||||
<img src="assets/connect-assets/deposit/suggested-repositories.svg" alt="Suggested Repositories"
|
||||
class="uk-width-small uk-margin-bottom" style="height: 70px;">
|
||||
<a routerLink="/participate/deposit/suggested" type="submit"
|
||||
class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text">
|
||||
Suggested Repositories
|
||||
</a>
|
||||
</div>
|
||||
<div page-enabled [pageRoute]="'/participate/deposit/search'" class="uk-flex uk-flex-column uk-flex-middle">
|
||||
<img src="assets/common-assets/common/Logo_Horizontal.png" alt="OpenAIRE logo"
|
||||
class="uk-width-small uk-margin-bottom">
|
||||
<a routerLink="/participate/deposit/search" type="submit"
|
||||
class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text">
|
||||
OpenAIRE Compliant Repositories
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="zenodoSearchUtils.status == errorCodes.LOADING"
|
||||
class="uk-animation-fade uk-margin-large uk-padding-large uk-padding-remove-horizontal" role="alert">
|
||||
<loading></loading>
|
||||
</div>
|
||||
<div
|
||||
*ngIf="(zenodoSearchUtils.status == errorCodes.ERROR || zenodoSearchUtils.status == errorCodes.NONE) && !masterZenodoCommunity"
|
||||
class="uk-animation-fade uk-margin-top uk-width-1-1 uk-alert uk-alert-warning" role="alert">
|
||||
No zenodo communities found
|
||||
</div>
|
||||
<div class="uk-section">
|
||||
<h6 *ngIf="masterZenodoCommunity" class="uk-margin-medium-bottom">Other related Zenodo communities</h6>
|
||||
<h6 *ngIf="!masterZenodoCommunity" class="uk-margin-medium-bottom">Related Zenodo communities</h6>
|
||||
<no-load-paging *ngIf="communityIds && communityIds.length > size" [type]="'Zenodo communities'"
|
||||
(pageChange)="getCommunities($event)"
|
||||
[page]="page" [pageSize]="size"
|
||||
[totalResults]="communityIds.length">
|
||||
</no-load-paging>
|
||||
<div *ngIf="communityIds && communityIds.length > 0"
|
||||
class="uk-grid uk-grid-medium uk-grid-match uk-child-width-1-2@m uk-margin-top" uk-grid
|
||||
uk-height-match="target: .header, .body">
|
||||
<ng-template ngFor let-item [ngForOf]="communityIds" let-i="index">
|
||||
<div
|
||||
*ngIf="i>=((page-1)*size) && i < communityIds.length && i< this.page * this.size && communities[this.communityIds[i]]"
|
||||
class="uk-animation-fade">
|
||||
<div class="uk-card uk-card-default">
|
||||
<div class="uk-card-body">
|
||||
<div class="header uk-grid uk-grid-medium uk-flex-middle" uk-grid>
|
||||
<div class="uk-width-auto" *ngIf="communities[this.communityIds[i]].logoUrl">
|
||||
<a target="_blank" [href]="communities[this.communityIds[i]].link">
|
||||
<img *ngIf="communities[this.communityIds[i]].logoUrl"
|
||||
src="{{communities[this.communityIds[i]].logoUrl}}" width="80" height="80" alt="">
|
||||
</a>
|
||||
</div>
|
||||
<div class="uk-width-expand">
|
||||
<h2 class="uk-margin-remove uk-text-break uk-inline-block uk-h6">
|
||||
<a class="custom-external uk-link uk-link-heading uk-width-expand" target="_blank"
|
||||
href="{{communities[this.communityIds[i]].link}}">
|
||||
<span
|
||||
*ngIf="communities[this.communityIds[i]].title">{{communities[this.communityIds[i]].title}}</span>
|
||||
<span *ngIf="!communities[this.communityIds[i]].title">[no name available]</span>
|
||||
</a>
|
||||
</h2>
|
||||
<div class="uk-text-small uk-margin-small-top">
|
||||
<span
|
||||
class="uk-text-meta">Last update: </span>{{communities[this.communityIds[i]].date | date:'yyyy/MM/dd'}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="body uk-margin-top uk-margin-bottom uk-text-small multi-line-ellipsis lines-3">
|
||||
<!-- uk-height-max-small uk-overflow-auto -->
|
||||
<p *ngIf="communities[this.communityIds[i]].description" class="uk-margin-remove"
|
||||
[innerHtml]="communities[this.communityIds[i]].description"></p>
|
||||
</div>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-flex uk-flex-center uk-flex-middle">
|
||||
<div class="uk-padding">
|
||||
<!-- <div class="uk-flex uk-flex-column uk-flex-middle uk-margin-large-bottom">
|
||||
<img src="assets/connect-assets/deposit/suggested-repositories.svg" alt="Suggested Repositories" class="uk-width-small uk-margin-bottom" style="height: 70px;">
|
||||
<a routerLink="/participate/deposit/search" type="submit"
|
||||
class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text">
|
||||
Suggested Repositories
|
||||
</a>
|
||||
</div> -->
|
||||
<div class="uk-flex uk-flex-column uk-flex-middle">
|
||||
<img src="assets/common-assets/common/Logo_Horizontal.png" alt="OpenAIRE logo" class="uk-width-small uk-margin-bottom">
|
||||
<a routerLink="/participate/deposit/search" type="submit"
|
||||
class="uk-display-inline-block uk-text-uppercase uk-button uk-button-text">
|
||||
OpenAIRE Compliant Repositories
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="zenodoSearchUtils.status == errorCodes.LOADING"
|
||||
class="uk-animation-fade uk-margin-large uk-padding-large uk-padding-remove-horizontal" role="alert">
|
||||
<loading></loading>
|
||||
</div>
|
||||
<div *ngIf="(zenodoSearchUtils.status == errorCodes.ERROR || zenodoSearchUtils.status == errorCodes.NONE) && !masterZenodoCommunity"
|
||||
class="uk-animation-fade uk-margin-top uk-width-1-1 uk-alert uk-alert-warning" role="alert">
|
||||
No zenodo communities found
|
||||
</div>
|
||||
<div class="uk-section">
|
||||
<h6 class="uk-margin-medium-bottom">Other related Zenodo communities</h6>
|
||||
<no-load-paging *ngIf="communityIds && communityIds.length > size" [type]="'Zenodo communities'"
|
||||
(pageChange)="getCommunities($event)"
|
||||
[page]="page" [pageSize]="size"
|
||||
[totalResults]="communityIds.length" >
|
||||
</no-load-paging>
|
||||
<div *ngIf="communityIds && communityIds.length > 0" class="uk-grid uk-grid-medium uk-grid-match uk-child-width-1-2@m uk-margin-top" uk-grid
|
||||
uk-height-match="target: .header, .body">
|
||||
<ng-template ngFor let-item [ngForOf]="communityIds" let-i="index">
|
||||
<div *ngIf="i>=((page-1)*size) && i < communityIds.length && i< this.page * this.size && communities[this.communityIds[i]['zenodoid']]"
|
||||
class="uk-animation-fade">
|
||||
<div class="uk-card uk-card-default">
|
||||
<div class="uk-card-body">
|
||||
<div class="header uk-grid uk-grid-medium uk-flex-middle" uk-grid>
|
||||
<div class="uk-width-auto" *ngIf="communities[this.communityIds[i]['zenodoid']].logoUrl">
|
||||
<a target="_blank" [href]="communities[this.communityIds[i]['zenodoid']].link">
|
||||
<img *ngIf="communities[this.communityIds[i]['zenodoid']].logoUrl"
|
||||
src="{{communities[this.communityIds[i]['zenodoid']].logoUrl}}" width="80" height="80" alt="{{communities[this.communityIds[i]['zenodoid']].title}}">
|
||||
</a>
|
||||
</div>
|
||||
<div class="uk-width-expand">
|
||||
<h2 class="uk-margin-remove uk-text-break uk-inline-block uk-h6">
|
||||
<a class="custom-external uk-link uk-link-heading uk-width-expand" target="_blank"
|
||||
href="{{communities[this.communityIds[i]['zenodoid']].link}}">
|
||||
<span *ngIf="communities[this.communityIds[i]['zenodoid']].title">{{communities[this.communityIds[i]['zenodoid']].title}}</span>
|
||||
<span *ngIf="!communities[this.communityIds[i]['zenodoid']].title">[no name available]</span>
|
||||
</a>
|
||||
</h2>
|
||||
<div class="uk-text-small uk-margin-small-top">
|
||||
<span class="uk-text-meta">Last update: </span>{{communities[this.communityIds[i]['zenodoid']].date | date:'yyyy/MM/dd'}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="body uk-margin-top uk-margin-bottom uk-text-small multi-line-ellipsis lines-3"> <!-- uk-height-max-small uk-overflow-auto -->
|
||||
<p *ngIf="communities[this.communityIds[i]['zenodoid']].description" class="uk-margin-remove" [innerHtml]="communities[this.communityIds[i]['zenodoid']].description"></p>
|
||||
</div>
|
||||
<div>
|
||||
<span class="uk-width-expand uk-flex-right">
|
||||
<a [href]="depositLink + communities[this.communityIds[i]].id" target="_blank" type="submit"
|
||||
class="uk-float-right uk-margin-small-left uk-display-inline-block uk-text-uppercase uk-button uk-button-text">
|
||||
<a [href]="depositLink + communities[this.communityIds[i]['zenodoid']].id" target="_blank" type="submit"
|
||||
class="uk-float-right uk-margin-small-left uk-display-inline-block uk-text-uppercase uk-button uk-button-text">
|
||||
<span class="uk-flex uk-flex-middle">
|
||||
<icon name="file_upload" type="outlined" [flex]="true" class="uk-margin-small-right"></icon>
|
||||
<span>New upload</span>
|
||||
</span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
|
||||
[texts]="pageContents['bottom']"></helper>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0"
|
||||
[texts]="pageContents['bottom']"></helper>
|
||||
</div>
|
||||
|
|
|
@ -3,6 +3,7 @@ import {ActivatedRoute, Router} from '@angular/router';
|
|||
import {Meta, Title} from '@angular/platform-browser';
|
||||
import {EnvProperties} from '../../openaireLibrary/utils/properties/env-properties';
|
||||
import {ZenodoCommunitiesService} from '../../openaireLibrary/connect/zenodoCommunities/zenodo-communities.service';
|
||||
import {SearchZenodoCommunitiesService} from '../../openaireLibrary/connect/zenodoCommunities/searchZenodoCommunities.service';
|
||||
import {CommunityService} from '../../openaireLibrary/connect/community/community.service';
|
||||
import {CommunityInfo} from '../../openaireLibrary/connect/community/communityInfo';
|
||||
import {SearchUtilsClass} from '../../openaireLibrary/searchPages/searchUtils/searchUtils.class';
|
||||
|
@ -11,6 +12,7 @@ import {HelperService} from "../../openaireLibrary/utils/helper/helper.service";
|
|||
import {RouterHelper} from "../../openaireLibrary/utils/routerHelper.class";
|
||||
import {SEOService} from "../../openaireLibrary/sharedComponents/SEO/SEO.service";
|
||||
import {PiwikService} from "../../openaireLibrary/utils/piwik/piwik.service";
|
||||
import {PiwikHelper} from "../../utils/piwikHelper";
|
||||
import {Breadcrumb} from "../../openaireLibrary/utils/breadcrumbs/breadcrumbs.component";
|
||||
import {properties} from "../../../environments/environment";
|
||||
import {Subscriber, Subscription} from "rxjs";
|
||||
|
@ -22,9 +24,12 @@ import {Subscriber, Subscription} from "rxjs";
|
|||
export class ShareInZenodoComponent {
|
||||
public url: string = null;
|
||||
public title: string = "Share in Zenodo";
|
||||
|
||||
public piwikSiteId = null;
|
||||
|
||||
properties: EnvProperties = properties;
|
||||
communityId: string = null;
|
||||
community: CommunityInfo = null;
|
||||
private community: CommunityInfo = null;
|
||||
public pageContents = null;
|
||||
public divContents = null;
|
||||
|
||||
|
@ -55,6 +60,7 @@ export class ShareInZenodoComponent {
|
|||
private _title: Title,
|
||||
private _zenodoCommunitieService: ZenodoCommunitiesService,
|
||||
private _communityService: CommunityService,
|
||||
private _searchZenodoCommunitiesService: SearchZenodoCommunitiesService,
|
||||
private helper: HelperService,
|
||||
private _piwikService: PiwikService,
|
||||
private seoService: SEOService) {
|
||||
|
@ -78,33 +84,41 @@ export class ShareInZenodoComponent {
|
|||
community => {
|
||||
if (community) {
|
||||
this.communityId = community.communityId;
|
||||
this.subs.push(this._piwikService.trackView(this.properties, this.title).subscribe());
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
this.subs.push(this._piwikService.trackView(this.properties, this.title, this.piwikSiteId).subscribe());
|
||||
}
|
||||
this.community = community;
|
||||
this.masterZenodoCommunityId = this.community.zenodoCommunity;
|
||||
if (this.masterZenodoCommunityId) {
|
||||
this.subs.push(this._zenodoCommunitieService.getZenodoCommunityById(this.properties, this.masterZenodoCommunityId).subscribe(
|
||||
this.subs.push(this._zenodoCommunitieService.getZenodoCommunityById(this.properties, this.properties.zenodoCommunities + this.masterZenodoCommunityId, null).subscribe(
|
||||
result => {
|
||||
this.masterZenodoCommunity = result;
|
||||
|
||||
},
|
||||
error => {
|
||||
this.handleError("Error getting Master Zenodo community with id: " + this.masterZenodoCommunityId, error);
|
||||
|
||||
|
||||
}
|
||||
));
|
||||
}
|
||||
this.zenodoSearchUtils.status = this.errorCodes.LOADING;
|
||||
this.communityIds = this.community.otherZenodoCommunities;
|
||||
if(this.communityIds && this.masterZenodoCommunityId && this.communityIds.indexOf(this.masterZenodoCommunityId) !=-1){
|
||||
this.communityIds.splice(this.communityIds.indexOf(this.masterZenodoCommunityId), 1)
|
||||
}
|
||||
this.subs.push(this._searchZenodoCommunitiesService.searchZCommunities(this.properties, this.communityId).subscribe(
|
||||
result => {
|
||||
this.communityIds = result;
|
||||
this.zenodoSearchUtils.totalResults = this.communityIds.length;
|
||||
if (this.communityIds.length == 0) {
|
||||
this.zenodoSearchUtils.status = this.errorCodes.NONE;
|
||||
}
|
||||
this.getCommunities()
|
||||
|
||||
|
||||
},
|
||||
error => {
|
||||
//console.error("list of zenodo communities couldn't be loaded");
|
||||
this.handleError("Error getting list of zenodo communities for community with openaire id: " + this.communityId, error);
|
||||
this.zenodoSearchUtils.status = this.errorCodes.ERROR;
|
||||
} //this.handleError('System error retrieving community profile', error)
|
||||
));
|
||||
}
|
||||
}));
|
||||
|
||||
|
@ -145,8 +159,8 @@ export class ShareInZenodoComponent {
|
|||
}));
|
||||
}
|
||||
|
||||
getZenodoCommunityById(zenodoid) {
|
||||
this.subs.push(this._zenodoCommunitieService.getZenodoCommunityById(this.properties, zenodoid).subscribe(
|
||||
getZenodoCommunityById(zenodoid, openaireId) {
|
||||
this.subs.push(this._zenodoCommunitieService.getZenodoCommunityById(this.properties, this.properties.zenodoCommunities + zenodoid, openaireId).subscribe(
|
||||
result => {
|
||||
this.communities[zenodoid] = result;
|
||||
this.zenodoCommunitiesLoadedCount++;
|
||||
|
@ -167,7 +181,7 @@ export class ShareInZenodoComponent {
|
|||
this.zenodoSearchUtils.status = this.errorCodes.DONE;
|
||||
}
|
||||
//console.error("Zenodo community'"+zenodoid+"' couldn't be loaded");
|
||||
this.handleError("Error getting Zenodo community with id: " + zenodoid, error);
|
||||
this.handleError("Error getting Zenodo community with id: " + zenodoid + " and openaire id: " + openaireId, error);
|
||||
|
||||
}
|
||||
));
|
||||
|
@ -181,7 +195,7 @@ export class ShareInZenodoComponent {
|
|||
this.page = $event.value;
|
||||
for (let i = (this.page - 1) * this.size; i < this.communityIds.length && i < this.page * this.size; i++) {
|
||||
if (!this.communities[this.communityIds[i]["zenodoid"]]) {
|
||||
this.getZenodoCommunityById(this.communityIds[i]);
|
||||
this.getZenodoCommunityById(this.communityIds[i]["zenodoid"], this.communityIds[i]["id"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
|||
import {ShareInZenodoComponent} from './shareInZenodo.component';
|
||||
import {ShareInZenodoRoutingModule} from './shareInZenodo-routing.module';
|
||||
import {ZenodoCommunitiesServiceModule} from '../../openaireLibrary/connect/zenodoCommunities/zenodo-communitiesService.module';
|
||||
import {SearchZenodoCommunitiesServiceModule} from '../../openaireLibrary/connect/zenodoCommunities/searchZenodoCommunitiesService.module';
|
||||
|
||||
import {RouterModule} from "@angular/router";
|
||||
import {HelperModule} from "../../openaireLibrary/utils/helper/helper.module";
|
||||
|
@ -17,19 +18,17 @@ import {BreadcrumbsModule} from "../../openaireLibrary/utils/breadcrumbs/breadcr
|
|||
import {NoLoadPaging} from "../../openaireLibrary/searchPages/searchUtils/no-load-paging.module";
|
||||
import {IconsModule} from 'src/app/openaireLibrary/utils/icons/icons.module';
|
||||
import {LoadingModule} from 'src/app/openaireLibrary/utils/loading/loading.module';
|
||||
import {SearchCommunityDataprovidersService} from "../../openaireLibrary/connect/contentProviders/searchDataproviders.service";
|
||||
import {IsPageEnabledModule} from "../../openaireLibrary/utils/isPageEnabled/isPageEnabled.module";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule, ShareInZenodoRoutingModule, ZenodoCommunitiesServiceModule,
|
||||
CommonModule, ShareInZenodoRoutingModule, ZenodoCommunitiesServiceModule, SearchZenodoCommunitiesServiceModule,
|
||||
RouterModule, HelperModule, LoadingModule,
|
||||
PiwikServiceModule, Schema2jsonldModule, SEOServiceModule, BreadcrumbsModule, NoLoadPaging, IconsModule, IsPageEnabledModule
|
||||
PiwikServiceModule, Schema2jsonldModule, SEOServiceModule, BreadcrumbsModule, NoLoadPaging, IconsModule
|
||||
],
|
||||
declarations: [
|
||||
ShareInZenodoComponent
|
||||
],
|
||||
providers:[PreviousRouteRecorder, IsRouteEnabled, SearchCommunityDataprovidersService],
|
||||
providers:[PreviousRouteRecorder, IsRouteEnabled],
|
||||
exports: [
|
||||
ShareInZenodoComponent
|
||||
]
|
||||
|
|
|
@ -25,12 +25,12 @@ import {EnvProperties} from "../openaireLibrary/utils/properties/env-properties"
|
|||
</div>
|
||||
<h3>For {{openaireEntities.RESULTS | lowercase}}</h3>
|
||||
<div class="uk-margin-bottom">
|
||||
For {{openaireEntities.RESULTS | lowercase}} ({{openaireEntities.PUBLICATIONS | lowercase}}, {{openaireEntities.DATASETS | lowercase}}, {{openaireEntities.SOFTWARE | lowercase}} and {{openaireEntities.OTHER | lowercase}}) you can use the Graph API by adding the community parameter.
|
||||
For {{openaireEntities.RESULTS | lowercase}} ({{openaireEntities.PUBLICATIONS | lowercase}}, {{openaireEntities.DATASETS | lowercase}}, {{openaireEntities.SOFTWARE | lowercase}} and {{openaireEntities.OTHER | lowercase}}) you can use the Selective Access APIs by adding the community parameter.
|
||||
</div>
|
||||
<a class="uk-display-inline-block uk-button uk-button-text"
|
||||
href="https://graph.openaire.eu/docs/apis/search-api/research-products" target="_blank">
|
||||
href="https://graph.openaire.eu/develop/api.html" target="_blank">
|
||||
<span class="uk-flex uk-flex-middle">
|
||||
<span>Graph APIs</span>
|
||||
<span>Selective Access APIs</span>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -75,44 +75,43 @@ import {EnvProperties} from "../openaireLibrary/utils/properties/env-properties"
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-container uk-container-large uk-text-center">
|
||||
<div class="uk-container uk-container-large">
|
||||
<h1>Download records<span class="uk-text-primary">.</span></h1>
|
||||
<div class="uk-width-1-1 uk-flex uk-flex-center">
|
||||
<div class="uk-width-large">
|
||||
To get all metadata records of the community in bulk, use the dump of research communities on Zenodo.
|
||||
It contains one tar file per community.
|
||||
Each tar file contains gzipped tar files with one JSON per line.
|
||||
<br>
|
||||
<a href="https://graph.openaire.eu/docs/downloads/subgraphs#the-dumps-about-research-communities-initiatives-and-infrastructures" target="_blank">
|
||||
Learn more <span uk-icon="icon:chevron-right; ratio:0.7"></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-section uk-container uk-container-small">
|
||||
<div class="uk-grid uk-grid-large uk-flex uk-flex-center" uk-grid>
|
||||
<div class="uk-flex uk-flex-middle uk-flex-center uk-card uk-card-default uk-padding uk-width-medium">
|
||||
<a class="uk-display-inline-block uk-button uk-button-text"
|
||||
href="https://doi.org/10.5281/zenodo.3974604" target="_blank">
|
||||
<div class="uk-section uk-container uk-container-large">
|
||||
<div class="uk-grid uk-grid-large uk-child-width-1-2@m" uk-grid>
|
||||
<div class="uk-text-center uk-flex uk-flex-middle">
|
||||
<div class="uk-icon-bg-shadow uk-icon-bg-shadow-large uk-margin-auto">
|
||||
<icon name="download" customClass="uk-text-background" [flex]="true" ratio="2.5" type="outlined" visuallyHidden="For {{openaireEntities.RESULTS}}"></icon>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-text-center">
|
||||
<div class="">
|
||||
To get all metadata records of the community in bulk, use the dump of research communities on Zenodo.
|
||||
It contains one tar file per community.
|
||||
Each tar file contains gzipped tar files with one JSON per line.
|
||||
<a href="https://graph.openaire.eu/docs/downloads/subgraphs#the-dumps-about-research-communities-initiatives-and-infrastructures" target="_blank">
|
||||
More information</a>
|
||||
</div>
|
||||
<div class="uk-margin-top">
|
||||
<a class="uk-display-inline-block uk-button uk-button-text"
|
||||
href="https://doi.org/10.5281/zenodo.3974604" target="_blank">
|
||||
<span class="uk-flex uk-flex-middle">
|
||||
<span>Community dump</span>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div class="uk-flex uk-flex-middle uk-flex-center uk-card uk-card-default uk-padding uk-width-medium uk-margin-large-left">
|
||||
|
||||
<a class="uk-display-inline-block uk-button uk-button-text"
|
||||
href="https://doi.org/10.5281/zenodo.3974225" target="_blank">
|
||||
</a>
|
||||
<br>
|
||||
<a class="uk-display-inline-block uk-button uk-button-text"
|
||||
href="https://doi.org/10.5281/zenodo.3974225" target="_blank">
|
||||
<span class="uk-flex uk-flex-middle">
|
||||
<span>Schema</span>
|
||||
</span>
|
||||
</a>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
export class DevelopComponent implements OnInit, OnDestroy {
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
import {NgModule} from "@angular/core";
|
||||
import {RouterModule} from "@angular/router";
|
||||
import {PreviousRouteRecorder} from "../openaireLibrary/utils/piwik/previousRouteRecorder.guard";
|
||||
import {CommunityFosComponent} from "./fos.component";
|
||||
import {IsRouteEnabled} from "../openaireLibrary/error/isRouteEnabled.guard";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{
|
||||
path: '',
|
||||
component: CommunityFosComponent,
|
||||
canActivate: [IsRouteEnabled],
|
||||
canDeactivate: [PreviousRouteRecorder]
|
||||
}
|
||||
])
|
||||
]
|
||||
})
|
||||
export class LibFosRoutingModule {
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
import {Component} from "@angular/core";
|
||||
import {properties} from "../../environments/environment";
|
||||
import {ConnectHelper} from "../openaireLibrary/connect/connectHelper";
|
||||
import {PiwikHelper} from "../utils/piwikHelper";
|
||||
|
||||
@Component({
|
||||
selector: 'community-fos',
|
||||
template: `
|
||||
<fos [piwikSiteId]="piwikSiteId"></fos>
|
||||
`
|
||||
})
|
||||
|
||||
export class CommunityFosComponent {
|
||||
piwikSiteId;
|
||||
communityId;
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
import {CommonModule} from "@angular/common";
|
||||
import {NgModule} from "@angular/core";
|
||||
import {PreviousRouteRecorder} from "../openaireLibrary/utils/piwik/previousRouteRecorder.guard";
|
||||
import {LibFosRoutingModule} from "./fos-routing.module";
|
||||
import {FosRoutingModule} from "../openaireLibrary/fos/fos-routing.module";
|
||||
import {FosModule} from "../openaireLibrary/fos/fos.module";
|
||||
import {CommunityFosComponent} from "./fos.component";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
LibFosRoutingModule,
|
||||
FosRoutingModule,
|
||||
FosModule
|
||||
],
|
||||
declarations: [
|
||||
CommunityFosComponent
|
||||
],
|
||||
exports: [
|
||||
CommunityFosComponent
|
||||
],
|
||||
providers: [
|
||||
PreviousRouteRecorder
|
||||
]
|
||||
})
|
||||
export class LibFosModule {
|
||||
}
|
|
@ -51,7 +51,9 @@ export class GetStartedComponent implements OnInit {
|
|||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.subscriptions.push(this._piwikService.trackView(this.properties, this.pageTitle).subscribe());
|
||||
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
this.subscriptions.push(this._piwikService.trackView(this.properties, this.pageTitle, this.properties.piwikSiteId).subscribe());
|
||||
}
|
||||
this.url = this.properties.domain + this.properties.baseLink + this._router.url;
|
||||
this.seoService.createLinkForCanonicalURL(this.url);
|
||||
this.updateUrl(this.url);
|
||||
|
|
|
@ -31,7 +31,7 @@ export class FeaturedPageComponent {
|
|||
this.breadcrumbs = data.breadcrumbs;
|
||||
}
|
||||
}))
|
||||
this.subs.push(this.config.portalAsObservable.subscribe((portal: Portal) => {
|
||||
this.subs.push(this.config.communityInformationState.subscribe((portal: Portal) => {
|
||||
if (portal) {
|
||||
let pages: Page[] = <Page[]>portal.pages;
|
||||
this.page = pages.find(page => (page.route == this._router.url));
|
||||
|
|
|
@ -8,7 +8,7 @@ import {HelperService} from "../openaireLibrary/utils/helper/helper.service";
|
|||
import {ConnectHelper} from "../openaireLibrary/connect/connectHelper";
|
||||
import {Subscriber} from "rxjs";
|
||||
import {properties} from "../../environments/environment";
|
||||
import {ConfigurationService} from "../openaireLibrary/utils/configuration/configuration.service";
|
||||
import {PiwikHelper} from "../utils/piwikHelper";
|
||||
|
||||
@Component({
|
||||
selector: 'html-page',
|
||||
|
@ -28,20 +28,24 @@ export class HtmlPageComponent {
|
|||
@Input() description: string;
|
||||
private subscriptions = [];
|
||||
communityId;
|
||||
piwikSiteId;
|
||||
|
||||
constructor(private route: ActivatedRoute, private _router: Router,
|
||||
private _meta: Meta,
|
||||
private _title: Title,
|
||||
private seoService: SEOService,
|
||||
private _piwikService: PiwikService,
|
||||
private configurationService: ConfigurationService,
|
||||
private helper: HelperService) {
|
||||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.subscriptions.push(this._piwikService.trackView(this.properties, this.pageTitle).subscribe());
|
||||
this.communityId = ConnectHelper.getCommunityFromDomain(this.properties.domain);
|
||||
this.url = this.properties.domain + this.properties.baseLink + this._router.url;
|
||||
this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
this.subscriptions.push(this._piwikService.trackView(this.properties, this.pageTitle, this.properties.piwikSiteId).subscribe());
|
||||
}
|
||||
//TODO set the proper URL
|
||||
this.url = this.properties.domain + this._router.url;
|
||||
this.seoService.createLinkForCanonicalURL(this.url);
|
||||
this.updateUrl(this.url);
|
||||
this.updateTitle(this.pageTitle);
|
||||
|
|
|
@ -11,7 +11,7 @@ import {Breadcrumb} from "../../openaireLibrary/utils/breadcrumbs/breadcrumbs.co
|
|||
</div>
|
||||
<div class="uk-container uk-container-large uk-section uk-section-small uk-margin-medium-bottom">
|
||||
<h1 class="uk-margin-top uk-margin-large-bottom uk-width-1-2@m">Supporting Organizations</h1>
|
||||
<html-page description="OpenAIRE - Connect, Community Gateway, research community, organizations" pageTitle="Supporting Organizations"></html-page>
|
||||
<html-page description="Organizations" pageTitle="Supporting Organizations"></html-page>
|
||||
<affiliations [longView]="true" [getAffiliationsFromAPI]="true"></affiliations>
|
||||
</div>
|
||||
`
|
||||
|
|
|
@ -6,7 +6,7 @@ import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
|||
import {OrganizationsPageComponent} from './organizationsPage.component';
|
||||
import {OrganizationsPageRoutingModule} from './organizationsPage-routing.module';
|
||||
|
||||
import {AffiliationsModule} from "../../openaireLibrary/connect/affiliations/affiliations.module";
|
||||
import {AffiliationsModule} from "../../affiliations/affiliations.module";
|
||||
import {HelperModule} from "../../openaireLibrary/utils/helper/helper.module";
|
||||
import {CommonModule} from "@angular/common";
|
||||
import {HtmlPagesModule} from "../htmlPages.module";
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
import {Component, OnInit} from '@angular/core';
|
||||
import {PiwikHelper} from '../../utils/piwikHelper';
|
||||
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-dataprovider',
|
||||
template: `
|
||||
<dataprovider [communityId]="communityId"></dataprovider>`,
|
||||
<dataprovider [piwikSiteId]=piwikSiteId [communityId]="communityId"></dataprovider>`,
|
||||
})
|
||||
export class OpenaireDataProviderComponent implements OnInit {
|
||||
piwikSiteId;
|
||||
communityId;
|
||||
|
||||
constructor() {
|
||||
|
@ -15,5 +17,6 @@ export class OpenaireDataProviderComponent implements OnInit {
|
|||
|
||||
ngOnInit() {
|
||||
this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
import {Component, OnInit} from '@angular/core';
|
||||
import {PiwikHelper} from '../../utils/piwikHelper';
|
||||
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-dataset',
|
||||
template: `
|
||||
<result-landing type="dataset" [communityId]="communityId"></result-landing>
|
||||
<result-landing type="dataset" [piwikSiteId]="piwikSiteId" [communityId]="communityId"></result-landing>
|
||||
`,
|
||||
})
|
||||
export class OpenaireDatasetComponent implements OnInit {
|
||||
piwikSiteId;
|
||||
communityId;
|
||||
|
||||
constructor() {
|
||||
|
@ -16,5 +18,6 @@ export class OpenaireDatasetComponent implements OnInit {
|
|||
|
||||
ngOnInit() {
|
||||
this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {PiwikHelper} from '../../utils/piwikHelper';
|
||||
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-htmlProjectReport',
|
||||
template: `
|
||||
<htmlProjectReport [communityId]="communityId"></htmlProjectReport>`,
|
||||
<htmlProjectReport [piwikSiteId]=piwikSiteId [communityId]="communityId"></htmlProjectReport>`,
|
||||
})
|
||||
export class OpenaireHtmlProjectReportComponent {
|
||||
piwikSiteId;
|
||||
communityId;
|
||||
|
||||
constructor() {
|
||||
|
@ -15,5 +17,6 @@ export class OpenaireHtmlProjectReportComponent {
|
|||
|
||||
ngOnInit() {
|
||||
this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {PiwikHelper} from '../../utils/piwikHelper';
|
||||
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-organization',
|
||||
template: `
|
||||
<organization [communityId]="communityId"></organization>`,
|
||||
<organization [piwikSiteId]=piwikSiteId [communityId]="communityId"></organization>`,
|
||||
})
|
||||
export class OpenaireOrganizationComponent {
|
||||
piwikSiteId;
|
||||
communityId;
|
||||
|
||||
constructor() {
|
||||
|
@ -15,5 +17,6 @@ export class OpenaireOrganizationComponent {
|
|||
|
||||
ngOnInit() {
|
||||
this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,20 +1,23 @@
|
|||
import {Component, OnInit} from '@angular/core';
|
||||
import {PiwikHelper} from '../../utils/piwikHelper';
|
||||
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-orp',
|
||||
template: `
|
||||
<result-landing type="orp" [communityId]="communityId"></result-landing>
|
||||
<result-landing type="orp" [piwikSiteId]="piwikSiteId" [communityId]="communityId"></result-landing>
|
||||
`,
|
||||
})
|
||||
|
||||
export class OpenaireOrpComponent implements OnInit {
|
||||
piwikSiteId = null;
|
||||
communityId = null;
|
||||
|
||||
constructor() {}
|
||||
|
||||
ngOnInit() {
|
||||
this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
import {Component, OnInit} from '@angular/core';
|
||||
import {PiwikHelper} from '../../utils/piwikHelper';
|
||||
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-project',
|
||||
template: `
|
||||
<project [communityId]="communityId"></project>`,
|
||||
<project [piwikSiteId]=piwikSiteId [communityId]="communityId"></project>`,
|
||||
})
|
||||
export class OpenaireProjectComponent implements OnInit {
|
||||
piwikSiteId;
|
||||
communityId;
|
||||
|
||||
constructor() {
|
||||
|
@ -15,5 +17,6 @@ export class OpenaireProjectComponent implements OnInit {
|
|||
|
||||
ngOnInit() {
|
||||
this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,19 +1,22 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {PiwikHelper} from '../../utils/piwikHelper';
|
||||
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-publication',
|
||||
template: `
|
||||
<result-landing type="publication" [communityId]="communityId"></result-landing>
|
||||
<result-landing type="publication" [piwikSiteId]="piwikSiteId" [communityId]="communityId"></result-landing>
|
||||
`,
|
||||
})
|
||||
export class OpenairePublicationComponent {
|
||||
piwikSiteId = null;
|
||||
communityId = null;
|
||||
|
||||
constructor() {}
|
||||
|
||||
ngOnInit() {
|
||||
this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,18 +1,21 @@
|
|||
import {Component, OnInit} from '@angular/core';
|
||||
import {ConnectHelper} from "../../openaireLibrary/connect/connectHelper";
|
||||
import {PiwikHelper} from "../../utils/piwikHelper";
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-publication',
|
||||
template: `
|
||||
<result-landing type="result" [communityId]="communityId"></result-landing>`,
|
||||
<result-landing type="result" [piwikSiteId]="piwikSiteId" [communityId]="communityId"></result-landing>`,
|
||||
})
|
||||
export class OpenaireResultComponent implements OnInit{
|
||||
piwikSiteId;
|
||||
communityId;
|
||||
|
||||
constructor() {}
|
||||
|
||||
ngOnInit() {
|
||||
this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
import {Component, OnInit} from '@angular/core';
|
||||
import {PiwikHelper} from '../../utils/piwikHelper';
|
||||
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-software',
|
||||
template: `
|
||||
<result-landing type="software" [communityId]="communityId"></result-landing>
|
||||
<result-landing type="software" [piwikSiteId]="piwikSiteId" [communityId]="communityId"></result-landing>
|
||||
`,
|
||||
})
|
||||
export class OpenaireSoftwareComponent implements OnInit {
|
||||
piwikSiteId;
|
||||
communityId;
|
||||
|
||||
constructor() {
|
||||
|
@ -16,5 +18,6 @@ export class OpenaireSoftwareComponent implements OnInit {
|
|||
|
||||
ngOnInit() {
|
||||
this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
import {NgModule} from '@angular/core';
|
||||
import {RouterModule} from '@angular/router';
|
||||
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {FaqsComponent} from "./faqs.component";
|
||||
import {IsRouteEnabled} from "../../openaireLibrary/error/isRouteEnabled.guard";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: FaqsComponent, canActivate: [ IsRouteEnabled], canDeactivate: [PreviousRouteRecorder] }
|
||||
|
||||
])
|
||||
]
|
||||
})
|
||||
export class FaqsRoutingModule { }
|
|
@ -0,0 +1,272 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {Breadcrumb} from "../../openaireLibrary/utils/breadcrumbs/breadcrumbs.component";
|
||||
import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properties";
|
||||
import {ActivatedRoute, Router} from "@angular/router";
|
||||
import {Meta, Title} from "@angular/platform-browser";
|
||||
import {SEOService} from "../../openaireLibrary/sharedComponents/SEO/SEO.service";
|
||||
import {PiwikService} from "../../openaireLibrary/utils/piwik/piwik.service";
|
||||
import {HelperService} from "../../openaireLibrary/utils/helper/helper.service";
|
||||
import {Subscriber} from "rxjs";
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'faqs',
|
||||
template: `
|
||||
<schema2jsonld *ngIf="url" [URL]="url" [name]="pageTitle" type="other"></schema2jsonld>
|
||||
<div class="uk-container uk-container-large uk-section uk-section-small uk-padding-remove-bottom">
|
||||
<div class="uk-padding-small uk-padding-remove-horizontal">
|
||||
<breadcrumbs [breadcrumbs]="breadcrumbs"></breadcrumbs>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-section uk-padding-remove-top">
|
||||
<div class="uk-container uk-container-large uk-margin-top">
|
||||
<h1>Frequently Asked Questions</h1>
|
||||
<div class="uk-container uk-margin-large-top">
|
||||
<ul class="uk-accordion" uk-accordion="">
|
||||
<li>
|
||||
<a class="uk-accordion-title" href="#">What is a "Research community"?</a>
|
||||
<div aria-hidden="true" class="uk-accordion-content text-small uk-margin-medium-bottom" hidden="">
|
||||
<p>A research community is a community of practice that gathers together researchers and practitioners
|
||||
with common research interests (e.g. a research discipline or a specific research topic) and,
|
||||
possibly, a decisional board. In some cases, a community builds and grows in the context of a research
|
||||
infrastructure that provides services and tools supporting the research activities of the members of a
|
||||
community. In other cases, a community builds and grows in the context of one or more research
|
||||
projects, forming what we call a “research initiative”.</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a class="uk-accordion-title" href="#">What is the difference between a Community Gateway and the
|
||||
Research Community Dashboard (RCD)?</a>
|
||||
<div aria-hidden="true" class="uk-accordion-content text-small uk-margin-medium-bottom" hidden="">
|
||||
<p>The RCD offers on demand Community Gateways that communities can customize to fit their sharing,
|
||||
publishing and discovery needs. Through the RCD, gateway managers can configure the respective
|
||||
Community Gateway by providing (i) the criteria identifying the subset of the OpenAIRE Research Graph
|
||||
that pertains to the community, and (ii) the community statistics to be made public or private.</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a class="uk-accordion-title" href="#">How can Research Community thematic services integrate with
|
||||
the Research Community Dashboard (RCD)?</a>
|
||||
<div aria-hidden="true" class="uk-accordion-content text-small uk-margin-medium-bottom" hidden="">
|
||||
<p>Once a Community Gateway has been created, several thematic service integration patterns are
|
||||
possible:</p>
|
||||
<ol>
|
||||
<li>
|
||||
<span class="uk-text-bold">Community-specific repository:</span> OpenAIRE can guide your
|
||||
repository managers on how to make the repository
|
||||
<a href="https://www.openaire.eu/validator-registration-guide" target="_blank"> “OpenAIRE-compliant”</a>.
|
||||
The gateway managers can configure the gateway so that all metadata records collected from the
|
||||
repository are available in the gateway. If the repository manager wants to get the enrichments
|
||||
OpenAIRE applies to the records, he/she can <a href="https://www.openaire.eu/content-enrichment-guide"
|
||||
target="_blank">
|
||||
activate the Broker service</a> using <a href="https://provide.openaire.eu/landing" target="_blank">the
|
||||
Content
|
||||
Provider Dashboard</a>.
|
||||
</li>
|
||||
<li>
|
||||
<span class="uk-text-bold">Continuous publishing:</span> thematic services, once authorized by the
|
||||
user, can publish their outputs (e.g. datasets, digital experiments) on behalf of the user. Thematic
|
||||
services and digital experiment platforms can be easily enhanced with a publishing step by
|
||||
integrating the <a href="https://developers.zenodo.org/" target="_blank">Zenodo API</a>. To know
|
||||
more, <a class="uk-link" href="https://doi.org/10.5281/zenodo.1314672" target="_blank"> check out
|
||||
the pilot we have designed with the EPOS-IT infrastructure. </a></li>
|
||||
<li>
|
||||
<span class="uk-text-bold">Community web site:</span> you can use the
|
||||
<a href="http://develop.openaire.eu/api.html" target="_blank">OpenAIRE Search API</a> to show the
|
||||
research products relevant to your community on your own website.
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
</li>
|
||||
<li><a class="uk-accordion-title" href="#">What does my Research Community gain in terms of Open
|
||||
Science?</a>
|
||||
<div aria-hidden="true" class="uk-accordion-content text-small uk-grid uk-margin-medium-bottom" hidden="" uk-grid="">
|
||||
<div class="uk-width-1-1 uk-first-column"><span
|
||||
class="uk-text-bold">Discovery and reproducibility:</span> Your community will have a single entry
|
||||
point where all research products, of any type (literature, datasets, software, workflows, protocols),
|
||||
are gathered together and linked with semantic relationships. Researchers can find a research product
|
||||
in the gateway (e.g. a research dataset) and easily find out everything related to it and that is
|
||||
needed to re-use it, but also to replicate and reproduce a research activity (e.g. software used to
|
||||
process the dataset, the journal article where the research is described).
|
||||
</div>
|
||||
<div class="uk-width-1-1 uk-grid-margin uk-first-column"><span class="uk-text-bold">Sharing:</span>
|
||||
scientific literature is only the tip of the iceberg. With a Community Gateway, you say to the members
|
||||
of your community that everything they produce is relevant and that they should get credit for it.
|
||||
</div>
|
||||
<div class="uk-width-1-1 uk-grid-margin uk-first-column"><span
|
||||
class="uk-text-bold">Credit for all:</span> Making research data, software, methods and scientific
|
||||
workflows available “as soon as possible” is one of the “mantra” of Open
|
||||
Science. If your community has integrated Zenodo into a digital experiment platform, researchers no
|
||||
longer bear the burden of manually publishing their research products, while it is also easier for
|
||||
them to publish different versions, which reflect different stages of their activities.
|
||||
</div>
|
||||
<div class="uk-width-1-1 uk-grid-margin uk-first-column"><span class="uk-text-bold">Awareness:</span>
|
||||
Thanks to dedicated pages of the Community Gateway you can suggest best practices to the researchers
|
||||
of the community. Open Science experts of OpenAIRE will be available to assist you.
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a class="uk-accordion-title" href="#">How is the service part of the European Open Science Cloud?</a>
|
||||
<div aria-hidden="true" class="uk-accordion-content text-small uk-margin-medium-bottom" hidden="">
|
||||
<p>OpenAIRE has onboarded in the EOSC Market Place both the RCD, as a service that offers on-demand
|
||||
Community Gateways, and the Gateways as services openly accessible by researchers to explore specific
|
||||
domains of interest.
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a class="uk-accordion-title" href="#">Who owns the gateway?</a>
|
||||
<div aria-hidden="true" class="uk-accordion-content text-small uk-margin-medium-bottom" hidden="">
|
||||
<p>The community owns the portal, OpenAIRE operates it.</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a class="uk-accordion-title" href="#">How is the gateway operated?</a>
|
||||
<div aria-hidden="true" class="uk-accordion-content text-small uk-margin-medium-bottom" hidden="">
|
||||
<p>The gateway is hosted on a virtual machine operated by OpenAIRE and hosted at the <a
|
||||
href="https://icm.edu.pl/en/centre-of-technology/" target="_blank">ICM data centre</a>. The Gateway
|
||||
is built with Angular and uses RESTful APIs, built with Java and the Spring Framework, to access the
|
||||
OpenAIRE Research Graph. OpenAIRE is responsible to keep the back-end and front-end services
|
||||
up-to-date and monitors the uptime and usage of the gateway, via the matomo web analytics platform.
|
||||
Aggregated usage data is used by the OpenAIRE team for reporting purposes and does not include any
|
||||
personal data.
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a class="uk-accordion-title" href="#">What is the SLA of the service?</a>
|
||||
<div aria-hidden="true" class="uk-accordion-content text-small uk-margin-medium-bottom" hidden="">
|
||||
<p>The RCD and the gateways are subject to the generic <a class="uk-link"
|
||||
href="https://www.openaire.eu/service-level-agreement"
|
||||
target="_blank">OpenAIRE services SLA</a>.
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a class="uk-accordion-title" href="#">What are the costs?</a>
|
||||
<div aria-hidden="true" class="uk-accordion-content text-small uk-margin-medium-bottom" hidden="">
|
||||
<div>Researchers of the community shall not pay to access the Community Gateway.</div>
|
||||
<div>For the deployment and maintenance of a gateway, OpenAIRE may need support to cover part of the
|
||||
costs (hardware, hardware management, application administration, software maintenance, and text
|
||||
mining).
|
||||
</div>
|
||||
<div>Please <a routerLink="/contact-us">contact us</a> to learn more about the service and the possible
|
||||
options.
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a class="uk-accordion-title" href="#">In what other areas can my Research community collaborate with
|
||||
OpenAIRE?</a>
|
||||
<div aria-hidden="true" class="uk-accordion-content text-small uk-grid uk-margin-medium-bottom" hidden="" uk-grid="">
|
||||
<div class="uk-width-1-1">
|
||||
<div style="font-style: italic">Open Science training</div>
|
||||
Help us training on Open Science students and researchers of your community by organising a workshop.
|
||||
<a class="uk-link" href="https://www.openaire.eu/workshops-page" target="_blank">Check for ideas and
|
||||
materials</a>.
|
||||
</div>
|
||||
<div class="uk-width-1-1">
|
||||
<div style="font-style: italic">Train the trainer</div>
|
||||
Join the <a class="uk-link" href="https://www.openaire.eu/cop-training" target="_blank">OpenAIRE
|
||||
Community of Practice</a>, an informal network to share training experience on Open Science, research
|
||||
and e-infrastructures.
|
||||
</div>
|
||||
<div class="uk-width-1-1">
|
||||
<div style="font-style: italic">Citizen Science</div>
|
||||
Do you collaborate with schools? Learn more about the
|
||||
<a class="uk-link" href="https://www.openaire.eu/citizen-science-activities-in-openaire"
|
||||
target="_blank">
|
||||
OpenAIRE activities for Citizen Science
|
||||
</a>.
|
||||
</div>
|
||||
<div class="uk-width-1-1">
|
||||
<div style="font-style: italic">Open Innovation Programme</div>
|
||||
Spread the word about the OpenAIRE
|
||||
<a class="uk-link" href="https://www.openaire.eu/open-innovation-in-openaire" target="_blank">Open
|
||||
Innovation programme</a>
|
||||
for SMEs, start-ups and research labs. The programme’s goal is to discover, support and fund
|
||||
innovative
|
||||
ideas and implementations of software in the Open Science domain.
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
export class FaqsComponent {
|
||||
public pageTitle: string = "OpenAIRE - Connect | FAQs";
|
||||
public pageDescription: string = "Frequently asked questions about OpenAIRE Connect research gateway";
|
||||
public breadcrumbs: Breadcrumb[] = [{name: 'home', route: '/'}, {name: 'About', route: '/about'}, {name: 'FAQs'}];
|
||||
private subscriptions = [];
|
||||
public pageContents = null;
|
||||
public divContents = null;
|
||||
public url: string = null;
|
||||
properties: EnvProperties;
|
||||
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
private _router: Router,
|
||||
private _meta: Meta,
|
||||
private _title: Title,
|
||||
private seoService: SEOService,
|
||||
private _piwikService: PiwikService,
|
||||
private helper: HelperService) {
|
||||
}
|
||||
|
||||
public ngOnInit() {
|
||||
|
||||
this.properties = properties;
|
||||
|
||||
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
this.subscriptions.push(this._piwikService.trackView(this.properties, this.pageTitle, this.properties.piwikSiteId).subscribe());
|
||||
}
|
||||
this.url = this.properties.baseLink + this._router.url;
|
||||
this.seoService.createLinkForCanonicalURL(this.url);
|
||||
this.updateUrl(this.url);
|
||||
this.updateTitle(this.pageTitle);
|
||||
this.updateDescription(this.pageDescription);
|
||||
|
||||
//this.getDivContents();
|
||||
this.getPageContents();
|
||||
|
||||
}
|
||||
|
||||
private getPageContents() {
|
||||
this.subscriptions.push(this.helper.getPageHelpContents(this.properties, 'connect', this._router.url).subscribe(contents => {
|
||||
this.pageContents = contents;
|
||||
}));
|
||||
}
|
||||
|
||||
private getDivContents() {
|
||||
this.subscriptions.push(this.helper.getDivHelpContents(this.properties, 'connect', this._router.url).subscribe(contents => {
|
||||
this.divContents = contents;
|
||||
}));
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
this.subscriptions.forEach(subscription => {
|
||||
if (subscription instanceof Subscriber) {
|
||||
subscription.unsubscribe();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private updateDescription(description: string) {
|
||||
this._meta.updateTag({content: description}, "name='description'");
|
||||
this._meta.updateTag({content: description}, "property='og:description'");
|
||||
}
|
||||
|
||||
private updateTitle(title: string) {
|
||||
var _title = ((title.length > 50) ? title.substring(0, 50) : title);
|
||||
this._title.setTitle(_title);
|
||||
this._meta.updateTag({content: _title}, "property='og:title'");
|
||||
}
|
||||
|
||||
private updateUrl(url: string) {
|
||||
this._meta.updateTag({content: url}, "property='og:url'");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {RouterModule} from '@angular/router';
|
||||
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {PiwikService} from '../../openaireLibrary/utils/piwik/piwik.service';
|
||||
|
||||
import {FaqsComponent} from "./faqs.component";
|
||||
import {FaqsRoutingModule} from "./faqs-routing.module";
|
||||
import {HelperModule} from "../../openaireLibrary/utils/helper/helper.module";
|
||||
import {IsRouteEnabled} from "../../openaireLibrary/error/isRouteEnabled.guard";
|
||||
import {Schema2jsonldModule} from "../../openaireLibrary/sharedComponents/schema2jsonld/schema2jsonld.module";
|
||||
import {SEOServiceModule} from "../../openaireLibrary/sharedComponents/SEO/SEOService.module";
|
||||
import {BreadcrumbsModule} from "../../openaireLibrary/utils/breadcrumbs/breadcrumbs.module";
|
||||
import {HtmlPagesModule} from "../../htmlPages/htmlPages.module";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule, RouterModule, FaqsRoutingModule, HelperModule,
|
||||
Schema2jsonldModule, SEOServiceModule, BreadcrumbsModule, HtmlPagesModule
|
||||
],
|
||||
declarations: [
|
||||
FaqsComponent
|
||||
],
|
||||
exports: [
|
||||
FaqsComponent
|
||||
],
|
||||
providers:[
|
||||
PreviousRouteRecorder, PiwikService, IsRouteEnabled
|
||||
]
|
||||
})
|
||||
export class FaqsModule { }
|
|
@ -9,7 +9,6 @@ import {Breadcrumb} from "../openaireLibrary/utils/breadcrumbs/breadcrumbs.compo
|
|||
import {Subscriber} from "rxjs";
|
||||
import {properties} from "../../environments/environment";
|
||||
import {QuickContactService} from '../openaireLibrary/sharedComponents/quick-contact/quick-contact.service';
|
||||
import {OpenaireEntities} from "../openaireLibrary/utils/properties/searchFields";
|
||||
|
||||
@Component({
|
||||
selector: 'learn-how',
|
||||
|
@ -20,41 +19,7 @@ import {OpenaireEntities} from "../openaireLibrary/utils/properties/searchFields
|
|||
<breadcrumbs [breadcrumbs]="breadcrumbs"></breadcrumbs>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-section uk-padding-remove-top">
|
||||
<div class="uk-container uk-container-large uk-margin-top uk-margin-large-bottom">
|
||||
<p>
|
||||
OpenAIRE CONNECT is a platform-as-a-service that enables research communities, research performing organizations
|
||||
and research infrastructures to create customized web portals for discovering and sharing their research
|
||||
outcomes and Open Science practices. It supports both public and private settings, integrates Open Science for
|
||||
enhanced collaboration, and offers rapid setup and branding customization. In short, a virtual gateway for your
|
||||
community, however you define it.
|
||||
</p>
|
||||
<p>
|
||||
OpenAIRE CONNECT significantly improves the visibility and dissemination of research within and beyond the
|
||||
community, connecting it to the wider scientific landscape.
|
||||
</p>
|
||||
<p>
|
||||
This service was created for use by research communities that want to gather their research outcomes, currently
|
||||
scattered across multiple repositories and archives, into a single entry-point, such as:
|
||||
</p>
|
||||
<ul>
|
||||
|
||||
|
||||
<li>Research projects, that want research outcomes related to a specific research topic to be collected at a
|
||||
single entry-point
|
||||
</li>
|
||||
|
||||
<li>Research infrastructures, that want to track the research outcomes produced thanks to the resources they
|
||||
offer
|
||||
</li>
|
||||
<li>
|
||||
University alliances, that require a single entry-point to all research outcomes of their alliance members
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-section uk-padding-remove-top pattern-background">
|
||||
<div class="uk-section uk-padding-remove-top pattern-background">
|
||||
<div class="uk-container uk-container-large uk-margin-top uk-margin-large-bottom">
|
||||
<div class="uk-grid uk-grid-large" uk-grid>
|
||||
<div class="uk-width-1-3@m uk-width-1-1">
|
||||
|
@ -219,10 +184,10 @@ import {OpenaireEntities} from "../openaireLibrary/utils/properties/searchFields
|
|||
<h6 class="uk-margin-small-bottom">Content</h6>
|
||||
<div>Manage projects, content providers, subjects and zenodo communities that are related to the research community.</div>
|
||||
</div>
|
||||
<!--<div class="left-text uk-margin-medium-bottom uk-padding uk-margin-medium-left uk-padding-remove-right">
|
||||
<div class="left-text uk-margin-medium-bottom uk-padding uk-margin-medium-left uk-padding-remove-right">
|
||||
<h6 class="uk-margin-small-bottom">Statistics & Charts</h6>
|
||||
<div>Manage statistical numbers & charts that will be displayed in the community overview and graph analysis views.</div>
|
||||
</div>-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="mid uk-flex uk-flex-middle">
|
||||
<div class="uk-position-relative">
|
||||
|
@ -249,139 +214,6 @@ import {OpenaireEntities} from "../openaireLibrary/utils/properties/searchFields
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-section uk-section-large uk-container uk-container-large">
|
||||
<div class="uk-margin-medium-top">
|
||||
<h2 class="uk-h1">
|
||||
Our mission for an Open and FAIR science<span class="uk-text-primary">.</span>
|
||||
</h2>
|
||||
<div class="uk-margin-large-top">
|
||||
<div class="uk-child-width-1-3@m uk-child-width-1-1@s uk-grid-large uk-grid-match uk-grid" uk-grid=""
|
||||
uk-height-match=".target">
|
||||
<div class="uk-first-column">
|
||||
<div class="uk-card uk-card-default uk-padding">
|
||||
<div class="uk-card-media-top uk-flex uk-flex-middle uk-flex-center
|
||||
\t\t\t\t\t\t\t\tuk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">
|
||||
<div>
|
||||
<img src="assets/connect-assets/home/virtual.svg"
|
||||
alt="A Virtual Research Environment" style="height:60px; width:67px"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-card-body uk-padding-remove uk-margin-small-bottom">
|
||||
<div class="target uk-text-center">
|
||||
<h3 class="uk-6 uk-card-title uk-margin-small-bottom">A Virtual Research
|
||||
Environment</h3>
|
||||
<div>An overlay platform making it easy to share, link, disseminate and monitor all
|
||||
your {{entities.PUBLICATIONS | lowercase}},
|
||||
{{entities.DATASETS | lowercase}}, {{entities.SOFTWARE | lowercase}}, methods.
|
||||
In one place.
|
||||
</div>
|
||||
</div>
|
||||
<hr/>
|
||||
<div>
|
||||
<ul class="uk-list uk-text-small">
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85"
|
||||
flex="true"></icon>
|
||||
Access to OpenAIRE research graph
|
||||
</li>
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85"
|
||||
flex="true"></icon>
|
||||
Moderated, front-end linking
|
||||
</li>
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85"
|
||||
flex="true"></icon>
|
||||
Cross-platform search
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="uk-card uk-card-default uk-padding">
|
||||
<div class="uk-card-media-top uk-flex uk-flex-middle uk-flex-center
|
||||
\t\t\t\t\t\t\t\t\t\t\t\t\tuk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">
|
||||
<div>
|
||||
<img src="assets/connect-assets/home/open_science.svg" alt="Open science in action"
|
||||
style="height:60px; width:67px"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-card-body uk-padding-remove uk-margin-small-bottom">
|
||||
<div class="target uk-text-center" style="">
|
||||
<h3 class="uk-h6 uk-card-title uk-margin-small-bottom">Open Science in action</h3>
|
||||
<div>A time-saving bundle of services for researchers to effortlessly practice open
|
||||
science. An integral
|
||||
part of the European Open Science Cloud.
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div>
|
||||
<ul class="uk-list uk-text-small">
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85"
|
||||
flex="true"></icon>
|
||||
Use of OpenAIRE Guidelines
|
||||
</li>
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85"
|
||||
flex="true"></icon>
|
||||
Publish and get DOIs with Zenodo
|
||||
</li>
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85"
|
||||
flex="true"></icon>
|
||||
EOSC Single Sign-On
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="uk-card uk-card-default uk-padding">
|
||||
<div class="uk-card-media-top uk-flex uk-flex-middle uk-flex-center
|
||||
\t\t\t\t\t\t\t\t\t\t\t\t\tuk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">
|
||||
<div>
|
||||
<img src="assets/connect-assets/home/customize.svg" alt="Customized to your needs"
|
||||
style="height:60px; width:67px"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-card-body uk-padding-remove uk-margin-small-bottom">
|
||||
<div class="target uk-text-center" style="">
|
||||
<h3 class="uk-h6 uk-card-title uk-margin-small-bottom">Customized to your needs</h3>
|
||||
<div>A Gateway with your own brand, rules for aggregation, text & data mining,
|
||||
and presentation. Run
|
||||
by you via a simple, yet powerful backend administration tool.
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div>
|
||||
<ul class="uk-list uk-text-small">
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85"
|
||||
flex="true"></icon>
|
||||
Access control
|
||||
</li>
|
||||
<!--<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85" flex="true"></icon>
|
||||
Analytics: rich set of indicators
|
||||
</li>-->
|
||||
<li class="uk-flex uk-flex-middle">
|
||||
<icon class="uk-margin-small-right uk-text-primary" name="done" ratio="0.85"
|
||||
flex="true"></icon>
|
||||
Look & feel to match your brand
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div #contact class="uk-section uk-container uk-container-large uk-text-center uk-flex uk-flex-column uk-flex-middle">
|
||||
<h2 class="uk-h2 uk-margin-medium-top uk-width-3-5@m">We look forward to working together and helping you unlock the full potential of your research community through open science<span class="uk-text-primary">.</span></h2>
|
||||
<a class="uk-button uk-button-primary uk-text-uppercase uk-margin-medium-top uk-margin-medium-bottom" routerLink="/contact-us">Contact us</a>
|
||||
|
@ -393,8 +225,6 @@ export class LearnHowComponent implements OnInit {
|
|||
public pageContents = null;
|
||||
public divContents = null;
|
||||
public activeStep = 0;
|
||||
public entities = OpenaireEntities;
|
||||
|
||||
steps: any[] = [
|
||||
{name: 'All 4 Steps', icon: '<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 234.82 236.48"><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><circle class="cls-1" cx="48.45" cy="48.45" r="48.45"/><circle class="cls-1" cx="186.37" cy="48.45" r="48.45"/><circle class="cls-1" cx="48.45" cy="188.03" r="48.45"/><circle class="cls-1" cx="186.37" cy="188.03" r="48.45"/></g></g></svg>'},
|
||||
{name: '1st Step', icon: '<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 227.96 265.77"><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M195.82,3.62h-29V27h29a7.74,7.74,0,0,1,8,7.48V234.88a7.73,7.73,0,0,1-8,7.47H32.14a7.73,7.73,0,0,1-8-7.47V34.52a7.74,7.74,0,0,1,8-7.48h29V3.62h-29C14.42,3.62,0,17.48,0,34.52V234.88c0,17,14.42,30.89,32.14,30.89H195.82c17.72,0,32.14-13.86,32.14-30.89V34.52C228,17.48,213.54,3.62,195.82,3.62Z"/><path class="cls-1" d="M75.47,30.67h77a4.7,4.7,0,0,0,4.6-4.79V4.78A4.7,4.7,0,0,0,152.48,0h-77a4.7,4.7,0,0,0-4.6,4.78v21.1A4.7,4.7,0,0,0,75.47,30.67Z"/><rect class="cls-1" x="49.23" y="122.53" width="42.79" height="30.11" rx="5.57"/><polygon class="cls-1" points="173.33 99.65 151.52 129.09 147.3 124.17 136.14 133.74 152.37 152.65 185.14 108.39 173.33 99.65"/></g></g></svg>'},
|
||||
|
@ -423,7 +253,9 @@ export class LearnHowComponent implements OnInit {
|
|||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.subscriptions.push(this._piwikService.trackView(this.properties, this.pageTitle).subscribe());
|
||||
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
this.subscriptions.push(this._piwikService.trackView(this.properties, this.pageTitle, this.properties.piwikSiteId).subscribe());
|
||||
}
|
||||
this.url = this.properties.baseLink + this._router.url;
|
||||
this.seoService.createLinkForCanonicalURL(this.url);
|
||||
this.updateUrl(this.url);
|
||||
|
@ -449,14 +281,12 @@ export class LearnHowComponent implements OnInit {
|
|||
this.subscriptions.forEach(subscription => {
|
||||
if (subscription instanceof Subscriber) {
|
||||
subscription.unsubscribe();
|
||||
} else if(typeof IntersectionObserver !== 'undefined' && subscription instanceof IntersectionObserver) {
|
||||
subscription.disconnect();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
if (typeof IntersectionObserver !== "undefined") {
|
||||
if (typeof window !== "undefined") {
|
||||
this.createObservers();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import {PiwikService} from '../openaireLibrary/utils/piwik/piwik.servic
|
|||
|
||||
import {LearnHowComponent} from "./learn-how.component";
|
||||
import {LearnHowRoutingModule} from "./learn-how-routing.module";
|
||||
import {GifSliderModule} from "../openaireLibrary/utils/gif-slider/gif-slider.module";
|
||||
import {HelperModule} from "../openaireLibrary/utils/helper/helper.module";
|
||||
import {IsRouteEnabled} from "../openaireLibrary/error/isRouteEnabled.guard";
|
||||
import {Schema2jsonldModule} from "../openaireLibrary/sharedComponents/schema2jsonld/schema2jsonld.module";
|
||||
|
@ -19,7 +20,7 @@ import {TabsModule} from '../openaireLibrary/utils/tabs/tabs.module';
|
|||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule, RouterModule, LearnHowRoutingModule, HelperModule,
|
||||
CommonModule, RouterModule, LearnHowRoutingModule, GifSliderModule, HelperModule,
|
||||
Schema2jsonldModule, SEOServiceModule, BreadcrumbsModule, HtmlPagesModule, IconsModule, TabsModule
|
||||
],
|
||||
declarations: [
|
||||
|
|
|
@ -72,7 +72,9 @@ export class MyCommunitiesComponent {
|
|||
var url = this.properties.domain + this.properties.baseLink + this._router.url;
|
||||
this.seoService.createLinkForCanonicalURL(url, false);
|
||||
this._meta.updateTag({content: url}, "property='og:url'");
|
||||
this.subscriptions.push(this._piwikService.trackView(this.properties, "OpenAIRE Connect").subscribe());
|
||||
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
this.subscriptions.push(this._piwikService.trackView(this.properties, "OpenAIRE Connect", this.properties.piwikSiteId).subscribe());
|
||||
}
|
||||
this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => {
|
||||
this.user = user;
|
||||
if (this.user) {
|
||||
|
@ -97,7 +99,7 @@ export class MyCommunitiesComponent {
|
|||
}
|
||||
|
||||
hasPermission(communityInfo: CommunityInfo) {
|
||||
return communityInfo.isPublic() || (communityInfo.isRestricted() && communityInfo.isManager);
|
||||
return communityInfo.status === "all" || (communityInfo.status === "manager" && communityInfo.isManager);
|
||||
}
|
||||
|
||||
public getCommunities() {
|
||||
|
@ -122,10 +124,10 @@ export class MyCommunitiesComponent {
|
|||
communitiesResults.forEach((community, index) => {
|
||||
let showCommunity: boolean = true;
|
||||
community.isManager = Session.isCommunityCurator(this.user) || Session.isPortalAdministrator(this.user) || Session.isManager('community', community.communityId, this.user);
|
||||
if (community.isPrivate()) {
|
||||
if (community['status'] == "hidden") {
|
||||
showCommunity = false;
|
||||
} else {
|
||||
if(!community.isManager && community.isRestricted()) {
|
||||
if(!community.isManager && community['status'] == "manager") {
|
||||
showCommunity = false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit d6735a566fac343c8887791c8f25b30b1c56cd53
|
||||
Subproject commit e3d26f138dfe4f501d77439b0c73eb6217eb272b
|
|
@ -4,16 +4,19 @@ import {Subscriber, Subscription} from "rxjs";
|
|||
import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properties";
|
||||
import {properties} from "../../../environments/environment";
|
||||
import {CommunityService} from "../../openaireLibrary/connect/community/community.service";
|
||||
import {PiwikHelper} from "../../utils/piwikHelper";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-my-orcid-links',
|
||||
template: `
|
||||
<my-orcid-links [communityId]="communityId"></my-orcid-links>
|
||||
<my-orcid-links [piwikSiteId]=piwikSiteId
|
||||
[communityId]="communityId"></my-orcid-links>
|
||||
`
|
||||
})
|
||||
|
||||
export class OpenaireMyOrcidLinksComponent {
|
||||
properties: EnvProperties = properties;
|
||||
piwikSiteId = null;
|
||||
public communityId = null;
|
||||
|
||||
subs: Subscription[] = [];
|
||||
|
@ -24,6 +27,7 @@ export class OpenaireMyOrcidLinksComponent {
|
|||
this.subs.push(this._communityService.getCommunityAsObservable().subscribe(
|
||||
community => {
|
||||
if(community) {
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
this.communityId = community.communityId;
|
||||
}
|
||||
}));
|
||||
|
|
|
@ -1,914 +0,0 @@
|
|||
import {Component, OnDestroy, OnInit} from "@angular/core";
|
||||
import {CommunityService} from "../openaireLibrary/connect/community/community.service";
|
||||
import {Subscription} from "rxjs";
|
||||
import {Meta, Title} from "@angular/platform-browser";
|
||||
import {SEOService} from "../openaireLibrary/sharedComponents/SEO/SEO.service";
|
||||
import {properties} from "../../environments/environment";
|
||||
import {Router} from "@angular/router";
|
||||
import {EnvProperties} from "../openaireLibrary/utils/properties/env-properties";
|
||||
import {Breadcrumb} from "../openaireLibrary/utils/breadcrumbs/breadcrumbs.component";
|
||||
|
||||
@Component({
|
||||
selector: 'pricing',
|
||||
template: `
|
||||
<div class="uk-container uk-container-large uk-section uk-section-small uk-padding-remove-bottom">
|
||||
<div class="uk-padding-small">
|
||||
<breadcrumbs [breadcrumbs]="breadcrumbs"></breadcrumbs>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-container uk-container-large">
|
||||
<div class="">
|
||||
<h1>Subscriptions</h1>
|
||||
|
||||
<div>
|
||||
<div>
|
||||
As demand for our services grows, along with the features included in each of them, traditional sources of
|
||||
funding may not be sufficient. By introducing subscription fees, we can ensure their long-term
|
||||
sustainability; by achieving financial stability we can continue to invest in better resources, technology,
|
||||
and talent, thereby increasing our capacity to deliver impactful programs and services to all interested
|
||||
parties. Subscriptions support immediate operational needs, while at the same time enabling us to scale our
|
||||
efforts and make a greater, more sustainable difference in the communities we serve.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-section">
|
||||
|
||||
<table id="pricing-table" class="uk-table uk-table-striped uk-box-shadow-medium uk-text-center">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<p class="uk-text-primary"><strong>STANDARD</strong></p>
|
||||
</td>
|
||||
<td class="">
|
||||
<p class="uk-text-primary"><strong>ADVANCED</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="uk-text-primary"><strong>PREMIUM</strong></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Suggested for</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Thematic Communities</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Research Infrastructures or Communities</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Research Organisations and Networks</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- <tr>
|
||||
<td colspan="4">
|
||||
<p><strong>Features</strong></p>
|
||||
</td>
|
||||
</tr>-->
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Gateway on the cloud</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Gateway Customisation for Menu and Page Editing, and your Brand</strong>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Customised pages</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✘</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Unlimited Number of Managers/Administrators</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Login via OpenAIRE AAI</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Standard search & browse </strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Search & browse by sub-communities</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✘</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✘</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Search & browse by organisation members</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✘</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✘</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>coming soon</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Fields of Science classification</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Sustainable Development Goals classification</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Research Linking Functionality</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Link with your Zenodo Community</strong></p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Curated Affiliations by OpenAIRE via OpenOrgs</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Text mining</strong></p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Customised text mining</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✘</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Default Charts</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Customised charts per organisation</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✘</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✘</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>coming soon</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Data Update (via OpenAIRE Graph)</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Integration of Community Services*</strong>
|
||||
<br>
|
||||
<span class="uk-text-small">*<i>subject to feasibility study</i></span>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✘</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Metadata Access via APIs</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Metadata Snapshots Every 6 Months if Public</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Frequent metadata snapshot upon request</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✘</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>✔</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Support time to reply</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>72h</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>48h</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>48h</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Training</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>1h</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>4h</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>10h</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Backup, archive after the subscription ends</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Up to 1 month</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>Up to 2 months</p>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>Up to 2 months</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong><span>Trial Period
|
||||
<!-- <span uk-icon="info" uk-tooltip="Try OpenAIRE CONNECT for free"></span>--></span></strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span>2 months</span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span>3 months</span></p>
|
||||
</td>
|
||||
<td>
|
||||
<p><span>3 months</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Annual fee (€)</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>4000</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>5500</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>5500 + <i>800 per member</i></p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div>
|
||||
<ul>
|
||||
<!--<li><b> CONNECT+MONITOR BUNDLE</b>: It’s possible to combine OpenAIRE CONNECT Advanced and OpenAIRE
|
||||
Monitor
|
||||
premium at the Special Price of 10 000€
|
||||
</li>-->
|
||||
<!-- <li> OpenAIRE members get a 30% discount</li>-->
|
||||
<li>0% VAT (24% VAT applies only for Greek TAX ID number holders)</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-section">
|
||||
<h2>Special Packages</h2>
|
||||
|
||||
<div class="uk-margin-large-top">
|
||||
<div class="uk-child-width-1-2@m uk-child-width-1-1@s uk-grid-large uk-grid-match uk-grid" uk-grid=""
|
||||
uk-height-match=".target">
|
||||
<div class="uk-first-column">
|
||||
<div class="uk-card uk-card-default uk-padding">
|
||||
<!--<div class="uk-card-media-top uk-flex uk-flex-middle uk-flex-center
|
||||
\t\t\t\t\t\t\t\tuk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">
|
||||
<div>
|
||||
<img src="assets/connect-assets/home/virtual.svg"
|
||||
alt="A Virtual Research Environment" style="height:60px; width:67px"/>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="uk-card-body ">
|
||||
<div class="target uk-text-center">
|
||||
<h5 class=" uk-card-title uk-margin-medium-bottom">OpenAIRE CONNECT and MONITOR <br>at the special price
|
||||
of 10 000€</h5>
|
||||
<!--<div>
|
||||
It’s possible to combine OpenAIRE CONNECT Advanced and OpenAIRE
|
||||
MONITOR
|
||||
Premium at the special price of 10 000€
|
||||
|
||||
</div>-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="uk-first-column">
|
||||
<div class="uk-card uk-card-default uk-padding">
|
||||
<!--<div class="uk-card-media-top uk-flex uk-flex-middle uk-flex-center
|
||||
\t\t\t\t\t\t\t\tuk-padding-small uk-padding-remove-vertical uk-margin-top uk-margin-bottom">
|
||||
<div>
|
||||
<img src="assets/connect-assets/home/virtual.svg"
|
||||
alt="A Virtual Research Environment" style="height:60px; width:67px"/>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="uk-card-body ">
|
||||
<div class="target uk-text-center">
|
||||
<h5 class=" uk-card-title uk-margin-medium-bottom">OpenAIRE members <br>get a 30% discount</h5>
|
||||
<!--<div>
|
||||
OpenAIRE members get a 30% discount
|
||||
</div>-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-container uk-container-large">
|
||||
<div class="uk-section">
|
||||
<h2>Description of the features </h2>
|
||||
<div>The OpenAIRE CONNECT Gateway provides a comprehensive set of features designed to support and enhance research communities in bringing forward their results and Open Science activities/practices.
|
||||
</div>
|
||||
|
||||
|
||||
<table class="uk-table uk-table-striped uk-table-responsive uk-box-shadow-medium uk-margin-large-top">
|
||||
<tbody>
|
||||
<tr style="cursor: pointer" uk-toggle="target: .toggle">
|
||||
<td class="uk-width-medium@m">
|
||||
<p class="uk-text-left"><strong>Features</strong></p>
|
||||
</td>
|
||||
<td class="">
|
||||
<p class="uk-text-left"><strong>Description</strong></p>
|
||||
</td>
|
||||
<td style="width:30px">
|
||||
<icon name="expand_more" class=" toggle"></icon>
|
||||
<icon class=" toggle" hidden name="expand_less"></icon>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Gateway on the Cloud</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Full IT support of the service: hosting, installation, maintenance, upgrade, backups. Ensures
|
||||
reliable
|
||||
and secure cloud deployment on the OpenAIRE infrastructure, providing scalable and accessible
|
||||
cloud
|
||||
services.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Gateway Customisation for Menu and Page Editing, and your
|
||||
Brand</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Create your own menu, edit pages, and adapt to your visual identity with logo, banner,
|
||||
background,
|
||||
buttons, colours. Edit the home page to include your personalised content.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Customised pages</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Request new pages for you to customise.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Unlimited Number of Managers/Administrators</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Supports an unlimited number of administrators or managers, enhancing collaborative management
|
||||
and
|
||||
oversight capabilities.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Login via OpenAIRE AAI</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Sign in via an institutional account (eduGAIN), GitHub, Google, LinkedIn, ORCID, or with an
|
||||
OpenAIRE
|
||||
account.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Standard Search & Browse</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Search and browse for research products, projects, and data sources.</p>
|
||||
<p>Users can use all the filters of <a href="https://explore.openaire.eu/" target="_blank">OpenAIRE
|
||||
EXPLORE,</a>
|
||||
including
|
||||
filters for type of products (publications, data, software and more), FoS (Field of Science) and
|
||||
SDGs
|
||||
(UN Sustainable Development Goals). You can enable or disable the search functionality on specific
|
||||
entity types according to your needs.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Search & browse by sub-communities</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>You define how your community is organised (e.g. by theme, by geographical nodes). OpenAIRE
|
||||
CONNECT
|
||||
can
|
||||
associate research products to the sub-communities and offer dedicated options to search and
|
||||
browse.</p>
|
||||
<p>Available for CONNECT Advanced.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Search & browse by organisation members</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Search and browse for organisations that are members of your research communities. Filter
|
||||
research
|
||||
products by organisation.</p>
|
||||
<p>Coming soon for CONNECT Premium.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Fields of Science classification</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Publications are classified by SciNoBo: a novel system classifying scholarly communication in a
|
||||
dynamically constructed hierarchical Field-of-Science taxonomy -
|
||||
<a href="https://doi.org/10.3389/frma.2023.1149834" target="_blank">https://doi.org/10.3389/frma.2023.1149834</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Sustainable Development Goals classification</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Publications are classified by SciNoBo. For more information, please visit
|
||||
<a href="https://www.openaire.eu/openaire-explore-introducing-sdgs-and-fos" target="_blank">https://www.openaire.eu/openaire-explore-introducing-sdgs-and-fos</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Research Linking Functionality</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Allows your users to link articles, dataset, or software within a same project (see <a
|
||||
href="https://www.openaire.eu/claim-publication" target="_blank">this guide</a>) and claim their
|
||||
authorship with
|
||||
ORCID
|
||||
(<a href="https://www.openaire.eu/openaire-explore-integration-with-the-orcid-search-and-link-wizard"
|
||||
target="_blank">guide</a>)
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Link with your Zenodo Community</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Seamlessly integrates with Zenodo communities, allowing users to manage and share their research
|
||||
outputs within a dedicated community space.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Curated Affiliations by OpenAIRE Team via OpenOrgs</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Utilizes affiliations curated by the OpenAIRE team, ensuring data accuracy and organisational
|
||||
integrity
|
||||
through verified affiliations.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Text mining</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Employs advanced data mining algorithms to extract and analyse data, enhancing the platform's
|
||||
ability
|
||||
to provide deep insights and comprehensive research intelligence. Learn more about the text mining
|
||||
algorithms on the <a href="https://graph.openaire.eu/what-is-the-openaire-graph#Id-How"
|
||||
target="_blank">web site of
|
||||
the
|
||||
OpenAIRE Graph</a>.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Customised text mining</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>OpenAIRE develops a text mining algorithm for the identification of research products of your
|
||||
community. You help us with the tests and fine tuning to reach the optimal precision and
|
||||
recall.</p>
|
||||
<p>Available for CONNECT Advanced and Premium.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Default Charts</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>A set of charts to check the uptake of Open Science practices within your community: percentage
|
||||
of
|
||||
Open
|
||||
Access publications and datasets, geographic distribution of publications, datasets with
|
||||
persistent
|
||||
Identifiers over time, download counts of publications by year, and publications by access rights
|
||||
over
|
||||
time.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Customised charts per organisation</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>The set of default charts customised for the organisations that are members of your research
|
||||
community.</p>
|
||||
<p>Coming soon for CONNECT Premium.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Data Update (via OpenAIRE Graph)</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Regularly, every time the OpenAIRE Graph is updated (about once a month).</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Integration of community services</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Integration of services developed and operated by your research community into your gateway. The
|
||||
integration is subject to a feasibility study.</p>
|
||||
<p>Available for CONNECT Advanced and Premium.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Metadata Access via APIs</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Provides API access to metadata, allowing for integration with other systems and enabling
|
||||
developers
|
||||
to
|
||||
build custom applications or enhance existing systems.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Metadata Snapshots Every 6 Months if Public</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Takes snapshots of metadata every six months for publicly available data, facilitating data
|
||||
preservation and historical analysis.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Support time to reply</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>We support you during the business hours of the week, generally defined as 9:00 - 17:00 CET
|
||||
excluding
|
||||
holidays and weekends. The OpenAIRE team is an international team working in Europe in different
|
||||
time
|
||||
zones.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Training</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Online training sessions to help you set up your gateway. Based on your needs we can organise
|
||||
trainings
|
||||
on other OpenAIRE services related to CONNECT like PROVIDE (to support your repositories at
|
||||
becoming
|
||||
compliant with the OpenAIRE guidelines).</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Backup, archive after the subscription ends</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>OpenAIRE will keep a backup of your gateway configuration after the end of your subscriptions.
|
||||
Just
|
||||
in
|
||||
case you change your mind and do not want to start from scratch.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=" toggle" hidden>
|
||||
<td>
|
||||
<p class="uk-text-left"><strong>Trial Period</strong></p>
|
||||
</td>
|
||||
<td>
|
||||
<p>Try OpenAIRE CONNECT for free.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="uk-container uk-container-large uk-flex uk-flex-center">
|
||||
<div class="uk-section uk-text-center">
|
||||
<h4 class="uk-text-center uk-width-xlarge@m ">
|
||||
<div> Contact us to discover OpenAIRE CONNECT and the rest of OpenAIRE services<span
|
||||
class="uk-text-primary">.</span></div>
|
||||
|
||||
</h4>
|
||||
<a class="uk-button uk-button-primary uk-margin-medium-top uk-margin-medium-bottom" routerLink="/contact-us">Contact
|
||||
us</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
`,
|
||||
styles: [`
|
||||
/* #pricing-table td:nth-child(3) {
|
||||
!*border-right: 2px solid #211F7E;*!
|
||||
!*border-left: 2px solid #211F7E;*!
|
||||
background-image: linear-gradient(110deg,#feca1d 0,#fe9f1d 100%);
|
||||
color:black;
|
||||
}*/
|
||||
#pricing-table tr:last-child td:nth-child(3) {
|
||||
/*border-bottom: 2px solid #211F7E;*/
|
||||
}
|
||||
|
||||
#pricing-table tr:first-child td:nth-child(3) {
|
||||
/*border-top: 2px solid #211F7E;*/
|
||||
/*background-color: #211F7E;*/
|
||||
/*color: white;*/
|
||||
}
|
||||
|
||||
|
||||
`]
|
||||
})
|
||||
export class PricingComponent implements OnInit, OnDestroy {
|
||||
|
||||
public properties: EnvProperties = properties;
|
||||
|
||||
private subscriptions: any[] = [];
|
||||
public breadcrumbs: Breadcrumb[] = [{name: 'home', route: '/'}, {name: 'Subscriptions'}];
|
||||
|
||||
constructor(private communityService: CommunityService,
|
||||
private seoService: SEOService,
|
||||
private _meta: Meta,
|
||||
private _router: Router,
|
||||
private _title: Title) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
/* Metadata */
|
||||
const url = properties.domain + properties.baseLink + this._router.url;
|
||||
this.seoService.createLinkForCanonicalURL(url, false);
|
||||
this._meta.updateTag({content: url}, "property='og:url'");
|
||||
const description = "Subscriptions "
|
||||
const title = "Subscriptions "
|
||||
this._meta.updateTag({content: description}, "name='description'");
|
||||
this._meta.updateTag({content: description}, "property='og:description'");
|
||||
this._meta.updateTag({content: title}, "property='og:title'");
|
||||
this._title.setTitle(title);
|
||||
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
this.subscriptions.forEach(subscription => {
|
||||
if (subscription instanceof Subscription) {
|
||||
subscription.unsubscribe();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
import {NgModule} from "@angular/core";
|
||||
import {CommonModule} from "@angular/common";
|
||||
import {PricingComponent} from "./pricing.component";
|
||||
import {RouterModule} from "@angular/router";
|
||||
import {PreviousRouteRecorder} from "../openaireLibrary/utils/piwik/previousRouteRecorder.guard";
|
||||
import {PageContentModule} from "../openaireLibrary/dashboard/sharedComponents/page-content/page-content.module";
|
||||
import {IconsModule} from "../openaireLibrary/utils/icons/icons.module";
|
||||
import {BreadcrumbsModule} from "../openaireLibrary/utils/breadcrumbs/breadcrumbs.module";
|
||||
import {IsRouteEnabled} from "../openaireLibrary/error/isRouteEnabled.guard";
|
||||
|
||||
@NgModule({
|
||||
|
||||
imports: [CommonModule, RouterModule, RouterModule.forChild([
|
||||
{
|
||||
path: '',
|
||||
component: PricingComponent,
|
||||
canDeactivate: [PreviousRouteRecorder],
|
||||
canActivate: [IsRouteEnabled]
|
||||
},
|
||||
]), PageContentModule, IconsModule, BreadcrumbsModule],
|
||||
declarations: [PricingComponent],
|
||||
exports: [PricingComponent]
|
||||
})
|
||||
export class PricingModule {
|
||||
|
||||
}
|
|
@ -1,42 +1,26 @@
|
|||
import {Component} from "@angular/core";
|
||||
import {properties} from "../../environments/environment";
|
||||
import {ConnectHelper} from "../openaireLibrary/connect/connectHelper";
|
||||
import {PiwikHelper} from "../utils/piwikHelper";
|
||||
import {SearchCustomFilter} from "../openaireLibrary/searchPages/searchUtils/searchUtils.class";
|
||||
import {Router} from "@angular/router";
|
||||
import {HelperService} from "../openaireLibrary/utils/helper/helper.service";
|
||||
import {Subscription} from "rxjs";
|
||||
|
||||
@Component({
|
||||
selector: 'community-sdg',
|
||||
template: `
|
||||
<sdg *ngIf="pageContents" [customFilter]="customFilter" [pageContents]="pageContents"></sdg>
|
||||
<sdg [piwikSiteId]="piwikSiteId" [customFilter]="customFilter"></sdg>
|
||||
`
|
||||
})
|
||||
export class CommunitySdgComponent {
|
||||
piwikSiteId;
|
||||
communityId;
|
||||
customFilter: SearchCustomFilter = null;
|
||||
public pageContents = null;
|
||||
subs: Subscription[] = [];
|
||||
constructor(
|
||||
private _router: Router,
|
||||
private helper: HelperService) {
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
this.customFilter = new SearchCustomFilter("Community", "communityId", this.communityId, "");
|
||||
this.getPageContents();
|
||||
}
|
||||
ngOnDestroy() {
|
||||
for (let sub of this.subs) {
|
||||
sub.unsubscribe();
|
||||
}
|
||||
}
|
||||
|
||||
private getPageContents() {
|
||||
this.subs.push(this.helper.getPageHelpContents(properties, this.communityId, this._router.url).subscribe(contents => {
|
||||
this.pageContents = contents;
|
||||
console.log(this.pageContents)
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,18 +1,20 @@
|
|||
import {Component, OnInit} from '@angular/core';
|
||||
import {SearchCustomFilter} from "../../openaireLibrary/searchPages/searchUtils/searchUtils.class";
|
||||
import {ConnectHelper} from "../../openaireLibrary/connect/connectHelper";
|
||||
import {PiwikHelper} from "../../utils/piwikHelper";
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-advanced-search-dataprovider',
|
||||
template: `
|
||||
<search-dataproviders [simpleView]="false" [customFilter]=customFilter
|
||||
<search-dataproviders [simpleView]="false" [customFilter]=customFilter [piwikSiteId]="piwikSiteId"
|
||||
[hasPrefix]="false" [showBreadcrumb]="true" [showSwitchSearchLink]="false" [searchForm]="{dark: false, class: 'search-form'}">
|
||||
</search-dataproviders>
|
||||
`
|
||||
})
|
||||
export class OpenaireAdvancedSearchDataProvidersComponent implements OnInit {
|
||||
communityId: string;
|
||||
piwikSiteId = null;
|
||||
customFilter: SearchCustomFilter = null;
|
||||
|
||||
constructor() {
|
||||
|
@ -21,6 +23,7 @@ export class OpenaireAdvancedSearchDataProvidersComponent implements OnInit {
|
|||
ngOnInit() {
|
||||
let communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
if (communityId) {
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(communityId);
|
||||
this.communityId = communityId;
|
||||
this.customFilter = new SearchCustomFilter("Community", "communityId", this.communityId, "");
|
||||
this.customFilter.isHiddenFilter = false;
|
||||
|
|
|
@ -1,18 +1,22 @@
|
|||
import {Component, OnInit} from '@angular/core';
|
||||
import {Component, Input, OnInit, ViewChild} from '@angular/core';
|
||||
import {SearchCustomFilter} from "../../openaireLibrary/searchPages/searchUtils/searchUtils.class";
|
||||
import {ActivatedRoute} from "@angular/router";
|
||||
import {ConnectHelper} from "../../openaireLibrary/connect/connectHelper";
|
||||
import {PiwikHelper} from "../../utils/piwikHelper";
|
||||
import {Subscriber} from "rxjs";
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-advanced-search-organizations',
|
||||
template: `
|
||||
<search-organizations [simpleView]="false" [customFilter]=customFilter [hasPrefix]="false" [showBreadcrumb]="true" [showSwitchSearchLink]="false" [searchForm]="{dark: false, class: 'search-form'}">
|
||||
<search-organizations [simpleView]="false" [customFilter]=customFilter [piwikSiteId]="piwikSiteId" [hasPrefix]="false" [showBreadcrumb]="true" [showSwitchSearchLink]="false" [searchForm]="{dark: false, class: 'search-form'}">
|
||||
</search-organizations>
|
||||
`
|
||||
})
|
||||
export class OpenaireAdvancedSearchOrganizationsComponent implements OnInit {
|
||||
communityId:string;
|
||||
piwikSiteId;
|
||||
customFilter: SearchCustomFilter;
|
||||
|
||||
constructor () {
|
||||
|
@ -20,6 +24,7 @@ export class OpenaireAdvancedSearchOrganizationsComponent implements OnInit {
|
|||
|
||||
ngOnInit() {
|
||||
let communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(communityId);
|
||||
if(communityId){
|
||||
this.communityId = communityId;
|
||||
this.customFilter = new SearchCustomFilter("Community", "communityId", this.communityId, "");
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
import {Component, OnInit} from '@angular/core';
|
||||
import {SearchCustomFilter} from "../../openaireLibrary/searchPages/searchUtils/searchUtils.class";
|
||||
import {ConnectHelper} from "../../openaireLibrary/connect/connectHelper";
|
||||
import {PiwikHelper} from "../../utils/piwikHelper";
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-advanced-search-projects',
|
||||
template: `
|
||||
<search-projects [simpleView]="false" [customFilter]=customFilter [hasPrefix]="false"
|
||||
<search-projects [simpleView]="false" [customFilter]=customFilter [piwikSiteId]="piwikSiteId" [hasPrefix]="false"
|
||||
[showBreadcrumb]="true" [showSwitchSearchLink]="false" [searchForm]="{dark: false, class: 'search-form'}">
|
||||
</search-projects>
|
||||
|
||||
|
@ -15,6 +16,7 @@ import {properties} from "../../../environments/environment";
|
|||
|
||||
export class OpenaireAdvancedSearchProjectsComponent implements OnInit {
|
||||
communityId: string;
|
||||
piwikSiteId;
|
||||
customFilter: SearchCustomFilter = null;
|
||||
|
||||
constructor() {
|
||||
|
@ -24,6 +26,7 @@ export class OpenaireAdvancedSearchProjectsComponent implements OnInit {
|
|||
let communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
if (communityId) {
|
||||
this.communityId = communityId;
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(communityId);
|
||||
this.customFilter = new SearchCustomFilter("Community", "communityId", this.communityId, "");
|
||||
this.customFilter.isHiddenFilter = false;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import {Component, OnDestroy, OnInit} from '@angular/core';
|
||||
import {SearchCustomFilter} from "../../openaireLibrary/searchPages/searchUtils/searchUtils.class";
|
||||
import {ActivatedRoute} from "@angular/router";
|
||||
import {ConnectHelper} from "../../openaireLibrary/connect/connectHelper";
|
||||
import {PiwikHelper} from "../../utils/piwikHelper";
|
||||
import {Subscriber} from "rxjs";
|
||||
import {properties} from "../../../environments/environment";
|
||||
import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properties";
|
||||
|
@ -10,7 +12,7 @@ import {CommunityService} from "../../openaireLibrary/connect/community/communit
|
|||
selector: 'openaire-search-results',
|
||||
template: `
|
||||
<search-research-results resultType="result" [simpleView]="false" [customFilter]=customFilter
|
||||
[hasPrefix]="false" [showBreadcrumb]="true"
|
||||
[piwikSiteId]="piwikSiteId" [hasPrefix]="false" [showBreadcrumb]="true"
|
||||
[openaireLink]="'https://' + (properties.environment == 'production'?'':'beta.') + 'explore.openaire.eu/search/advanced/research-outcomes'"
|
||||
[searchForm]="{dark: false, class: 'search-form'}"
|
||||
></search-research-results>
|
||||
|
@ -18,6 +20,7 @@ import {CommunityService} from "../../openaireLibrary/connect/community/communit
|
|||
})
|
||||
export class OpenaireSearchResearchResultsComponent implements OnInit, OnDestroy {
|
||||
connectCommunityId: string;
|
||||
piwikSiteId = null;
|
||||
customFilter: SearchCustomFilter = null;
|
||||
properties: EnvProperties = properties;
|
||||
sub;
|
||||
|
@ -39,6 +42,7 @@ export class OpenaireSearchResearchResultsComponent implements OnInit, OnDestro
|
|||
this.sub = this._communityService.getCommunityAsObservable().subscribe(community => {
|
||||
if (community != null) {
|
||||
this.connectCommunityId = community.communityId;
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.connectCommunityId);
|
||||
this.customFilter = new SearchCustomFilter("Community", "communityId", this.connectCommunityId, community.shortTitle);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -23,7 +23,7 @@ import {Subscriber} from "rxjs";
|
|||
selector: 'search-communities',
|
||||
template: `
|
||||
<new-search-page pageTitle="Communities"
|
||||
[hasPrefix]=true prefix="OpenAIRE Connect | "
|
||||
[hasPrefix]=true prefix="OpenAIRE Connect | " [piwikSiteId]="piwikSiteId"
|
||||
[formPlaceholderText]="'Search OpenAIRE Communities'"
|
||||
[type]="(results.length > 1)?'communities':'community'" entityType="community"
|
||||
[results]="results" [searchUtils]="searchUtils"
|
||||
|
@ -39,6 +39,7 @@ import {Subscriber} from "rxjs";
|
|||
`
|
||||
})
|
||||
export class SearchCommunitiesComponent {
|
||||
public piwikSiteId = null;
|
||||
private errorCodes: ErrorCodes;
|
||||
private errorMessages: ErrorMessagesComponent;
|
||||
public results: CommunityInfo[] = [];
|
||||
|
@ -81,6 +82,7 @@ export class SearchCommunitiesComponent {
|
|||
|
||||
public ngOnInit() {
|
||||
this.properties = properties;
|
||||
this.piwikSiteId = this.properties.piwikSiteId;
|
||||
this.baseUrl = this.properties.searchLinkToCommunities;
|
||||
this.subscriptions.push(this.route.queryParams.subscribe(params => {
|
||||
this.searchPage.resultsPerPage = 10;
|
||||
|
@ -97,7 +99,7 @@ export class SearchCommunitiesComponent {
|
|||
this.searchPage.refineFields = this.refineFields;
|
||||
this.searchLink = this.properties.searchLinkToCommunities;
|
||||
this.selectedFields = [];
|
||||
this.searchPage.prepareSearchPage(this.fieldIds, this.selectedFields, this.refineFields, [],[], this.fieldIdsMap, null, params, "community", null);
|
||||
this.searchPage.prepareSearchPage(this.fieldIds, this.selectedFields, this.refineFields, [], this.fieldIdsMap, null, params, "community", null);
|
||||
|
||||
let queryParams = params;
|
||||
if (typeof document !== 'undefined') {
|
||||
|
@ -175,9 +177,9 @@ export class SearchCommunitiesComponent {
|
|||
private showCommunities() {
|
||||
let ret: CommunityInfo[] = [];
|
||||
for (let result of this.results) {
|
||||
if (result.isPrivate() && result.isManager) {
|
||||
if (result.status == 'hidden' && result.isManager) {
|
||||
ret.push(result);
|
||||
} else if (result.isRestricted() || result.isPublic()) {
|
||||
} else if (result.status == "manager" || result.status == "all") {
|
||||
ret.push(result);
|
||||
}
|
||||
}
|
||||
|
@ -284,7 +286,6 @@ export class SearchCommunitiesComponent {
|
|||
if (params[filterId]) {
|
||||
values = (StringUtils.URIDecode(params[filterId])).split(/,(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, -1);
|
||||
}
|
||||
console.log(filterId + ": " +values)
|
||||
if (filterId == 'type') {
|
||||
for (let i = 0; i < this.results.length; i++) {
|
||||
if (values.length == 0) {
|
||||
|
@ -303,20 +304,19 @@ export class SearchCommunitiesComponent {
|
|||
if (values.length == 0) {
|
||||
results.push(this.results[i]);
|
||||
} else {
|
||||
// console.log(this.results[i].status, this.results[i].isPublic(),this.results[i].isRestricted(), this.results[i].isPrivate() )
|
||||
for (let value of values) {
|
||||
if (value.replace(/["']/g, "") == 'public') {
|
||||
if (this.results[i].isPublic()) {
|
||||
if (this.results[i].status === 'all') {
|
||||
results.push(this.results[i]);
|
||||
break;
|
||||
}
|
||||
} else if (value.replace(/["']/g, "") == 'restricted') {
|
||||
if (this.results[i].isRestricted()) {
|
||||
if (this.results[i].status === 'manager') {
|
||||
results.push(this.results[i]);
|
||||
break;
|
||||
}
|
||||
} else if (value.replace(/["']/g, "") == 'private') {
|
||||
if (this.results[i].isPrivate()) {
|
||||
if (this.results[i].status === 'hidden') {
|
||||
results.push(this.results[i]);
|
||||
break;
|
||||
}
|
||||
|
@ -383,9 +383,9 @@ export class SearchCommunitiesComponent {
|
|||
}
|
||||
}
|
||||
} else if (this.filters[i].filterId == 'access') {
|
||||
if (results[k].isPublic()) {
|
||||
if (results[k].status === 'all') {
|
||||
this.filters[i].values[0].number++;
|
||||
} else if (results[k].isRestricted()) {
|
||||
} else if (results[k].status === 'manager') {
|
||||
this.filters[i].values[1].number++;
|
||||
} else if (this.user) {
|
||||
this.filters[i].values[2].number++;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {PiwikHelper} from '../../utils/piwikHelper';
|
||||
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
|
||||
import {SearchCustomFilter} from "../../openaireLibrary/searchPages/searchUtils/searchUtils.class";
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
@ -8,12 +9,13 @@ import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properti
|
|||
selector: 'openaire-search-find',
|
||||
template: `
|
||||
<search-all logoURL="/assets/common-assets/logo-small-explore.png" name="OpenAIRE Connect"
|
||||
[customFilter]=customFilter></search-all>
|
||||
[customFilter]=customFilter [piwikSiteId]="piwikSiteId"></search-all>
|
||||
`,
|
||||
})
|
||||
export class OpenaireSearchComponent {
|
||||
communityId: string;
|
||||
customFilter: SearchCustomFilter = null;
|
||||
piwikSiteId = null;
|
||||
properties: EnvProperties = properties;
|
||||
|
||||
constructor() {
|
||||
|
@ -23,6 +25,7 @@ export class OpenaireSearchComponent {
|
|||
let communityId = ConnectHelper.getCommunityFromDomain(this.properties.domain);
|
||||
if (communityId) {
|
||||
this.communityId = communityId;
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(communityId);
|
||||
this.customFilter = new SearchCustomFilter("Community", "communityId", this.communityId, "");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
import {Component, ViewChild} from '@angular/core';
|
||||
import {ActivatedRoute} from '@angular/router';
|
||||
import { ActivatedRoute} from '@angular/router';
|
||||
|
||||
import {ErrorCodes} from '../../openaireLibrary/utils/properties/errorCodes';
|
||||
import {ErrorMessagesComponent} from '../../openaireLibrary/utils/errorMessages.component';
|
||||
import {ErrorMessagesComponent} from '../../openaireLibrary/utils/errorMessages.component';
|
||||
import {SearchFields} from '../../openaireLibrary/utils/properties/searchFields';
|
||||
import {SearchCustomFilter, SearchUtilsClass} from '../../openaireLibrary/searchPages/searchUtils/searchUtils.class';
|
||||
import {EnvProperties} from '../../openaireLibrary/utils/properties/env-properties';
|
||||
import {
|
||||
SearchCommunityDataprovidersService
|
||||
} from '../../openaireLibrary/connect/contentProviders/searchDataproviders.service';
|
||||
import {SearchCommunityDataprovidersService} from '../../openaireLibrary/connect/contentProviders/searchDataproviders.service';
|
||||
import {PiwikHelper} from '../../utils/piwikHelper';
|
||||
import {properties} from "../../../environments/environment";
|
||||
import {CommunitiesService} from "../../openaireLibrary/connect/communities/communities.service";
|
||||
import {CommunityService} from "../../openaireLibrary/connect/community/community.service";
|
||||
|
@ -21,23 +20,24 @@ import {SearchResult} from "../../openaireLibrary/utils/entities/searchResult";
|
|||
selector: 'openaire-search-dataproviders',
|
||||
template: `
|
||||
|
||||
<new-search-page
|
||||
<new-search-page
|
||||
pageTitle="Search Content Providers"
|
||||
entityType="dataprovider"
|
||||
type=" Content provider"
|
||||
[results]="results"
|
||||
[searchUtils]="searchUtils"
|
||||
[sortedByChanged]="searchUtils.sortBy"
|
||||
[sortedByChanged]="searchUtils.sortBy"
|
||||
[fieldIds]="fieldIds" [fieldIdsMap]="fieldIdsMap" [selectedFields]="selectedFields"
|
||||
[simpleSearchLink]="properties.searchLinkToDataProviders"
|
||||
|
||||
[simpleSearchLink]="properties.searchLinkToDataProviders"
|
||||
[disableForms]="disableForms"
|
||||
[disableRefineForms]="disableRefineForms"
|
||||
[loadPaging]="loadPaging"
|
||||
[oldTotalResults]="oldTotalResults"
|
||||
[openaireLink]="'https://' + (properties.environment == 'production'?'':'beta.') + 'explore.openaire.eu/search/find/dataproviders'"
|
||||
[includeOnlyResultsAndFilter]="false"
|
||||
[hasPrefix]="false"
|
||||
searchFormClass="datasourcesTableSearchForm" [entitiesSelection]="false" [showSwitchSearchLink]="false"
|
||||
[piwikSiteId]=piwikSiteId [hasPrefix]="false"
|
||||
searchFormClass="datasourcesTableSearchForm" [entitiesSelection]="true" [showSwitchSearchLink]="false"
|
||||
[filters]="filters"
|
||||
[simpleView]="true" formPlaceholderText="Search by name..."
|
||||
[showResultCount]="false" [showIndexInfo]="false" [showDownload]="false"
|
||||
|
@ -64,6 +64,7 @@ export class OpenaireSearchDataprovidersComponent {
|
|||
|
||||
private communityId: string = '';
|
||||
subscriptions = [];
|
||||
piwikSiteId = null;
|
||||
customFilter: SearchCustomFilter = null;
|
||||
initialLoad = true;
|
||||
public allResults =[];
|
||||
|
@ -88,13 +89,14 @@ export class OpenaireSearchDataprovidersComponent {
|
|||
if(community != null) {
|
||||
this.communityId = community.communityId;
|
||||
this.customFilter = new SearchCustomFilter("Community", "communityId", this.communityId, community.shortTitle);
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
this.subscriptions.push(this.route.queryParams.subscribe(params => {
|
||||
let page = (params['page'] === undefined) ? 1 : +params['page'];
|
||||
this.searchUtils.page = (page <= 0) ? 1 : page;
|
||||
this.searchUtils.validateSize(params['size']);
|
||||
this.keyword = decodeURIComponent(params['fv0']?params['fv0']:(params['keyword']?params['keyword']:''));
|
||||
this.selectedFields = [];
|
||||
this.searchPage.prepareSearchPage(this.fieldIds, this.selectedFields, [], [], [], this.fieldIdsMap, this.customFilter, params, "dataprovider");
|
||||
this.searchPage.prepareSearchPage(this.fieldIds, this.selectedFields, [], [], this.fieldIdsMap, this.customFilter, params, "dataprovider");
|
||||
if (this.initialLoad) {
|
||||
this.initialLoad = false;
|
||||
this._getResults();
|
||||
|
@ -163,7 +165,7 @@ export class OpenaireSearchDataprovidersComponent {
|
|||
this.searchUtils.totalResults = results.length;
|
||||
this.results = results.slice((this.searchUtils.page - 1) * this.searchUtils.size, this.searchUtils.page *this.searchUtils.size );
|
||||
this.searchUtils.status = this.results.length == 0 ? this.errorCodes.NONE: this.errorCodes.DONE;
|
||||
this.searchPage.buildPageURLParameters(this.filters, [], [], false);
|
||||
this.searchPage.buildPageURLParameters(this.filters, [], false);
|
||||
this.disableForms = false;
|
||||
this.enableSearchView = true;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
|
||||
import {PiwikHelper} from '../../utils/piwikHelper';
|
||||
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
|
||||
import {properties} from "../../../environments/environment";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-search-organizations',
|
||||
|
@ -6,5 +10,16 @@ import {Component} from '@angular/core';
|
|||
<search-organizations [searchForm]="{dark: false, class: 'search-form'}"></search-organizations>
|
||||
`
|
||||
})
|
||||
export class OpenaireSearchOrganizationsComponent{
|
||||
export class OpenaireSearchOrganizationsComponent implements OnInit {
|
||||
piwikSiteId = null;
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
let communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
if (communityId) {
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(communityId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,47 +1,48 @@
|
|||
import {Component, ViewChild} from '@angular/core';
|
||||
import {ActivatedRoute} from '@angular/router';
|
||||
|
||||
import {AdvancedField, Filter, Value} from '../../openaireLibrary/searchPages/searchUtils/searchHelperClasses.class';
|
||||
|
||||
import {ErrorCodes} from '../../openaireLibrary/utils/properties/errorCodes';
|
||||
import {ErrorMessagesComponent} from '../../openaireLibrary/utils/errorMessages.component';
|
||||
import {SearchFields} from '../../openaireLibrary/utils/properties/searchFields';
|
||||
import {SearchCustomFilter, SearchUtilsClass} from '../../openaireLibrary/searchPages/searchUtils/searchUtils.class';
|
||||
import {EnvProperties} from '../../openaireLibrary/utils/properties/env-properties';
|
||||
import {SearchCommunityProjectsService} from '../../openaireLibrary/connect/projects/searchProjects.service';
|
||||
import {PiwikHelper} from '../../utils/piwikHelper';
|
||||
import {properties} from "../../../environments/environment";
|
||||
import {CommunityService} from "../../openaireLibrary/connect/community/community.service";
|
||||
import {Subscriber} from "rxjs";
|
||||
import {NewSearchPageComponent} from "../../openaireLibrary/searchPages/searchUtils/newSearchPage.component";
|
||||
import {SearchResult} from "../../openaireLibrary/utils/entities/searchResult";
|
||||
import {StringUtils} from "../../openaireLibrary/utils/string-utils.class";
|
||||
import {IndexInfoService} from "../../openaireLibrary/utils/indexInfo.service";
|
||||
|
||||
@Component({
|
||||
selector: 'openaire-search-projects',
|
||||
template: `
|
||||
<new-search-page
|
||||
pageTitle="Search Projects"
|
||||
entityType="project"
|
||||
type="project"
|
||||
[results]="results"
|
||||
[searchUtils]="searchUtils"
|
||||
[sortedByChanged]="searchUtils.sortBy"
|
||||
[fieldIds]="fieldIds" [fieldIdsMap]="fieldIdsMap" [selectedFields]="selectedFields"
|
||||
pageTitle="Search Projects"
|
||||
entityType="project"
|
||||
type="project"
|
||||
[results]="results"
|
||||
[searchUtils]="searchUtils"
|
||||
[sortedByChanged]="searchUtils.sortBy"
|
||||
[fieldIds]="fieldIds" [fieldIdsMap]="fieldIdsMap" [selectedFields]="selectedFields"
|
||||
|
||||
[simpleSearchLink]="properties.searchLinkToProjects"
|
||||
[disableForms]="disableForms"
|
||||
[disableRefineForms]="disableRefineForms"
|
||||
[loadPaging]="loadPaging"
|
||||
[oldTotalResults]="oldTotalResults"
|
||||
[openaireLink]="'https://' + (properties.environment == 'production'?'':'beta.') + 'explore.openaire.eu/search/find/projects'"
|
||||
[includeOnlyResultsAndFilter]="false"
|
||||
[hasPrefix]="false"
|
||||
searchFormClass="datasourcesTableSearchForm" [entitiesSelection]="false" [showSwitchSearchLink]="false"
|
||||
[filters]="filters"
|
||||
[simpleView]="true" formPlaceholderText="Search by name..."
|
||||
[showResultCount]="false" [showIndexInfo]="false" [showDownload]="false"
|
||||
[sort]="false" [showBreadcrumb]="true"
|
||||
[customFilter]=customFilter [searchForm]="{dark: false, class: 'search-form'}">
|
||||
</new-search-page>
|
||||
[simpleSearchLink]="properties.searchLinkToProjects"
|
||||
[disableForms]="disableForms"
|
||||
[disableRefineForms]="disableRefineForms"
|
||||
[loadPaging]="loadPaging"
|
||||
[oldTotalResults]="oldTotalResults"
|
||||
[openaireLink]="'https://' + (properties.environment == 'production'?'':'beta.') + 'explore.openaire.eu/search/find/projects'"
|
||||
[includeOnlyResultsAndFilter]="false"
|
||||
[piwikSiteId]=piwikSiteId [hasPrefix]="false"
|
||||
searchFormClass="datasourcesTableSearchForm" [entitiesSelection]="true" [showSwitchSearchLink]="false"
|
||||
[filters]="filters"
|
||||
[simpleView]="true" formPlaceholderText="Search by name..."
|
||||
[showResultCount]="false" [showIndexInfo]="false" [showDownload]="false"
|
||||
[sort]="false" [showBreadcrumb]="true"
|
||||
[customFilter]=customFilter [searchForm]="{dark: false, class: 'search-form'}">
|
||||
</new-search-page>
|
||||
`
|
||||
|
||||
})
|
||||
|
@ -50,9 +51,8 @@ export class OpenaireSearchProjectsComponent {
|
|||
private errorMessages: ErrorMessagesComponent;
|
||||
public columnNames = ['Project', 'GrantId', 'Funder'];
|
||||
public results =[];
|
||||
public originalFunders =[];
|
||||
public originalFilters =[];
|
||||
public filters =[];
|
||||
selectedFunder = null;
|
||||
public searchUtils:SearchUtilsClass = new SearchUtilsClass();
|
||||
subscriptions = [];
|
||||
public searchFields:SearchFields = new SearchFields();
|
||||
|
@ -63,8 +63,11 @@ export class OpenaireSearchProjectsComponent {
|
|||
public enableSearchView: boolean = true;
|
||||
|
||||
private communityId: string = '';
|
||||
|
||||
piwikSiteId = null;
|
||||
customFilter: SearchCustomFilter = null;
|
||||
initialLoad = true;
|
||||
public allResults =[];
|
||||
@ViewChild(NewSearchPageComponent, { static: true }) searchPage: NewSearchPageComponent;
|
||||
public fieldIds: string[] = this.searchFields.PROJECT_ADVANCED_FIELDS;
|
||||
public fieldIdsMap= this.searchFields.PROJECT_FIELDS;
|
||||
|
@ -73,33 +76,30 @@ export class OpenaireSearchProjectsComponent {
|
|||
public loadPaging: boolean = true;
|
||||
public oldTotalResults: number = 0;
|
||||
keyword;
|
||||
lastDBLoadDate = null;
|
||||
constructor (private route: ActivatedRoute, private _searchProjectsService: SearchCommunityProjectsService, private _communityService: CommunityService, private indexInfoService: IndexInfoService) {
|
||||
constructor (private route: ActivatedRoute, private _searchProjectsService: SearchCommunityProjectsService, private _communityService: CommunityService) {
|
||||
this.errorCodes = new ErrorCodes();
|
||||
this.errorMessages = new ErrorMessagesComponent();
|
||||
this.searchUtils.status = this.errorCodes.LOADING;
|
||||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.subscriptions.push(this.indexInfoService.getLastIndexDate(this.properties).subscribe(res => {
|
||||
this.lastDBLoadDate = res;
|
||||
}));
|
||||
this.searchUtils.baseUrl = this.properties.searchLinkToProjects;
|
||||
this.subscriptions.push(this._communityService.getCommunityAsObservable().subscribe(community =>{
|
||||
if(community != null){
|
||||
this.communityId = community.communityId;
|
||||
this.customFilter = new SearchCustomFilter("Community", "communityId", this.communityId, community.shortTitle);
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.communityId);
|
||||
this.subscriptions.push(this.route.queryParams.subscribe(params => {
|
||||
let page = (params['page'] === undefined) ? 1 : +params['page'];
|
||||
this.searchUtils.page = (page <= 0) ? 1 : page;
|
||||
this.selectedFunder = params["funder"]?StringUtils.unquote(params["funder"]):null;
|
||||
this.searchUtils.validateSize(params['size']);
|
||||
|
||||
this.keyword = decodeURIComponent(params['fv0']?params['fv0']:(params['keyword']?params['keyword']:''));
|
||||
this.selectedFields = [];
|
||||
this.searchPage.prepareSearchPage(this.fieldIds, this.selectedFields, this.refineFields, [], ["funder"], this.fieldIdsMap, this.customFilter, params, "project");
|
||||
this.searchPage.prepareSearchPage(this.fieldIds, this.selectedFields, this.refineFields, [], this.fieldIdsMap, this.customFilter, params, "project");
|
||||
if(this.initialLoad) {
|
||||
this.initialLoad = false;
|
||||
this._getCommunityFunders();
|
||||
this._getResults();
|
||||
}else{
|
||||
this._getResults();
|
||||
}
|
||||
|
@ -123,61 +123,73 @@ export class OpenaireSearchProjectsComponent {
|
|||
this.disableForms = true;
|
||||
this.disableRefineForms = true;
|
||||
this.enableSearchView = false;
|
||||
this.subscriptions.push(this._searchProjectsService.searchProjectsWithPaging(this.properties, this.communityId, this.searchUtils.page, this.searchUtils.size, this.keyword, this.selectedFunder, "name" ).subscribe(
|
||||
data => {
|
||||
this.searchUtils.totalResults = data['totalElements'];
|
||||
this.filters = this.selectedFunder?this.createFilters([this.selectedFunder]):this.createFilters(this.originalFunders);
|
||||
this.results = this.parseResults(data.content);
|
||||
this.oldTotalResults = data['totalElements'];
|
||||
this.searchUtils.totalResults = data['totalElements'];
|
||||
this.searchUtils.status = this.results.length == 0 ? this.errorCodes.NONE: this.errorCodes.DONE;
|
||||
this.disableForms = false;
|
||||
this.disableRefineForms = false;
|
||||
this.enableSearchView = true;
|
||||
this.searchUtils.refineStatus = this.errorCodes.DONE;
|
||||
this.searchPage.prepareFiltersToShow(this.filters, this.searchUtils.totalResults);
|
||||
},
|
||||
err => {
|
||||
this.handleError("Error getting projects for community with id: " + this.communityId, err);
|
||||
this.searchUtils.status = this.errorMessages.getErrorCode(err.status);
|
||||
this.enableSearchView = true;
|
||||
}
|
||||
));
|
||||
|
||||
if(this.allResults) {
|
||||
this.subscriptions.push(this._searchProjectsService.searchProjects(this.properties, this.communityId).subscribe(
|
||||
data => {
|
||||
this.originalFilters = this.createFilters(data).slice(); //copy array
|
||||
this.allResults = this.parseResults(data);
|
||||
this.filters = this.searchPage.prepareFiltersToShow(this.originalFilters, this.allResults.length);
|
||||
this.filterResults();
|
||||
},
|
||||
err => {
|
||||
this.handleError("Error getting projects for community with id: " + this.communityId, err);
|
||||
this.searchUtils.status = this.errorMessages.getErrorCode(err.status);
|
||||
this.enableSearchView = true;
|
||||
}
|
||||
));
|
||||
}else{
|
||||
this.filters = this.searchPage.prepareFiltersToShow(this.originalFilters, this.allResults.length);
|
||||
this.filterResults();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private createFilters(data):Filter[] {
|
||||
let length = Array.isArray(data) ? data.length : 1;
|
||||
|
||||
var filter_names=["Funder"];
|
||||
var filter_ids=["funder"];
|
||||
var filter_original_ids = ["funder"];
|
||||
|
||||
var value_names=[];
|
||||
var value_original_ids=[];
|
||||
|
||||
var funders = new Set<String>();
|
||||
var value_name = [];
|
||||
var value_original_id = [];
|
||||
for(let funder of data) {
|
||||
funders.add(funder);
|
||||
value_name.push(funder);
|
||||
value_original_id.push(funder);
|
||||
let i;
|
||||
for(i=0; i<length; i++) {
|
||||
let resData = Array.isArray(data) ? data[i] : data;
|
||||
if(resData.funder && !funders.has(resData.funder)) {
|
||||
funders.add(resData.funder);
|
||||
value_name.push(resData.funder);
|
||||
value_original_id.push(resData.funder.trim());
|
||||
}
|
||||
}
|
||||
|
||||
value_names.push(value_name);
|
||||
value_original_ids.push(value_original_id);
|
||||
|
||||
var filters: Filter[] =[];
|
||||
if(value_name.length > 0) {
|
||||
for(i =0 ; i < filter_names.length;i++){
|
||||
if(value_names[i].length > 0) {
|
||||
var values: Value[] = [];
|
||||
for (var j = 0; j < value_name.length; j++) {
|
||||
var value: Value = {name: value_name[j], id:value_name[j], number: 0, selected: this.selectedFunder == value_name[j] }
|
||||
for (var j = 0; j < value_names[i].length; j++) {
|
||||
var value: Value = {name: value_names[i][j], id: value_original_ids[i][j], number: j, selected: false}
|
||||
values.push(value);
|
||||
}
|
||||
var filter: Filter = {
|
||||
title: "Funder",
|
||||
filterId: "funder",
|
||||
originalFilterId: "funder",
|
||||
title: filter_names[i],
|
||||
filterId: filter_ids[i],
|
||||
originalFilterId: filter_original_ids[i],
|
||||
values: values,
|
||||
countSelectedValues: this.selectedFunder?1:0,
|
||||
countSelectedValues: 0,
|
||||
"filterOperator": 'or',
|
||||
valueIsExact: true,
|
||||
filterType: "checkbox"
|
||||
};
|
||||
filters.push(filter);
|
||||
}
|
||||
|
||||
}
|
||||
return filters;
|
||||
}
|
||||
|
||||
|
@ -185,11 +197,7 @@ export class OpenaireSearchProjectsComponent {
|
|||
let results:SearchResult[]=[];
|
||||
for(let result of data){
|
||||
let sResult:SearchResult = new SearchResult();
|
||||
if(!result["availableSince"] || !this.lastDBLoadDate || (result["availableSince"] && this.lastDBLoadDate && result["availableSince"] < this.lastDBLoadDate)){
|
||||
sResult.id = result.openaireId;
|
||||
}else{
|
||||
sResult.id = "-1"; //not yet in the graph
|
||||
}
|
||||
sResult.id = result.openaireId;
|
||||
sResult.title = {name:"", accessMode: null};
|
||||
sResult.title.name = result.name?result.name:result.acronym;
|
||||
sResult.acronym = result['acronym'];
|
||||
|
@ -199,32 +207,33 @@ export class OpenaireSearchProjectsComponent {
|
|||
}
|
||||
return results;
|
||||
}
|
||||
getFunderFilterValue(){
|
||||
filterResults(){
|
||||
let results = this.allResults.filter(value => { return value.title.name && value.title.name.toLowerCase().indexOf(this.keyword.toLowerCase()) !=-1 || value.acronym && value.acronym.toLowerCase().indexOf(this.keyword.toLowerCase()) !=-1});
|
||||
let funderFilterValues = [];
|
||||
for(let filter of this.filters){
|
||||
if(filter.countSelectedValues > 0){
|
||||
for(let value of filter.values){
|
||||
if(value.selected) {
|
||||
return value.name;
|
||||
funderFilterValues.push(value.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
if(funderFilterValues.length > 0) {
|
||||
results = results.filter(value => {
|
||||
return funderFilterValues.indexOf(value.funderShortname) != -1
|
||||
});
|
||||
}
|
||||
this.oldTotalResults = results.length;
|
||||
this.searchUtils.totalResults = results.length;
|
||||
this.results = results.slice((this.searchUtils.page - 1) * this.searchUtils.size, this.searchUtils.page *this.searchUtils.size );
|
||||
this.searchUtils.status = this.results.length == 0 ? this.errorCodes.NONE: this.errorCodes.DONE;
|
||||
this.disableForms = false;
|
||||
this.disableRefineForms = false;
|
||||
this.enableSearchView = true;
|
||||
this.searchUtils.refineStatus = this.errorCodes.DONE;
|
||||
}
|
||||
private handleError(message: string, error) {
|
||||
console.error("Projects simple Search Page: "+message, error);
|
||||
}
|
||||
|
||||
public _getCommunityFunders() {
|
||||
this.subscriptions.push(this._searchProjectsService.getProjectFunders(this.properties, this.communityId).subscribe(
|
||||
data => {
|
||||
this.originalFunders = data
|
||||
this._getResults();
|
||||
},
|
||||
err => {
|
||||
}
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -2,7 +2,10 @@ import {Component, OnDestroy, OnInit} from '@angular/core';
|
|||
import {SearchCustomFilter} from "../../openaireLibrary/searchPages/searchUtils/searchUtils.class";
|
||||
import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properties";
|
||||
import {ActivatedRoute} from "@angular/router";
|
||||
import {ConnectHelper} from "../../openaireLibrary/connect/connectHelper";
|
||||
import {PiwikHelper} from "../../utils/piwikHelper";
|
||||
import {Subscriber} from "rxjs";
|
||||
import {CommunitiesService} from "../../openaireLibrary/connect/communities/communities.service";
|
||||
import {properties} from "../../../environments/environment";
|
||||
import {CommunityService} from "../../openaireLibrary/connect/community/community.service";
|
||||
|
||||
|
@ -10,13 +13,15 @@ import {CommunityService} from "../../openaireLibrary/connect/community/communit
|
|||
selector: 'openaire-search-results',
|
||||
template: `
|
||||
<search-research-results resultType="result" [openaireLink]="'https://' + (properties.environment == 'production'?'':'beta.') + 'explore.openaire.eu/search/find/research-outcomes'"
|
||||
[customFilter]=customFilter [hasPrefix]="false"
|
||||
[customFilter]=customFilter [piwikSiteId]="piwikSiteId" [hasPrefix]="false"
|
||||
[includeOnlyResultsAndFilter]="false" [showBreadcrumb]="true" [showSwitchSearchLink]="true" [searchForm]="{dark: false, class: 'search-form'}"></search-research-results>
|
||||
`
|
||||
|
||||
})
|
||||
export class OpenaireSearchResearchResultsComponent implements OnInit, OnDestroy {
|
||||
|
||||
connectCommunityId: string;
|
||||
piwikSiteId = null;
|
||||
customFilter: SearchCustomFilter = null;
|
||||
properties:EnvProperties = properties;
|
||||
sub;
|
||||
|
@ -38,6 +43,7 @@ export class OpenaireSearchResearchResultsComponent implements OnInit, OnDestroy
|
|||
this.sub = this._communityService.getCommunityAsObservable().subscribe(community =>{
|
||||
if(community != null){
|
||||
this.connectCommunityId = community.communityId;
|
||||
this.piwikSiteId = PiwikHelper.getSiteId(this.connectCommunityId);
|
||||
this.customFilter = new SearchCustomFilter("Community", "communityId", this.connectCommunityId, community.shortTitle);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,71 +0,0 @@
|
|||
import {SearchFieldsBase} from "src/app/openaireLibrary/utils/properties/searchFields.base";
|
||||
import {properties} from "src/environments/environment";
|
||||
|
||||
|
||||
export class SearchFields extends SearchFieldsBase {
|
||||
constructor() {
|
||||
super();
|
||||
if(properties.plan == "Premium" && properties.environment != 'production'){
|
||||
this.RESULT_REFINE_FIELDS.push("relorganization");
|
||||
this.RESULT_FIELDS_ORDERED[3].values.push("relorganization")
|
||||
}
|
||||
}
|
||||
public static getParameterOrder(fieldId: string, params): number {
|
||||
let fields = [];
|
||||
let searchFields = new SearchFields();
|
||||
if (searchFields.RESULT_REFINE_FIELDS.indexOf(fieldId) != -1) {
|
||||
fields = searchFields.RESULT_REFINE_FIELDS;
|
||||
} else if (searchFields.PROJECT_REFINE_FIELDS.indexOf(fieldId) != -1) {
|
||||
fields = searchFields.PROJECT_REFINE_FIELDS
|
||||
} else if (searchFields.ORGANIZATION_REFINE_FIELDS.indexOf(fieldId) != -1) {
|
||||
fields = searchFields.ORGANIZATION_REFINE_FIELDS;
|
||||
} else if (searchFields.DATASOURCE_REFINE_FIELDS.indexOf(fieldId) != -1) {
|
||||
fields = searchFields.DATASOURCE_REFINE_FIELDS;
|
||||
}
|
||||
let index = fields.indexOf(fieldId);
|
||||
let paramIndex = 0;
|
||||
if (index != -1) {
|
||||
for (let keyValue of params) {
|
||||
if (fields.indexOf(keyValue[0]) > index) {
|
||||
break;
|
||||
}
|
||||
paramIndex++
|
||||
}
|
||||
}
|
||||
return paramIndex;
|
||||
}
|
||||
}
|
||||
|
||||
export enum OpenaireEntities {
|
||||
RESULTS = "Research products",
|
||||
PUBLICATIONS = "Publications",
|
||||
DATASETS = "Research data",
|
||||
SOFTWARE = "Research software",
|
||||
OTHER = "Other research products",
|
||||
PROJECTS = "Projects",
|
||||
ORGANIZATIONS = "Organizations",
|
||||
DATASOURCES = "Data sources",
|
||||
SERVICES = "Services",
|
||||
COMMUNITIES = "Research communities",
|
||||
|
||||
RESULT = "Research product",
|
||||
PUBLICATION = "Publication",
|
||||
DATASET = "Research data",
|
||||
SOFTWARE_SINGULAR = "Research software",
|
||||
OTHER_SINGULAR = "Other research product",
|
||||
PROJECT = "Project",
|
||||
ORGANIZATION = "Organization",
|
||||
DATASOURCE = "Data source",
|
||||
SERVICE = "Service",
|
||||
COMMUNITY = "Research community",
|
||||
|
||||
RESULTS_FILE = "research-products",
|
||||
PUBLICATIONS_FILE = "publications",
|
||||
DATASETS_FILE = "research-data",
|
||||
SOFTWARE_FILE = "research-software",
|
||||
OTHER_FILE = "other-research-products",
|
||||
PROJECTS_FILE = "projects",
|
||||
ORGANIZATIONS_FILE = "organizations",
|
||||
DATASOURCES_FILE = "data-sources",
|
||||
SERVICES_FILE = "services",
|
||||
}
|
|
@ -13,6 +13,7 @@ import {
|
|||
StatisticsDisplay,
|
||||
StatisticsSummary
|
||||
} from "../openaireLibrary/connect/statistics/statisticsEntities";
|
||||
import {PiwikHelper} from '../utils/piwikHelper';
|
||||
import {CommunityCharts} from "../openaireLibrary/connect/statistics/communityCharts";
|
||||
import {CommunityService} from "../openaireLibrary/connect/community/community.service";
|
||||
import {Subscriber, Subscription} from "rxjs";
|
||||
|
@ -89,8 +90,8 @@ export class StatisticsComponent {
|
|||
community => {
|
||||
if(community) {
|
||||
this.communityId = community.communityId;
|
||||
if (this.currentMode == "showInMonitor") {
|
||||
this.subs.push(this._piwikService.trackView(this.properties, "Monitor " + this.communityId).subscribe());
|
||||
if (this.currentMode == "showInMonitor" && this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
this.subs.push(this._piwikService.trackView(this.properties, "Monitor " + this.communityId, PiwikHelper.siteIDs[this.communityId]).subscribe());
|
||||
}
|
||||
this.communityName = community.shortTitle;
|
||||
this.createChartUrlMap();
|
||||
|
@ -156,7 +157,7 @@ export class StatisticsComponent {
|
|||
|
||||
getCommunityInfo() {
|
||||
// console.log(`calling ${this.properties.adminToolsAPIURL}/communityFull/${this.communityId}`);
|
||||
this.subs.push(this._configService.portalAsObservable.subscribe(
|
||||
this.subs.push(this._configService.communityInformationState.subscribe(
|
||||
res => {
|
||||
this.communityInfo = res;
|
||||
/*for(let i=0; i<this.communityInfo.entities.length; i++){
|
||||
|
|
|
@ -6,6 +6,7 @@ import {HelperService} from "../openaireLibrary/utils/helper/helper.service";
|
|||
import {Meta, Title} from "@angular/platform-browser";
|
||||
import {SEOService} from "../openaireLibrary/sharedComponents/SEO/SEO.service";
|
||||
import {PiwikService} from "../openaireLibrary/utils/piwik/piwik.service";
|
||||
import {PiwikHelper} from "../utils/piwikHelper";
|
||||
import {StringUtils} from "../openaireLibrary/utils/string-utils.class";
|
||||
import {Breadcrumb} from "../openaireLibrary/utils/breadcrumbs/breadcrumbs.component";
|
||||
import {properties} from "../../environments/environment";
|
||||
|
@ -361,7 +362,9 @@ export class SubjectsComponent {
|
|||
this.subs.push(this.communityService.getCommunityAsObservable().subscribe(community => {
|
||||
if (community) {
|
||||
this.communityId = community.communityId;
|
||||
this.subs.push(this._piwikService.trackView(this.properties, this.pageTitle).subscribe());
|
||||
if (this.properties.enablePiwikTrack && (typeof document !== 'undefined')) {
|
||||
this.subs.push(this._piwikService.trackView(this.properties, this.pageTitle, PiwikHelper.getSiteId(this.communityId)).subscribe());
|
||||
}
|
||||
this.getPageContents();
|
||||
this.displayedSubjects = community.subjects;
|
||||
this.displayedSdg = community.sdg;
|
||||
|
@ -382,7 +385,7 @@ export class SubjectsComponent {
|
|||
}
|
||||
|
||||
createParams(param) {
|
||||
return StringUtils.URIEncode(param);
|
||||
return StringUtils.quote(StringUtils.URIEncode(param));
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
|
|
|
@ -1,74 +0,0 @@
|
|||
import {Injectable} from '@angular/core';
|
||||
import {ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree} from '@angular/router';
|
||||
import {forkJoin, Observable} from 'rxjs';
|
||||
import {CommunityService} from "../openaireLibrary/connect/community/community.service";
|
||||
import {UserManagementService} from "../openaireLibrary/services/user-management.service";
|
||||
import {ConnectHelper} from "../openaireLibrary/connect/connectHelper";
|
||||
import {properties} from "../../environments/environment";
|
||||
import {map, take} from "rxjs/operators";
|
||||
import {LoginErrorCodes} from "../openaireLibrary/login/utils/guardHelper.class";
|
||||
import {Session} from "../openaireLibrary/login/utils/helper.class";
|
||||
|
||||
@Injectable()
|
||||
export class CommunityAccessGuard {
|
||||
|
||||
constructor(private router: Router,
|
||||
private communityService: CommunityService, private userManagementService: UserManagementService) {
|
||||
}
|
||||
|
||||
check(path: string): Observable<boolean> | boolean {
|
||||
let community = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
if (!community) {
|
||||
this.router.navigate([properties.errorLink], {queryParams: {page: path}});
|
||||
return false;
|
||||
}
|
||||
return forkJoin([
|
||||
this.userManagementService.getUserInfo().pipe(take(1)),
|
||||
this.communityService.getCommunity(community).pipe(take(1))
|
||||
]).pipe(
|
||||
map(([user, communityInfo]) => {
|
||||
if (communityInfo) {
|
||||
if (communityInfo.isPublic()) {
|
||||
return true;
|
||||
} else if (communityInfo.isPrivate()) {
|
||||
this.router.navigate([properties.errorLink], {queryParams: {page: path}});
|
||||
return false;
|
||||
} else {
|
||||
if (!user) {
|
||||
this.router.navigate(['/user-info'], {
|
||||
queryParams: {
|
||||
'errorCode': LoginErrorCodes.NOT_LOGIN,
|
||||
'redirectUrl': path
|
||||
}
|
||||
})
|
||||
return false;
|
||||
}
|
||||
if (Session.isPortalAdministrator(user) || Session.isCommunityCurator(user) || Session.isManager('community', community, user) || Session.isSubscribedTo('community', community, user)) {
|
||||
return true;
|
||||
} else {
|
||||
this.router.navigate(['/user-info'], {
|
||||
queryParams: {
|
||||
'errorCode': LoginErrorCodes.NOT_AUTHORIZED,
|
||||
'redirectUrl': path
|
||||
}
|
||||
})
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
this.router.navigate([properties.errorLink], {queryParams: {page: path}});
|
||||
return false;
|
||||
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
|
||||
return this.check(state.url);
|
||||
}
|
||||
|
||||
canActivateChild(childRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
|
||||
return this.check(state.url);
|
||||
}
|
||||
}
|
|
@ -1,6 +1,3 @@
|
|||
/**
|
||||
* @deprecated
|
||||
* */
|
||||
export class PiwikHelper{
|
||||
public static siteIDs = {
|
||||
"dh-ch":81,
|
||||
|
@ -46,7 +43,6 @@ export class PiwikHelper{
|
|||
"dth": 719,
|
||||
"lifewatch-eric": 744
|
||||
};
|
||||
|
||||
public static getSiteId(communityId:string){
|
||||
return this.siteIDs[communityId];
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ export class StatisticsService {
|
|||
}
|
||||
|
||||
getCommunityAdminStatisticsChoices(properties: EnvProperties, communityId: string): Observable<StatisticsDisplay> {
|
||||
let url = properties.adminToolsAPIURL+"statistics/"+communityId;
|
||||
let url = properties.adminToolsAPIURL+"/statistics/"+communityId;
|
||||
//console.log(`getting admin choices for statistics from: ${url}`);
|
||||
return this.http.get<StatisticsDisplay>((properties.useCache) ? (properties.cacheUrl + encodeURIComponent(url)) : url)
|
||||
//.map(stats => <StatisticsDisplay>stats.json())
|
||||
|
|
|
@ -2,13 +2,13 @@ import {NgModule} from '@angular/core';
|
|||
import {RouterModule} from '@angular/router';
|
||||
|
||||
import {InviteComponent} from './invite.component';
|
||||
import {LoginGuard} from '../../../openaireLibrary/login/loginGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {ConnectAdminLoginGuard} from "../../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: InviteComponent, canActivate: [ConnectAdminLoginGuard], canDeactivate: [PreviousRouteRecorder] }
|
||||
{ path: '', component: InviteComponent, canActivate: [LoginGuard], canDeactivate: [PreviousRouteRecorder] }
|
||||
|
||||
])
|
||||
]
|
||||
|
|
|
@ -30,12 +30,8 @@
|
|||
</div>
|
||||
</div>
|
||||
<div *ngIf="!longView" class="uk-margin-top">
|
||||
<a *ngIf="isOpen" id="invite" routerLink="/invite" class="uk-button uk-flex uk-flex-middle uk-flex-center">
|
||||
<a id="invite" routerLink="/invite" class="uk-button uk-flex uk-flex-middle uk-flex-center">
|
||||
<icon name="person_add" [flex]="true"></icon>
|
||||
<span class="uk-margin-small-left">Invite users</span>
|
||||
</a>
|
||||
<a *ngIf="!isOpen" id="invite" [href]="this.adminInviteURL" target="_blank" class="uk-button uk-flex uk-flex-middle uk-flex-center">
|
||||
<icon name="person_add" [flex]="true"></icon>
|
||||
<span class="uk-margin-small-left">Invite members</span>
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -21,7 +21,6 @@ declare var UIkit;
|
|||
export class InviteComponent implements OnInit {
|
||||
@Input() longView: boolean = true;
|
||||
@Input() communityId = null;
|
||||
@Input() isOpen: boolean = true;
|
||||
public properties: EnvProperties = properties;
|
||||
public pageTitle: string = "Invite";
|
||||
public user: User;
|
||||
|
@ -32,11 +31,13 @@ export class InviteComponent implements OnInit {
|
|||
private subs: Subscription[] = [];
|
||||
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
private _router: Router,
|
||||
private _meta: Meta,
|
||||
private helper: HelperService,
|
||||
private _title: Title,
|
||||
private seoService: SEOService,
|
||||
private _piwikService: PiwikService,
|
||||
private userManageService: UserManagementService) {
|
||||
}
|
||||
|
||||
|
@ -45,9 +46,9 @@ export class InviteComponent implements OnInit {
|
|||
user => {
|
||||
this.user = user;
|
||||
}));
|
||||
this.getPageContents();
|
||||
this.url = this.properties.domain + this._router.url;
|
||||
if(this.longView) {
|
||||
this.url = this.properties.domain + this._router.url;
|
||||
this.getPageContents();
|
||||
this.seoService.createLinkForCanonicalURL(this.url);
|
||||
this.updateUrl(this.url);
|
||||
this.updateTitle(this.pageTitle);
|
||||
|
@ -89,12 +90,9 @@ export class InviteComponent implements OnInit {
|
|||
private updateUrl(url: string) {
|
||||
this._meta.updateTag({content: url}, "property='og:url'");
|
||||
}
|
||||
|
||||
get adminInviteURL() {
|
||||
return this.properties.adminPortalURL + '/' + this.communityId + '/users/member';
|
||||
}
|
||||
|
||||
close(element) {
|
||||
UIkit.dropdown(element).hide();
|
||||
this
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
import {NgModule} from '@angular/core';
|
||||
import {NgModule} from '@angular/core';
|
||||
|
||||
import {InviteRoutingModule} from './invite-routing.module';
|
||||
import {InviteRoutingModule} from './invite-routing.module';
|
||||
|
||||
import {LoginGuard} from '../../../openaireLibrary/login/loginGuard.guard';
|
||||
import {InviteBasicModule} from "./inviteBasic.module";
|
||||
import {ConnectAdminLoginGuard} from "../../../openaireLibrary/connect/communityGuard/connectAdminLoginGuard.guard";
|
||||
|
||||
@NgModule({
|
||||
imports: [InviteBasicModule, InviteRoutingModule],
|
||||
providers: [ConnectAdminLoginGuard]
|
||||
providers: [LoginGuard]
|
||||
})
|
||||
|
||||
export class InviteModule { }
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 014adfe4588975e499c72b284ce7368fc2cb5d14
|
||||
Subproject commit c94a24a984fdeee737a18073f6fdcff3c5c9e579
|
|
@ -20,7 +20,7 @@
|
|||
#joinAndInviteBtn #join,
|
||||
#joinAndInviteBtn #member,
|
||||
#joinAndInviteBtn #invite {
|
||||
width: 160px;
|
||||
width: 140px;
|
||||
line-height: 60px;
|
||||
height: 60px;
|
||||
padding: 0 20px;
|
||||
|
@ -61,11 +61,3 @@
|
|||
.hook-inverse();
|
||||
}
|
||||
|
||||
//services slider
|
||||
@slider-nav-item-background-active: white;
|
||||
slider-container slider-nav-item {
|
||||
background-color:#FFFFFF80;
|
||||
}
|
||||
slider-container slider-nav-item when (@hero-fonts-mode = light) {
|
||||
.hook-inverse
|
||||
}
|
||||
|
|
|
@ -30,4 +30,4 @@
|
|||
@inverse-text-primary-color: @connect-color;
|
||||
|
||||
/* General */
|
||||
@general-search-form-background: lighten(@global-secondary-background, 33%);
|
||||
@general-search-form-background: fade(@global-secondary-background, 20%);
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 55765bf0829910661a55337e0e7ca7b1262b7298
|
||||
Subproject commit 64c5ed3d459df4947b0ab93917960c7fb8d1e507
|
|
@ -1,24 +1,118 @@
|
|||
import {EnvProperties} from "../app/openaireLibrary/utils/properties/env-properties";
|
||||
import {common, commonBeta} from "../app/openaireLibrary/utils/properties/environments/environment";
|
||||
|
||||
let props: EnvProperties = {
|
||||
|
||||
dashboard: 'connect',
|
||||
export let properties: EnvProperties = {
|
||||
environment: "beta",
|
||||
adminToolsPortalType: "connect",
|
||||
adminToolsCommunity: 'connect',
|
||||
dashboard: "connect",
|
||||
enablePiwikTrack: true,
|
||||
piwikSiteId: '80',
|
||||
useCache: false,
|
||||
useLongCache: true,
|
||||
showContent: true,
|
||||
showAddThis: false,
|
||||
domain: 'https://beta.connect.openaire.eu',
|
||||
baseLink : "",
|
||||
monitorStatsFrameUrl:"https://beta.services.openaire.eu/stats-tool/"
|
||||
|
||||
|
||||
showAddThis: true,
|
||||
framesAPIURL: "https://beta.openaire.eu/stats3/",
|
||||
statisticsAPIURL: "https://beta.services.openaire.eu/stats-api/",
|
||||
statisticsFrameAPIURL: "https://beta.openaire.eu/stats/",
|
||||
statisticsFrameNewAPIURL: "https://beta.services.openaire.eu/stats-tool/",
|
||||
useNewStatistisTool: true,
|
||||
enermapsURL:"https://lab.idiap.ch/enermaps",
|
||||
impactFactorsAPIURL: "https://bip-api.imsi.athenarc.gr/paper/scores/batch/",
|
||||
claimsAPIURL: "https://beta.services.openaire.eu/claims/rest/claimsService/",
|
||||
searchAPIURLLAst: "https://beta.services.openaire.eu/search/v2/api/",
|
||||
searchResourcesAPIURL: "https://beta.services.openaire.eu/search/v2/api/resources",
|
||||
openCitationsAPIURL: "https://services.openaire.eu/opencitations/getCitations?id=",
|
||||
csvAPIURL: "https://beta.services.openaire.eu/search/v2/api/reports",
|
||||
searchCrossrefAPIURL: "https://api.crossref.org/works",
|
||||
searchDataciteAPIURL: "https://api.datacite.org/works",
|
||||
searchOrcidURL: "https://pub.orcid.org/v2.1/",
|
||||
orcidURL: "https://orcid.org/",
|
||||
orcidAPIURL: "https://services.openaire.eu/uoa-orcid-service/",
|
||||
orcidTokenURL: "https://orcid.org/oauth/authorize?",
|
||||
orcidClientId: "APP-IN0O56SBVVTB7NN4",
|
||||
doiURL: "https://doi.org/",
|
||||
pmcURL: "http://europepmc.org/articles/",
|
||||
pmidURL: "https://www.ncbi.nlm.nih.gov/pubmed/",
|
||||
handleURL: "http://hdl.handle.net/",
|
||||
cordisURL: "http://cordis.europa.eu/projects/",
|
||||
openDoarURL: "http://v2.sherpa.ac.uk/id/repository/",
|
||||
r3DataURL: "http://service.re3data.org/repository/",
|
||||
fairSharingURL: "https://fairsharing.org/",
|
||||
eoscMarketplaceURL: "https://marketplace.eosc-portal.eu/services/",
|
||||
sherpaURL: "http://sherpa.ac.uk/romeo/issn/",
|
||||
sherpaURLSuffix: "/",
|
||||
zenodo: "https://zenodo.org/",
|
||||
zenodoCommunities: "https://zenodo.org/api/communities/",
|
||||
openAccess: "https://www.openaire.eu/support/faq#article-id-234",
|
||||
openAccessRepo: "https://www.openaire.eu/support/faq#article-id-310",
|
||||
fp7Guidlines: "https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme",
|
||||
h2020Guidlines: "https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020",
|
||||
ercGuidlines: "http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf",
|
||||
helpdesk: "https://www.openaire.eu/support/helpdesk",
|
||||
helpdeskEmail: "helpdesk@openaire.eu",
|
||||
utilsService: "https://demo.openaire.eu/utils-service",
|
||||
vocabulariesAPI: "https://beta.services.openaire.eu/provision/mvc/vocabularies/",
|
||||
piwikBaseUrl: "https://analytics.openaire.eu/piwik.php?idsite=",
|
||||
piwikSiteId: "80",
|
||||
loginUrl: "https://beta.services.openaire.eu/login-service/openid_connect_login",
|
||||
userInfoUrl: "https://beta.services.openaire.eu/login-service/userInfo",
|
||||
registryUrl: 'https://beta.services.openaire.eu/uoa-user-management/api/registry/',
|
||||
logoutUrl: "https://beta.services.openaire.eu/login-service/openid_logout",
|
||||
cookieDomain: ".openaire.eu",
|
||||
feedbackmail: "feedback@openaire.eu",
|
||||
cacheUrl: "https://demo.openaire.eu/cache/get?url=",
|
||||
adminToolsAPIURL: "https://beta.services.openaire.eu/uoa-admin-tools/",
|
||||
adminToolsCommunity: "connect",
|
||||
datasourcesAPI: "https://beta.services.openaire.eu/openaire/ds/search/",
|
||||
contextsAPI: "https://beta.services.openaire.eu/openaire/context",
|
||||
communityAPI: "https://beta.services.openaire.eu/openaire/community/",
|
||||
communitiesAPI: "https://beta.services.openaire.eu/openaire/community/communities",
|
||||
csvLimit: 2000,
|
||||
pagingLimit: 20,
|
||||
resultsPerPage: 10,
|
||||
baseLink:"",
|
||||
domain:"https://beta.connect.openaire.eu",
|
||||
afterLoginRedirectLink: "/myCommunities",
|
||||
searchLinkToResult: "/search/result?id=",
|
||||
searchLinkToPublication: "/search/publication?articleId=",
|
||||
searchLinkToProject: "/search/project?projectId=",
|
||||
searchLinkToDataProvider: "/search/dataprovider?datasourceId=",
|
||||
searchLinkToDataset: "/search/dataset?datasetId=",
|
||||
searchLinkToSoftwareLanding: "/search/software?softwareId=",
|
||||
searchLinkToOrganization: "/search/organization?organizationId=",
|
||||
searchLinkToOrp: "/search/other?orpId=",
|
||||
searchLinkToCommunities: "/search/find/communities",
|
||||
searchLinkToPublications: "/search/find/publications",
|
||||
searchLinkToDataProviders: "/search/find/dataproviders",
|
||||
searchLinkToProjects: "/search/find/projects",
|
||||
searchLinkToDatasets: "/search/find/datasets",
|
||||
searchLinkToSoftware: "/search/find/software",
|
||||
searchLinkToOrps: "/search/find/other",
|
||||
searchLinkToOrganizations: "/search/find/organizations",
|
||||
searchLinkToCompatibleDataProviders: "/search/content-providers",
|
||||
searchLinkToEntityRegistriesDataProviders: "/search/entity-registries",
|
||||
searchLinkToJournals: "/search/journals",
|
||||
searchLinkToResults: "/search/find/research-outcomes",
|
||||
searchLinkToAdvancedPublications: "/search/advanced/publications",
|
||||
searchLinkToAdvancedProjects: "/search/advanced/projects",
|
||||
searchLinkToAdvancedDatasets: "/search/advanced/datasets",
|
||||
searchLinkToAdvancedSoftware: "/search/advanced/software",
|
||||
searchLinkToAdvancedOrps: "/search/advanced/other",
|
||||
searchLinkToAdvancedDataProviders: "/search/advanced/dataproviders",
|
||||
searchLinkToAdvancedOrganizations: "/search/advanced/organizations",
|
||||
searchLinkToAdvancedResults: "/search/advanced/research-outcomes",
|
||||
errorLink: '/error',
|
||||
lastIndexInformationLink: "https://beta.openaire.eu/aggregation-and-content-provision-workflows",
|
||||
showLastIndexInformationLink: true,
|
||||
widgetLink: "https://beta.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=",
|
||||
claimsInformationLink: "https://beta.openaire.eu/linking",
|
||||
depositLearnHowPage: "/participate/deposit/learn-how",
|
||||
depositSearchPage: "/participate/deposit/search",
|
||||
shareInZenodoPage: "/participate/deposit/zenodo",
|
||||
reCaptchaSiteKey: "6LezhVIUAAAAAOb4nHDd87sckLhMXFDcHuKyS76P",
|
||||
admins: ["feedback@openaire.eu"],
|
||||
lastIndexUpdate: "2020-05-06",
|
||||
indexInfoAPI: "https://beta.services.openaire.eu/openaire/info/",
|
||||
altMetricsAPIURL: "https://api.altmetric.com/v1/doi/",
|
||||
b2noteAPIURL: 'https://b2note.eudat.eu/',
|
||||
adminPortalURL: "https://beta.admin.connect.openaire.eu",
|
||||
myOrcidLinksPage: "/my-orcid-links"
|
||||
};
|
||||
|
||||
export let properties: EnvProperties = {
|
||||
...common, ...commonBeta, ...props
|
||||
}
|
||||
|
|
|
@ -1,24 +1,119 @@
|
|||
import {EnvProperties} from "../app/openaireLibrary/utils/properties/env-properties";
|
||||
import {common, commonProd} from "../app/openaireLibrary/utils/properties/environments/environment";
|
||||
|
||||
let props: EnvProperties = {
|
||||
|
||||
dashboard: 'connect',
|
||||
export let properties: EnvProperties = {
|
||||
environment: "production",
|
||||
adminToolsPortalType: "connect",
|
||||
adminToolsCommunity: 'connect',
|
||||
dashboard: "connect",
|
||||
enablePiwikTrack: true,
|
||||
piwikSiteId: '80',
|
||||
useCache: false,
|
||||
useLongCache: true,
|
||||
showContent: true,
|
||||
showAddThis: false,
|
||||
domain: 'https://connect.openaire.eu',
|
||||
baseLink : "",
|
||||
hasMachineCache: true,
|
||||
monitorStatsFrameUrl:"https://services.openaire.eu/stats-tool/"
|
||||
|
||||
showAddThis: true,
|
||||
framesAPIURL: "https://www.openaire.eu/stats3/",
|
||||
statisticsAPIURL: "https://services.openaire.eu/stats-api/",
|
||||
statisticsFrameAPIURL: "https://www.openaire.eu/stats/",
|
||||
statisticsFrameNewAPIURL: "https://services.openaire.eu/stats-tool/",
|
||||
useNewStatistisTool: true,
|
||||
enermapsURL:"https://lab.idiap.ch/enermaps",
|
||||
impactFactorsAPIURL: "https://bip-api.imsi.athenarc.gr/paper/scores/batch/",
|
||||
claimsAPIURL: "https://services.openaire.eu/claims/rest/claimsService/",
|
||||
searchAPIURLLAst: "https://services.openaire.eu/search/v2/api/",
|
||||
searchResourcesAPIURL: "https://services.openaire.eu/search/v2/api/resources",
|
||||
openCitationsAPIURL: "https://services.openaire.eu/opencitations/getCitations?id=",
|
||||
csvAPIURL: "https://services.openaire.eu/search/v2/api/reports",
|
||||
searchCrossrefAPIURL: "https://api.crossref.org/works",
|
||||
searchDataciteAPIURL: "https://api.datacite.org/works",
|
||||
searchOrcidURL: "https://pub.orcid.org/v2.1/",
|
||||
orcidURL: "https://orcid.org/",
|
||||
orcidAPIURL: "https://services.openaire.eu/uoa-orcid-service/",
|
||||
orcidTokenURL: "https://orcid.org/oauth/authorize?",
|
||||
orcidClientId: "APP-IN0O56SBVVTB7NN4",
|
||||
doiURL: "https://doi.org/",
|
||||
pmcURL: "http://europepmc.org/articles/",
|
||||
pmidURL: "https://www.ncbi.nlm.nih.gov/pubmed/",
|
||||
handleURL: "http://hdl.handle.net/",
|
||||
cordisURL: "http://cordis.europa.eu/projects/",
|
||||
openDoarURL: "http://v2.sherpa.ac.uk/id/repository/",
|
||||
r3DataURL: "http://service.re3data.org/repository/",
|
||||
fairSharingURL: "https://fairsharing.org/",
|
||||
eoscMarketplaceURL: "https://marketplace.eosc-portal.eu/services/",
|
||||
sherpaURL: "http://sherpa.ac.uk/romeo/issn/",
|
||||
sherpaURLSuffix: "/",
|
||||
zenodo: "https://zenodo.org/",
|
||||
zenodoCommunities: "https://zenodo.org/api/communities/",
|
||||
openAccess: "https://www.openaire.eu/support/faq#article-id-234",
|
||||
openAccessRepo: "https://www.openaire.eu/support/faq#article-id-310",
|
||||
fp7Guidlines: "https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme",
|
||||
h2020Guidlines: "https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020",
|
||||
ercGuidlines: "http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf",
|
||||
helpdesk: "https://www.openaire.eu/support/helpdesk",
|
||||
helpdeskEmail: "helpdesk@openaire.eu",
|
||||
utilsService: "https://explore.openaire.eu/utils-service",
|
||||
vocabulariesAPI: "https://services.openaire.eu/provision/mvc/vocabularies/",
|
||||
piwikBaseUrl: "https://analytics.openaire.eu/piwik.php?idsite=",
|
||||
piwikSiteId: "112",
|
||||
loginUrl: "https://services.openaire.eu/login-service/openid_connect_login",
|
||||
registryUrl: 'https://services.openaire.eu/uoa-user-management/api/registry/',
|
||||
userInfoUrl: "https://services.openaire.eu/login-service/userInfo",
|
||||
logoutUrl: "https://services.openaire.eu/login-service/openid_logout",
|
||||
cookieDomain: ".openaire.eu",
|
||||
feedbackmail: "feedback@openaire.eu",
|
||||
cacheUrl: "https://explore.openaire.eu/cache/get?url=",
|
||||
datasourcesAPI: "https://services.openaire.eu/openaire/ds/search/",
|
||||
adminToolsAPIURL: "https://services.openaire.eu/uoa-admin-tools/",
|
||||
adminToolsCommunity: "connect",
|
||||
contextsAPI: "https://services.openaire.eu/openaire/context",
|
||||
communityAPI: "https://services.openaire.eu/openaire/community/",
|
||||
communitiesAPI: "https://services.openaire.eu/openaire/community/communities",
|
||||
csvLimit: 2000,
|
||||
pagingLimit: 20,
|
||||
resultsPerPage: 10,
|
||||
baseLink:"",
|
||||
domain: "https://connect.openaire.eu",
|
||||
afterLoginRedirectLink: "/myCommunities",
|
||||
searchLinkToResult: "/search/result?id=",
|
||||
searchLinkToPublication: "/search/publication?articleId=",
|
||||
searchLinkToProject: "/search/project?projectId=",
|
||||
searchLinkToDataProvider: "/search/dataprovider?datasourceId=",
|
||||
searchLinkToDataset: "/search/dataset?datasetId=",
|
||||
searchLinkToSoftwareLanding: "/search/software?softwareId=",
|
||||
searchLinkToOrganization: "/search/organization?organizationId=",
|
||||
searchLinkToOrp: "/search/other?orpId=",
|
||||
searchLinkToCommunities: "/search/find/communities",
|
||||
searchLinkToPublications: "/search/find/publications",
|
||||
searchLinkToDataProviders: "/search/find/dataproviders",
|
||||
searchLinkToProjects: "/search/find/projects",
|
||||
searchLinkToDatasets: "/search/find/datasets",
|
||||
searchLinkToSoftware: "/search/find/software",
|
||||
searchLinkToOrps: "/search/find/other",
|
||||
searchLinkToOrganizations: "/search/find/organizations",
|
||||
searchLinkToCompatibleDataProviders: "/search/content-providers",
|
||||
searchLinkToEntityRegistriesDataProviders: "/search/entity-registries",
|
||||
searchLinkToJournals: "/search/journals",
|
||||
searchLinkToResults: "/search/find/research-outcomes",
|
||||
searchLinkToAdvancedPublications: "/search/advanced/publications",
|
||||
searchLinkToAdvancedProjects: "/search/advanced/projects",
|
||||
searchLinkToAdvancedDatasets: "/search/advanced/datasets",
|
||||
searchLinkToAdvancedSoftware: "/search/advanced/software",
|
||||
searchLinkToAdvancedOrps: "/search/advanced/other",
|
||||
searchLinkToAdvancedDataProviders: "/search/advanced/dataproviders",
|
||||
searchLinkToAdvancedOrganizations: "/search/advanced/organizations",
|
||||
searchLinkToAdvancedResults: "/search/advanced/research-outcomes",
|
||||
errorLink: '/error',
|
||||
lastIndexInformationLink: "https://www.openaire.eu/aggregation-and-content-provision-workflows",
|
||||
showLastIndexInformationLink: true,
|
||||
widgetLink: "https://www.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=",
|
||||
claimsInformationLink: "https://www.openaire.eu/linking",
|
||||
depositLearnHowPage: "/participate/deposit/learn-how",
|
||||
depositSearchPage: "/participate/deposit/search",
|
||||
shareInZenodoPage: "/participate/deposit/zenodo",
|
||||
reCaptchaSiteKey: "6LezhVIUAAAAAOb4nHDd87sckLhMXFDcHuKyS76P",
|
||||
admins: ["feedback@openaire.eu"],
|
||||
lastIndexUpdate: "2019-07-24",
|
||||
indexInfoAPI: "https://services.openaire.eu/openaire/info/",
|
||||
altMetricsAPIURL: "https://api.altmetric.com/v1/doi/",
|
||||
b2noteAPIURL: 'https://b2note.eudat.eu/',
|
||||
adminPortalURL: "https://admin.connect.openaire.eu",
|
||||
myOrcidLinksPage: "/my-orcid-links",
|
||||
hasMachineCache: true
|
||||
};
|
||||
|
||||
export let properties: EnvProperties = {
|
||||
...common, ...commonProd, ...props
|
||||
}
|
||||
|
|
|
@ -4,28 +4,120 @@
|
|||
// The list of which env maps to which file can be found in `.angular.json`.
|
||||
|
||||
import {EnvProperties} from '../app/openaireLibrary/utils/properties/env-properties';
|
||||
import {common, commonDev} from "../app/openaireLibrary/utils/properties/environments/environment";
|
||||
|
||||
let props: EnvProperties = {
|
||||
dashboard: 'connect',
|
||||
export let properties: EnvProperties = {
|
||||
environment: 'development',
|
||||
adminToolsPortalType: "connect",
|
||||
adminToolsCommunity: 'connect',
|
||||
dashboard: 'connect',
|
||||
enablePiwikTrack: false,
|
||||
piwikSiteId: '80',
|
||||
useCache: false,
|
||||
useLongCache: false,
|
||||
showContent: true,
|
||||
showAddThis: false,
|
||||
framesAPIURL: 'https://beta.openaire.eu/stats3/',
|
||||
statisticsAPIURL: 'https://beta.services.openaire.eu/stats-api/',
|
||||
statisticsFrameAPIURL: 'https://beta.openaire.eu/stats/',
|
||||
statisticsFrameNewAPIURL: "https://beta.services.openaire.eu/stats-tool/",
|
||||
useNewStatistisTool: true,
|
||||
enermapsURL:"https://lab.idiap.ch/enermaps",
|
||||
impactFactorsAPIURL: 'https://bip-api.imsi.athenarc.gr/paper/scores/batch/',
|
||||
claimsAPIURL: 'http://scoobydoo.di.uoa.gr:8080/dnet-claims-service-2.0.0-SNAPSHOT/rest/claimsService/',
|
||||
searchAPIURLLAst: 'https://beta.services.openaire.eu/search/v2/api/',
|
||||
searchResourcesAPIURL: 'https://beta.services.openaire.eu/search/v2/api/resources',
|
||||
openCitationsAPIURL: 'https://services.openaire.eu/opencitations/getCitations?id=',
|
||||
csvAPIURL: 'https://beta.services.openaire.eu/search/v2/api/reports',
|
||||
searchCrossrefAPIURL: 'https://api.crossref.org/works',
|
||||
searchDataciteAPIURL: 'https://api.datacite.org/works',
|
||||
searchOrcidURL: "https://pub.orcid.org/v2.1/",
|
||||
orcidURL: "https://orcid.org/",
|
||||
orcidAPIURL: "http://duffy.di.uoa.gr:19480/uoa-orcid-service/",
|
||||
orcidTokenURL: "https://sandbox.orcid.org/oauth/authorize?",
|
||||
orcidClientId: "APP-A5M3KTX6NCN67L91",
|
||||
doiURL: 'https://doi.org/',
|
||||
pmcURL: 'http://europepmc.org/articles/',
|
||||
pmidURL: 'https://www.ncbi.nlm.nih.gov/pubmed/',
|
||||
handleURL: 'http://hdl.handle.net/',
|
||||
cordisURL: 'http://cordis.europa.eu/projects/',
|
||||
openDoarURL: 'http://v2.sherpa.ac.uk/id/repository/',
|
||||
r3DataURL: 'http://service.re3data.org/repository/',
|
||||
fairSharingURL: "https://fairsharing.org/",
|
||||
eoscMarketplaceURL: "https://marketplace.eosc-portal.eu/services/",
|
||||
sherpaURL: 'http://sherpa.ac.uk/romeo/issn/',
|
||||
sherpaURLSuffix: '/',
|
||||
zenodo: 'https://zenodo.org/',
|
||||
zenodoCommunities: 'https://zenodo.org/api/communities/',
|
||||
openAccess: 'https://www.openaire.eu/support/faq#article-id-234',
|
||||
openAccessRepo: 'https://www.openaire.eu/support/faq#article-id-310',
|
||||
fp7Guidlines: 'https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme',
|
||||
h2020Guidlines: 'https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020',
|
||||
ercGuidlines: 'http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf',
|
||||
helpdesk: 'https://www.openaire.eu/support/helpdesk',
|
||||
helpdeskEmail: 'helpdesk@openaire.eu',
|
||||
utilsService: 'http://mpagasas.di.uoa.gr:8000',
|
||||
vocabulariesAPI: 'https://dev-openaire.d4science.org/provision/mvc/vocabularies/',
|
||||
piwikBaseUrl: 'https://analytics.openaire.eu/piwik.php?idsite=',
|
||||
piwikSiteId: '80',
|
||||
registryUrl: 'http://mpagasas.di.uoa.gr:8080/dnet-openaire-users-1.0.0-SNAPSHOT/api/registry/',
|
||||
loginUrl: "http://mpagasas.di.uoa.gr:19080/login-service/openid_connect_login",
|
||||
userInfoUrl: "http://mpagasas.di.uoa.gr:19080/login-service/userInfo",
|
||||
logoutUrl: "http://mpagasas.di.uoa.gr:19080/login-service/openid_logout",
|
||||
cookieDomain: '.di.uoa.gr',
|
||||
feedbackmail: 'openaire.test@gmail.com',
|
||||
cacheUrl: 'http://dl170.madgik.di.uoa.gr:3000/get?url=',
|
||||
adminToolsAPIURL: 'http://duffy.di.uoa.gr:19280/uoa-admin-tools/',
|
||||
adminToolsCommunity: 'connect',
|
||||
datasourcesAPI: 'https://beta.services.openaire.eu/openaire/ds/search/',
|
||||
contextsAPI: 'https://dev-openaire.d4science.org/openaire/context',
|
||||
communityAPI: 'https://dev-openaire.d4science.org/openaire/community/',
|
||||
communitiesAPI: 'https://dev-openaire.d4science.org/openaire/community/communities',
|
||||
csvLimit: 2000,
|
||||
pagingLimit: 20,
|
||||
resultsPerPage: 10,
|
||||
baseLink: "",
|
||||
domain: 'https://beta.connect.openaire.eu',
|
||||
baseLink : "",
|
||||
|
||||
adminToolsAPIURL: 'http://scoobydoo.di.uoa.gr:8880/uoa-admin-tools/',
|
||||
utilsService:"http://scoobydoo.di.uoa.gr:8000",
|
||||
monitorStatsFrameUrl:"https://stats.madgik.di.uoa.gr/stats-api/",
|
||||
|
||||
afterLoginRedirectLink: '/myCommunities',
|
||||
searchLinkToResult: "/search/result?id=",
|
||||
searchLinkToPublication: '/search/publication?articleId=',
|
||||
searchLinkToProject: '/search/project?projectId=',
|
||||
searchLinkToDataProvider: '/search/dataprovider?datasourceId=',
|
||||
searchLinkToDataset: '/search/dataset?datasetId=',
|
||||
searchLinkToSoftwareLanding: '/search/software?softwareId=',
|
||||
searchLinkToOrganization: '/search/organization?organizationId=',
|
||||
searchLinkToOrp: '/search/other?orpId=',
|
||||
searchLinkToCommunities: '/search/find/communities',
|
||||
searchLinkToPublications: '/search/find/publications',
|
||||
searchLinkToDataProviders: '/search/find/dataproviders',
|
||||
searchLinkToProjects: '/search/find/projects',
|
||||
searchLinkToDatasets: '/search/find/datasets',
|
||||
searchLinkToSoftware: '/search/find/software',
|
||||
searchLinkToOrps: '/search/find/other',
|
||||
searchLinkToOrganizations: '/search/find/organizations',
|
||||
searchLinkToCompatibleDataProviders: '/search/content-providers',
|
||||
searchLinkToEntityRegistriesDataProviders: '/search/entity-registries',
|
||||
searchLinkToJournals: '/search/journals',
|
||||
searchLinkToResults: '/search/find/research-outcomes',
|
||||
searchLinkToAdvancedPublications: '/search/advanced/publications',
|
||||
searchLinkToAdvancedProjects: '/search/advanced/projects',
|
||||
searchLinkToAdvancedDatasets: '/search/advanced/datasets',
|
||||
searchLinkToAdvancedSoftware: '/search/advanced/software',
|
||||
searchLinkToAdvancedOrps: '/search/advanced/other',
|
||||
searchLinkToAdvancedDataProviders: '/search/advanced/dataproviders',
|
||||
searchLinkToAdvancedOrganizations: '/search/advanced/organizations',
|
||||
searchLinkToAdvancedResults: '/search/advanced/research-outcomes',
|
||||
errorLink: '/error',
|
||||
lastIndexInformationLink: 'https://beta.openaire.eu/aggregation-and-content-provision-workflows',
|
||||
showLastIndexInformationLink: true,
|
||||
widgetLink: 'https://beta.openaire.eu/index.php?option=com_openaire&view=widget&format=raw&projectId=',
|
||||
claimsInformationLink: 'https://beta.openaire.eu/linking',
|
||||
depositLearnHowPage: '/participate/deposit/learn-how',
|
||||
depositSearchPage: '/participate/deposit/search',
|
||||
shareInZenodoPage: '/participate/deposit/zenodo',
|
||||
reCaptchaSiteKey: '6LcVtFIUAAAAAB2ac6xYivHxYXKoUvYRPi-6_rLu',
|
||||
admins: ['kostis30fylloy@gmail.com'],
|
||||
lastIndexUpdate: '2019-11-01',
|
||||
indexInfoAPI: 'https://dev-openaire.d4science.org/openaire/info/',
|
||||
altMetricsAPIURL: 'https://api.altmetric.com/v1/doi/',
|
||||
b2noteAPIURL: 'https://b2note.eudat.eu/',
|
||||
adminPortalURL: 'https://beta.admin.connect.openaire.eu',
|
||||
myOrcidLinksPage: "/my-orcid-links"
|
||||
};
|
||||
|
||||
|
||||
export let properties: EnvProperties = {
|
||||
...common, ...commonDev, ...props
|
||||
}
|
||||
|
|
|
@ -12,4 +12,4 @@ if (properties.environment !== "development") {
|
|||
}
|
||||
|
||||
export { AppServerModule } from './app/app.server.module';
|
||||
|
||||
export { renderModule } from '@angular/platform-server';
|
||||
|
|
|
@ -7,6 +7,8 @@ import {
|
|||
platformBrowserDynamicTesting
|
||||
} from '@angular/platform-browser-dynamic/testing';
|
||||
|
||||
declare const require: any;
|
||||
|
||||
// First, initialize the Angular testing environment.
|
||||
getTestBed().initTestEnvironment(
|
||||
BrowserDynamicTestingModule,
|
||||
|
@ -14,3 +16,7 @@ getTestBed().initTestEnvironment(
|
|||
teardown: { destroyAfterEach: false }
|
||||
}
|
||||
);
|
||||
// Then we find all the tests.
|
||||
const context = require.context('./', true, /\.spec\.ts$/);
|
||||
// And load the modules.
|
||||
context.keys().map(context);
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
"extends": "./tsconfig.app.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../out-tsc/app-server",
|
||||
"target": "es2016",
|
||||
"types": [
|
||||
"node"
|
||||
]
|
||||
|
|
|
@ -10,14 +10,13 @@
|
|||
"moduleResolution": "node",
|
||||
"experimentalDecorators": true,
|
||||
"importHelpers": true,
|
||||
"target": "ES2022",
|
||||
"target": "es2020",
|
||||
"typeRoots": [
|
||||
"node_modules/@types"
|
||||
],
|
||||
"lib": [
|
||||
"es2018",
|
||||
"dom"
|
||||
],
|
||||
"useDefineForClassFields": false
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue