diff --git a/orcid/orcidWork.ts b/orcid/orcidWork.ts index 83816617..9bceefae 100644 --- a/orcid/orcidWork.ts +++ b/orcid/orcidWork.ts @@ -25,13 +25,13 @@ export class WorkV3_0 { private static mapType(type: string): string { if(type == "Annotation") { return "annotation"; - } else if(type == "Article") { + } else if(type == "Article" || type == "publication") { return "journal-article"; } else if(type == "Book") { return "book"; } else if(type == "Clinical Trial") { return "test"; - } else if(type == "Dataset") { + } else if(type == "Dataset" || type == "dataset") { return "data-set"; } else if(type == "Doctoral thesis") { return "dissertation-thesis"; @@ -55,7 +55,7 @@ export class WorkV3_0 { return "working-paper"; } else if(type == "Review") { return "book-review"; - } else if(type == "Software") { + } else if(type == "Software" || type == "software") { return "software"; } return "other"; @@ -121,6 +121,9 @@ export class WorkV3_0 { } // work['type'] = this.mapType(resultLandingInfo.types[0]); } + if(!work['type']) { + work['type'] = this.mapType(resultLandingInfo.resultType); + } if(resultLandingInfo.date || resultLandingInfo.dateofacceptance) { if(resultLandingInfo.dateofacceptance) { diff --git a/utils/icons/icons.ts b/utils/icons/icons.ts index 07e21dbd..1a6447dd 100644 --- a/utils/icons/icons.ts +++ b/utils/icons/icons.ts @@ -200,12 +200,12 @@ export const filters = { export const orcid_add = { name: 'orcid_add', - data: '' + data: '' } export const orcid_bin = { name: 'orcid_bin', - data: '' + data: '' } export const link = {