[Library|Trunk]
Result landing: update robots tag with "noindex" for newly added records (under curation) git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60038 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
928053be8c
commit
defc495e88
|
@ -319,7 +319,10 @@ export class ResultLandingComponent {
|
||||||
if ((this.type == "publication") && (this.properties.environment == "beta" || this.properties.environment == "development") && (typeof document !== 'undefined')) {
|
if ((this.type == "publication") && (this.properties.environment == "beta" || this.properties.environment == "development") && (typeof document !== 'undefined')) {
|
||||||
this.getOpenCitations();
|
this.getOpenCitations();
|
||||||
}
|
}
|
||||||
|
if(this.resultLandingInfo.underCurationMessage && this.properties == "production"){
|
||||||
|
//set noindex for newly added records
|
||||||
|
this._meta.updateTag({content: 'noindex'}, "name='robots'");
|
||||||
|
}
|
||||||
if (this.resultLandingInfo.title) {
|
if (this.resultLandingInfo.title) {
|
||||||
this.updateTitle(this.resultLandingInfo.title);
|
this.updateTitle(this.resultLandingInfo.title);
|
||||||
this.updateDescription((this.resultLandingInfo.description ? (this.resultLandingInfo.description) : ("," + this.resultLandingInfo.title)));
|
this.updateDescription((this.resultLandingInfo.description ? (this.resultLandingInfo.description) : ("," + this.resultLandingInfo.title)));
|
||||||
|
|
Loading…
Reference in New Issue