[Library | Trunk]: Annotations: CHange url of annotation targets to landing page with pid parameter
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60201 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
bf8c3a6e6b
commit
509018d72c
|
@ -48,7 +48,7 @@ import {Subscriber} from "rxjs";
|
|||
<ul class="uk-width-expand uk-list uk-margin-remove-top" *ngIf="annotation.targets">
|
||||
<li *ngFor="let target of annotation.targets.slice(0, annotation.targetSize)">
|
||||
<a *ngIf="target.url" [href]="target.url" target="_blank">{{target.id}}</a>
|
||||
<a *ngIf="!target.url" routerLink="/search/advanced/research-outcomes"
|
||||
<a *ngIf="!target.url" routerLink="/search/result"
|
||||
[queryParams]="searchPid(target.id)">{{target.id}}</a>
|
||||
</li>
|
||||
<li *ngIf="annotation.targetSize < annotation.targets.length"><a
|
||||
|
@ -173,9 +173,6 @@ export class AnnotationComponent implements OnInit, OnDestroy {
|
|||
annotation.targetSize = 3;
|
||||
this.annotationService.getAnnotationTargets(annotation.text, annotation.type).subscribe(targets => {
|
||||
annotation.targets = targets.filter(target => target.id !== this.pid);
|
||||
/*for(let i = 0; i < 10; i++) {
|
||||
annotation.targets.push(targets[0]);
|
||||
}*/
|
||||
});
|
||||
this.annotations.push(annotation);
|
||||
}
|
||||
|
@ -205,9 +202,7 @@ export class AnnotationComponent implements OnInit, OnDestroy {
|
|||
|
||||
public searchPid(pid: string): { [k: string]: any; } {
|
||||
return {
|
||||
f0: 'pid',
|
||||
fv0: pid,
|
||||
qf: false
|
||||
pid: pid
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue