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

Indicating IIIF enhanced scores #130

Closed craigsapp closed 2 years ago

craigsapp commented 2 years ago

When a digital scores has been linked to an IIIF manifest, there should be an iiif icon visible to indicate that notes in the score can be double clicked on to view the scans of the original music. Here is an example placement of the iiif icon:

image

Where the IIIF icon is underneath the EU flag (or it could go under the NIFC logo).

When this icon is visible, that means that you can double click on a note in the score, and a pop-up window with the staff/system containing the note will be displayed:

The icon itself should link to the IIIF manifest, such as https://polona.pl/iiif/item/Nzk3MTM4ODQ/manifest.json in this case (this is stored in the digital score in the !!!IIIF: reference record.

In theory there could be multiple manifests for different instrumental parts, or there could be multiple variants (although this is not likely for diplomatic scores). Maybe just show the first manifest. The scans for the image at the top of the score can contain multiple links to each source when there are multiple soures:

Screen Shot 2022-04-03 at 10 55 51 PM

Here is the image that is displayed when double clicking on the first note of the tenor part, for example:

Screen Shot 2022-04-03 at 10 56 54 PM
craigsapp commented 2 years ago

Implemented with commit https://github.com/craigsapp/website-polish-scores/commit/35f7494534705600c5553e4c118f8e30849ee71a

When double-clicking it would be useful to have a waiting cursor, but it does not want to do that...

Example:

http://127.0.0.1:3434/?id=15xx:310

Screen Shot 2022-04-04 at 7 54 36 PM

Going to another page without IIIF encoding will hide the logo:

Screen Shot 2022-04-04 at 7 55 45 PM

Also going to the browse page will hide the IIIF logo.

Currently the logo does not have any link associated with it, but it does have a mouse-over message:

Screen Shot 2022-04-04 at 7 57 11 PM

Polish translation for the message can be added to

https://github.com/craigsapp/website-polish-scores/blob/main/_includes/translations/genres.aton#L24-L28