Adding notes to the books included in an Open Library list is great because you can create annotated bibliographies to share with other readers. However, these notes are not exported when you export your lists to HTML, BibTex or JSON format. It would be interesting to be able to export your lists in Open Library including the notes you have added to each book.
For HTML: Update lists/export_as_html.html to also display the notes and handle the nested dict
Handle v=1 returning just the thing directly; v=2 should return the wrapper {thing: THING, notes: notes}.
Leads
Related files
Stakeholders
Instructions for Contributors
Please run these commands to ensure your repository is up to date beforecreating a new branch to work on this issue and each time after pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.
Problem
A clear and concise description of what you want to happen
When exporting lists, they should either include any notes attached to items in the list or provide an option to include the notes.
E.g. Go to https://openlibrary.org/people/ScarTissue/lists/OL233794L/TPL_Treasure_Sale_2023
Click the "HTML" or "JSON" options
Screenshots
Additional Context
From @dcapillae on Slack:
Proposal & Constraints
Rough proposal:
v
parameter which defaults to 1. To avoid a breaking change to these APIs.{ thing: THING, notes: notes }
. See https://github.com/internetarchive/openlibrary/blob/f197acb2c3d23575ab9af05b2f27a061685723ba/openlibrary/core/lists/model.py#L212-L218lists/export_as_html.html
to also display the notes and handle the nested dictthing
directly;v=2
should return the wrapper{thing: THING, notes: notes}
.Leads
Related files
Stakeholders
Instructions for Contributors