craigsapp / website-polish-scores

Front-end for digital transcriptions of the Polish Music Heritage in Open Access project
https://polishscores.org
3 stars 1 forks source link

Add work bookmarks #28

Closed craigsapp closed 2 years ago

craigsapp commented 2 years ago

Create a system for bookmarking scores to save favorite scores that persists between sessions.

Somewhat related to issue https://github.com/craigsapp/website-polish-scores/issues/27, but probably an independent bookmark page should be created.

craigsapp commented 2 years ago

Mostly implemented in commit https://github.com/craigsapp/website-polish-scores/commit/a105f4150ad1a997161a30e54b20ff9294db65a5

Example:

At the top right in the work toolbar, there is now a bookmark icon:

Screen Shot 2021-10-19 at 11 22 15 PM

Clicking on the icon will bookmark the score on the current page. The bookmark will be colored in goldenrod to indicate that the work is bookmarked:

Screen Shot 2021-10-19 at 11 23 30 PM

When you return to the same page, the bookmark will be highlighted. And if you close the browser and open it again, the same work will remain bookmarked.


Future enhancements:

craigsapp commented 2 years ago

Commit https://github.com/craigsapp/website-polish-scores/commit/c0109a71079ed60489bc734cc513e998ce1025fe implements an initial display of saved bookmarks.

On the browse page:

Screen Shot 2021-10-30 at 10 39 05 PM

The star icon at the top right corner of the page will display a list of the bookmarks when it is clicked:

Screen Shot 2021-10-30 at 10 39 07 PM