Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting by item type produces unexpected order #587

Open
tnajdek opened this issue Jan 9, 2025 · 2 comments
Open

Sorting by item type produces unexpected order #587

tnajdek opened this issue Jan 9, 2025 · 2 comments

Comments

@tnajdek
Copy link
Member

tnajdek commented Jan 9, 2025

Fetching items sorted by the itemType from the API use the raw value computerProgram rather than the locale-friendly Software which leads to an unexpected sorting. To fix this would require API change.

Related #445, #516

https://forums.zotero.org/discussion/121017/software-category-not-shown-when-sorting-by-item-type-column-in-the-web-library

@dstillman
Copy link
Member

dstillman commented Jan 10, 2025

I guess as a start I can sort itemType on en-US localized strings, and then we can support the locale query parameter for /items requests?

@dstillman
Copy link
Member

Well, or we could do it automatically with Accept-Language, which would probably work for web-library, but maybe we want to keep the API explicit? Sort of weird to have that one thing use content negotiation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants