Comment out MetaService

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51842 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
sofia.baltzi 2018-04-17 14:03:15 +00:00
parent 9d2a28db41
commit 3475cf97f5
1 changed files with 21 additions and 21 deletions

View File

@ -1,21 +1,21 @@
import {Meta} from '../../sharedComponents/metaService'; // import {Meta} from '../../sharedComponents/metaService';
//
export class OpenaireMetaTags{ // export class OpenaireMetaTags{
//
constructor (private _meta: Meta ) { // constructor (private _meta: Meta ) {
} // }
//
updateDescription(description:string){ // updateDescription(description:string){
this._meta.updateMeta("description", description); // this._meta.updateMeta("description", description);
this._meta.updateProperty("og:description", description); // this._meta.updateProperty("og:description", description);
} // }
updateTitle(title:string){ // updateTitle(title:string){
var _prefix ="OpenAIRE | "; // var _prefix ="OpenAIRE | ";
var _title = _prefix + ((title.length> 50 ) ?title.substring(0,50):title); // var _title = _prefix + ((title.length> 50 ) ?title.substring(0,50):title);
this._meta.setTitle(_title ); // this._meta.setTitle(_title );
this._meta.updateProperty("og:title",_title); // this._meta.updateProperty("og:title",_title);
} // }
updateUrl(url:string){ // updateUrl(url:string){
this._meta.updateProperty("og:url", url); // this._meta.updateProperty("og:url", url);
} // }
} // }