Project

General

Profile

« Previous | Next » 

Revision 60985

[Trunk | Connect]:
1. invite.component.ts: [Bug fix] Set meta (canonical url, url, title, description) only when "longView == true" (when we are on invite page, not just calling invite component).
2. browse-community.component.ts: Added method "_formatDescription()" which calls method "StringUtils.HTMLToString()" and then it cuts description up to a threshold (max chars).
3. browse-community.component.html: Removed tooltip from description and "_formatDescription()" is called to show description.

View differences:

invite.component.ts
48 48
    }));
49 49
    this.getPageContents();
50 50
    this.url = this.properties.domain + this._router.url;
51
    this.seoService.createLinkForCanonicalURL(this.url);
52
    this.updateUrl(this.url );
53
    this.updateTitle(this.pageTitle);
54
    this.updateDescription("OpenAIRE - Connect, Community Gateway, research community, invite");
51
    if(this.longView) {
52
      this.seoService.createLinkForCanonicalURL(this.url);
53
      this.updateUrl(this.url);
54
      this.updateTitle(this.pageTitle);
55
      this.updateDescription("OpenAIRE - Connect, Community Gateway, research community, invite");
56
    }
55 57
  }
56 58
  
57 59
  ngOnDestroy() {

Also available in: Unified diff