Project

General

Profile

« Previous | Next » 

Revision 55963

[angular7|library]

Merging Trunk into branch 55904:55959

View differences:

publication.component.ts
94 94
           this.publicationInfo = null;
95 95
           this.updateTitle("Publication");
96 96
           this.updateDescription("");
97
           this.seoService.createLinkForCanonicalURL(this.properties.baseLink+this._router.url);
98 97
          this.articleId = data['articleId'];
99 98

  
100 99
          this.metricsClicked = false;
......
152 151
        this.infoSub = this._publicationService.getPublicationInfo(this.articleId, this.properties).subscribe(
153 152
            data => {
154 153
                this.publicationInfo = data;
155

  
154
                this.seoService.createLinkForCanonicalURL(this.properties.baseLink + this.properties.searchLinkToPublication + this.publicationInfo.record["result"]["header"]["dri:objIdentifier"]);
156 155
                if((this.properties.environment == "beta" || this.properties.environment == "development") && (typeof document !== 'undefined')) {
157 156
                  this.getOpenCitations(this.articleId);
158 157
                }
......
219 218

  
220 219
              this.errorMessage = 'No publication found';
221 220
              this.showLoading = false;
221
              this.seoService.createLinkForCanonicalURL(this.properties.baseLink + this.properties.searchLinkToPublications);
222 222
            }
223 223
      );
224 224
    }

Also available in: Unified diff