Upload dois: add proper parsing for OA routes

This commit is contained in:
argirok 2023-12-21 11:40:15 +02:00
parent b6cd642b7f
commit 1da3123998
2 changed files with 5 additions and 6 deletions

View File

@ -191,14 +191,13 @@
{{result.accessMode}}
</div>
</td>
<!-- TODO: make the labels dynamic-->
<td class="uk-text-xsmall">
<div class="uk-flex">
<span class="access-route-label">
<span *ngIf="result.green" class="access-route-label">
<span class="dot green"></span>
green
</span>
<span class="access-route-label uk-margin-xsmall-left">
<span *ngIf="result.accessRoute" class="access-route-label uk-margin-xsmall-left">
<span class="dot {{result.accessRoute}}"></span>
{{result.accessRoute}}
</span>

View File

@ -261,9 +261,9 @@ export class UploadDoisComponent extends BaseComponent implements OnInit {
doi: matchingDOI,
title: result.title.name,
accessMode: result.title.accessMode,
accessRoute:"gold", //TODO update when we have the values
green: true, //TODO update when we have the values
diamond: true, //TODO update when we have the values
accessRoute:result.oaRoutes?result.oaRoutes.oaColor:null,
green: result.oaRoutes?result.oaRoutes.green:false ,
diamond: result.oaRoutes?result.oaRoutes.isInDiamondJournal:false
};
this.results.push(showRes)
this.addStatsPerResult(showRes)