A helper library for converting Google Books API JSON to CSL JSON.
See astrocite for more details.
toCSL(apiResponse, isChapter = false)
The entire JSON response received from the Google Books volumes API.
Use this to set title to the appropriate field when you intend to use the data for citing an individual chapter.
;// Assume apiResponse is the JSON received from the Google Books volume APIconst cslJSON = ;// Citing a chapterconst chapterCslJSON = ;