- It seems than this result in OpenAIRE is the deduplication of multiple harvested results.
+ This result in OpenAIRE is the deduplication of multiple harvested results.
You have already added {{this.putCodes?.length}} works in your ORCID record related to this result.
If you continue with delete action, all these works will be deleted.
diff --git a/orcid/orcid.component.ts b/orcid/orcid.component.ts
index 10763f73..afe60759 100644
--- a/orcid/orcid.component.ts
+++ b/orcid/orcid.component.ts
@@ -4,6 +4,7 @@ import {Subscriber, Subscription} from "rxjs";
import {OrcidService} from "./orcid.service";
import {properties} from "../../../environments/environment";
import {RouterHelper} from "../utils/routerHelper.class";
+import {Meta, Title} from "@angular/platform-browser";
@Component({
selector: 'orcid',
@@ -31,9 +32,15 @@ export class OrcidComponent {
constructor(private route: ActivatedRoute,
private _router: Router,
- private orcidService: OrcidService) {}
+ private orcidService: OrcidService,
+ private _meta: Meta, private _title: Title) {}
ngOnInit() {
+ var description = "Openaire, ORCID";
+ this.updateTitle("Connect with ORCID");
+ this.updateDescription(description);
+ this.updateUrl( properties.domain + properties.baseLink + this.route.url);
+
this.subscriptions.push(this.route.queryParams.subscribe(params => {
this.source = params['source'];
if (params['code']) {
@@ -123,4 +130,19 @@ export class OrcidComponent {
}
)
}
+
+
+ private updateTitle(title: string) {
+ this._title.setTitle(title);
+ this._meta.updateTag({content: title}, "property='og:title'");
+ }
+
+ private updateDescription(description: string) {
+ this._meta.updateTag({content: description}, "name='description'");
+ this._meta.updateTag({content: description}, "property='og:description'");
+ }
+
+ private updateUrl(url: string) {
+ this._meta.updateTag({content: url}, "property='og:url'");
+ }
}
\ No newline at end of file
diff --git a/orcid/orcidWork.ts b/orcid/orcidWork.ts
index 6e6fc262..31be797b 100644
--- a/orcid/orcidWork.ts
+++ b/orcid/orcidWork.ts
@@ -35,8 +35,8 @@ export class WorkV3_0 {
return "data-set";
} else if(type == "Doctoral thesis") {
return "dissertation-thesis";
- } else if(type == "Film") {
- return "artistic-performance";
+ // } else if(type == "Film") {
+ // return "artistic-performance";
} else if(type == "Lecture") {
return "lecture-speech";
} else if(type == "Newsletter") {
@@ -111,7 +111,13 @@ export class WorkV3_0 {
// citation (Citation, optional),
if(resultLandingInfo.types) {
- work['type'] = this.mapType(resultLandingInfo.types[0]);
+ for(let type of resultLandingInfo.types) {
+ work['type'] = this.mapType(type);
+ if(work['type'] != "other") {
+ break;
+ }
+ }
+ // work['type'] = this.mapType(resultLandingInfo.types[0]);
}
if(resultLandingInfo.date || resultLandingInfo.dateofacceptance) {