[Library | Trunk]: B2Note: Change position to fixed. Change url to pid

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58750 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2020-05-25 08:19:27 +00:00
parent 0012fd0003
commit 772d9e9410
2 changed files with 6 additions and 6 deletions

View File

@ -22,7 +22,7 @@ import {EnvProperties} from "../../utils/properties/env-properties";
<input <input
type="hidden" type="hidden"
name="subject_tofeed" name="subject_tofeed"
[value]="url"> [value]="pid">
<!--PID of the annotated record--> <!--PID of the annotated record-->
<input <input
type="hidden" type="hidden"
@ -105,7 +105,7 @@ export class AnnotationComponent implements OnInit, OnDestroy {
} else { } else {
this.pid = id; this.pid = id;
} }
this.annotationService.getAllAnnotations(this.properties, this.url).subscribe(annotations => { this.annotationService.getAllAnnotations(this.properties, this.pid).subscribe(annotations => {
this.annotations = annotations; this.annotations = annotations;
}); });
} }
@ -120,4 +120,4 @@ export class AnnotationComponent implements OnInit, OnDestroy {
} }
this.visible = !this.visible; this.visible = !this.visible;
} }
} }

View File

@ -1,8 +1,8 @@
.widget-container { .widget-container {
position: absolute; position: fixed;
left: 50%; left: 50%;
top: 50%; top: 50%;
z-index: 10001; z-index: 5;
padding: 19px; padding: 19px;
margin-left: -167px; margin-left: -167px;
margin-top: -311px; margin-top: -311px;
@ -38,4 +38,4 @@
width: 100%; width: 100%;
height: 600px; height: 600px;
border: 1px solid #dddddd; border: 1px solid #dddddd;
} }