[new-search-json | CHANGED | DONE ] fix claims date, update check if claim is pending or available

This commit is contained in:
argirok 2024-10-29 10:05:58 +02:00
parent 25bae3caeb
commit 6a4ffbe875
2 changed files with 4 additions and 2 deletions

View File

@ -102,7 +102,7 @@
</div>
<div>
<span class="uk-text-meta">Claimed date:</span>
<span class="uk-margin-xsmall-left">{{claim.date}}</span>
<span class="uk-margin-xsmall-left">{{claim.date | date :'MMM d, y h:mm:ss a'}}</span>
</div>
</div>
</div>

View File

@ -373,7 +373,9 @@ export class DisplayClaimsComponent implements OnInit, OnDestroy {
if (claimDateStr < lastUpdateDateStr) {
return true;
} else {
return claim.target.collectedFrom != "infrastruct_::openaire";
//TODO uncomment when direct index API supports json
// return claim.target.collectedFrom != "infrastruct_::openaire";
return false;
}
}