From b703f00f4eb6a752567296ad5f3df90b9cde554e Mon Sep 17 00:00:00 2001 From: Vincent Rubinetti Date: Thu, 30 May 2024 13:22:53 -0400 Subject: [PATCH] review comments --- _cite/plugins/orcid.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/_cite/plugins/orcid.py b/_cite/plugins/orcid.py index 4a666110f5..1558a22624 100644 --- a/_cite/plugins/orcid.py +++ b/_cite/plugins/orcid.py @@ -41,7 +41,7 @@ def query(_id): ids = ids + get_safe(summary, "external-ids.external-id", []) ids = ids + get_safe(work, "external-ids.external-id", []) - # prefer particular "relationship" type, or fallback to first id + # find first id of particular "relationship" type _id = next( ( id @@ -67,15 +67,6 @@ def query(_id): # get summaries summaries = get_safe(work, "work-summary", []) - # sort summary entries by most recent - summaries = sorted( - summaries, - key=lambda summary: (get_safe(summary, "last-modified-date.value", 0)) - or get_safe(summary, "created-date.value", 0) - or 0, - reverse=True, - ) - # get first summary with defined sub-value def first(get_func): return next(