web-library icon indicating copy to clipboard operation
web-library copied to clipboard

Improve citation dialog

Open dstillman opened this issue 2 years ago • 3 comments

Generating individual citations is now a lot nicer in ZoteroBib. We should add the same functionality (locators, Omit Author) to the web library.

(The web library also opens a huge modal that takes up nearly the whole window, even when generating a single citation.)

dstillman avatar Jan 31 '23 10:01 dstillman

We can certainly do it! I think it would mean introducing citeproc as a dependency (probably fetching it 'as needed') and using that, instead of the API, to generate citations (with all the extra functionality) and bibliography.

As a bonus, web library would no longer be limited to 100 items for citations/bibliography.

tnajdek avatar Jan 31 '23 11:01 tnajdek

Current code for citations and bibliography uses the same component (because effectively it just makes a request to the API) hence the huge modal. The UI here certainly could be revisited.

tnajdek avatar Jan 31 '23 11:01 tnajdek

Oh right — I forgot we’re doing these via the API. I think just using citeproc-js makes sense. Certainly no reason to have a 150-item limit from the web library.

Only real downside is that we don’t dogfood the API, but that’s fine — if we get requests for API functionality or higher limits, we can deal with those separately.

dstillman avatar Jan 31 '23 11:01 dstillman