Revision 54750
Added by Konstantina Galouni about 5 years ago
dataProvider.component.ts | ||
---|---|---|
131 | 131 |
.subscribe((data: { envSpecific: EnvProperties }) => { |
132 | 132 |
this.properties = data.envSpecific; |
133 | 133 |
this.updateUrl(data.envSpecific.baseLink+this._router.url); |
134 |
this.seoService.createLinkForCanonicalURL(this.properties.baseLink+this._router.url); |
|
134 | 135 |
|
135 | 136 |
}); |
136 | 137 |
this.sub = this.route.queryParams.subscribe(data => { |
137 | 138 |
this.updateTitle("Content provider"); |
138 |
this.updateDescription("Content provider, search, repositories, open access"); |
|
139 |
this.seoService.createLinkForCanonicalURL(); |
|
139 |
this.updateDescription(""); |
|
140 | 140 |
this.datasourceId = data['datasourceId']; |
141 | 141 |
if(this.datasourceId){ |
142 | 142 |
this.getDataProviderInfo(this.datasourceId); |
... | ... | |
186 | 186 |
this.initTabs(); |
187 | 187 |
this.showTabs = true ; |
188 | 188 |
this.updateTitle(this.dataProviderInfo.title.name); |
189 |
this.updateDescription("Content provider, search, repositories, open access,"+this.dataProviderInfo.title.name);
|
|
189 |
this.updateDescription("Content provider, "+this.dataProviderInfo.title.name); |
|
190 | 190 |
if(this.properties.enablePiwikTrack && (typeof document !== 'undefined')){ |
191 | 191 |
this.piwiksub = this._piwikService.trackView(this.properties, this.dataProviderInfo.title.name, this.piwikSiteId).subscribe(); |
192 | 192 |
} |
... | ... | |
244 | 244 |
this.reloadRelatedDatasources = true; |
245 | 245 |
this.statsClicked = false; |
246 | 246 |
|
247 |
this.search(this.dataProviderInfo.tabs[0].content, 1, 10); |
|
247 |
//this.search(this.dataProviderInfo.tabs[0].content, 1, 10);
|
|
248 | 248 |
this.count(1, 0); |
249 | 249 |
|
250 | 250 |
this.metricsClicked = false; |
... | ... | |
288 | 288 |
} |
289 | 289 |
|
290 | 290 |
private count(page: number, size: number) { |
291 |
for(let i=1; i<this.dataProviderInfo.tabs.length; i++) {
|
|
291 |
for(let i=0; i<this.dataProviderInfo.tabs.length; i++) {
|
|
292 | 292 |
let content: string = this.dataProviderInfo.tabs[i].content; |
293 | 293 |
|
294 | 294 |
if(content=='publicationsTab') { |
Also available in: Unified diff
[changeDeposit]: Merging trunk into branch 'changeDeposit' for revisions 54527:54749