Skip to content

Commit 56fd4da

Browse files
author
WorkBuddy
committed
fix(pubmed): correct ESearch sort parameter values
- search.ts: PDAT → pub_date, Journal → JournalName - author.ts: PDAT → pub_date
1 parent f0064ef commit 56fd4da

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

clis/pubmed/author.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ cli({
113113
// Map sort options
114114
const sortMap: Record<string, string> = {
115115
relevance: '',
116-
date: 'PDAT',
116+
date: 'pub_date',
117117
};
118118
const sort = sortMap[args.sort] || '';
119119

clis/pubmed/search.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ cli({
132132
// Map sort options to E-utilities sort values
133133
const sortMap: Record<string, string> = {
134134
relevance: '',
135-
date: 'PDAT',
135+
date: 'pub_date',
136136
author: 'Author',
137-
journal: 'Journal',
137+
journal: 'JournalName',
138138
};
139139
const sort = sortMap[args.sort] || '';
140140

0 commit comments

Comments
 (0)