web-library
web-library copied to clipboard
Improve citation dialog
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.)
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.
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.
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.