whiskyechobravo / kerko

A web application component that provides a faceted search interface for bibliographies managed with Zotero.
https://whiskyechobravo.github.io/kerko/
GNU General Public License v3.0
311 stars 36 forks source link

Have multiple biblografical reference citation Styles #20

Closed admorelli closed 7 months ago

admorelli commented 1 year ago

Change to allow to configure multiple citation styles and display them separately

for that added on a new extractor a call to zotero api getting the 'bib' for all styles configured. also changed the setting definition for csl_style from str to List

Any advice or changes to the logic is welcome.

davidlesieur commented 10 months ago

Thanks for submitting this PR, and sorry for taking such a long time before reviewing it.

Providing multiple citation formats would be a valuable feature. However, that is a risky proposal because each additional CSL style requires an extra round of Zotero API calls, and synchronization times are already quite lengthy with large Zotero libraries. So far, I have stayed away from that feature mainly for that reason.

Because additional citation formats have to be requested in separate rounds of API calls, there are also risks for inconsistencies, e.g., if someone has edited an item between the "kerko sync cache" time and the extra citation format API calls. Perhaps not a huge issue, but still something to consider.

As it stands, the PR cannot be merged for a few reasons: