[trunk]: Deposit pages: Bug fixes for library

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54756 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-02-12 11:40:06 +00:00
parent f57ad6940a
commit e82b96ba2b
6 changed files with 24 additions and 24 deletions

View File

@ -39,32 +39,14 @@ export class DepositBySubjectResultComponent {
constructor (private route: ActivatedRoute) {}
constructor (private _router: Router,
private route: ActivatedRoute,
private _searchDataprovidersService: SearchDataprovidersService,
private _meta: Meta,
private _title: Title,
private _piwikService:PiwikService,
private seoService: SEOService) {
this.fetchDataproviders = new FetchDataproviders(this._searchDataprovidersService);
this.status = this.errorCodes.LOADING;
var description = "Openaire, repositories, open access, content provider, compatibility, organization, deposit "+ this.requestFor;
var title = "Deposit "+this.requestFor;
this.updateTitle(title);
this.updateDescription(description);
this.seoService.createLinkForCanonicalURL(this.properties.baseLink+this._router.url, false);
}
ngOnInit() {
this.route.data
.subscribe((data: { envSpecific: EnvProperties }) => {
this.properties = data.envSpecific;
if(!this.zenodoInformation) {
this.zenodoInformation = new ZenodoInformationClass();
}
if(!this.zenodoInformation.url) {
this.zenodoInformation.url = this.properties.zenodo;
}

View File

@ -33,6 +33,10 @@ export class DepositDatasetsComponent {
this.route.data
.subscribe((data: { envSpecific: EnvProperties }) => {
this.properties = data.envSpecific;
if(!this.zenodoInformation) {
this.zenodoInformation = new ZenodoInformationClass();
}
if(!this.zenodoInformation.url) {
this.zenodoInformation.url = this.properties.zenodo;
}

View File

@ -25,6 +25,10 @@ export class DepositDatasetsResultComponent {
this.route.data
.subscribe((data: { envSpecific: EnvProperties }) => {
this.properties = data.envSpecific;
if(!this.zenodoInformation) {
this.zenodoInformation = new ZenodoInformationClass();
}
if(!this.zenodoInformation.url) {
this.zenodoInformation.url = this.properties.zenodo;
}

View File

@ -51,7 +51,6 @@ export class DepositComponent {
var title = "Deposit "+this.requestFor;
var description = "Openaire, repositories, open access, content provider, compatibility, organization, deposit "+ this.requestFor;
this.seoService.createLinkForCanonicalURL(this.properties.baseLink+this._router.url, false);
this.updateTitle(title);
this.updateDescription(description);
}
@ -59,14 +58,17 @@ export class DepositComponent {
this.route.data
.subscribe((data: { envSpecific: EnvProperties }) => {
this.properties = data.envSpecific;
this.seoService.createLinkForCanonicalURL(this.properties.baseLink+this._router.url, false);
this.updateUrl(data.envSpecific.baseLink+this._router.url);
this.url = data.envSpecific.baseLink+this._router.url;
this.openAccess = this.properties.openAccess;
this.openAccessRepo = this.properties.openAccessRepo;
this.fp7Guidlines = this.properties.fp7Guidlines
this.h2020Guidlines = this.properties.h2020Guidlines
this.ercGuidlines = this.properties.ercGuidlines
this.helpdesk = this.properties.helpdesk;
this.updateUrl(data.envSpecific.baseLink+this._router.url);
this.url = data.envSpecific.baseLink+this._router.url;
if(this.properties.enablePiwikTrack && (typeof document !== 'undefined')){
this.piwiksub = this._piwikService.trackView(this.properties, "Deposit "+this.requestFor, this.piwikSiteId).subscribe();
}

View File

@ -36,6 +36,10 @@ export class DepositPublicationsComponent {
.subscribe((data: { envSpecific: EnvProperties }) => {
this.properties = data.envSpecific;
this.mapUrl = this.properties.statisticsFrameAPIURL+"markers-test.html";
if(!this.zenodoInformation) {
this.zenodoInformation = new ZenodoInformationClass();
}
if(!this.zenodoInformation.url) {
this.zenodoInformation.url = this.properties.zenodo;
}

View File

@ -25,6 +25,10 @@ export class DepositPublicationsResultComponent {
this.route.data
.subscribe((data: { envSpecific: EnvProperties }) => {
this.properties = data.envSpecific;
if(!this.zenodoInformation) {
this.zenodoInformation = new ZenodoInformationClass();
}
if(!this.zenodoInformation.url) {
this.zenodoInformation.url = this.properties.zenodo;
}