Closed mkonik closed 1 year ago
Siglum index has been updated to have short/long name alternatives for library names:
On work pages, the short name of a library will be displayed:
http://127.0.0.1:3434/?id=16xx:1554
On the browse/search page, the long name of a library will be displayed:
There is a general complexity about placement of the library/shelfmark on the right side above the music notation because of independent information from SVG/HTML layout needs to be coordinated:
The library information will be either too high if placed above the SVG or if overlapped with the svg image, the library text will need to find the highest item on the staff at the right side of the first system (within the width of the library info text width) in order to ensure no overlapping of library text and musical notes.
If placing above the blue box is a good location, then knowledge of the SVG content will not be needed. I would add extra space, so the composer/title will be moved up so that there is no possibility of collision between the centered title and the library/shelfmark.
A reasonable solution could be done by placing the library/shelfmark text into the MEI header and let verovio place above the right-hand side to let verovio do the layout calculations. There is a question of if it is possible to add hyperlinks to text in MEI header/footers. Also, this solution gets complex if the scan-link icons are placed above and particularly below the library/shelfmark text, since MEI header text is encoded in a TEI-like format that is not HTML. In any case, the plain text could be added to the MEI header, then after rendered with verovio, the text could be removed and overwritten with HTML content at the verovio-calculated position. It is also possible to read the verovio SVG and do similar calculations.
Implemented with short names in the sigla worksheet:
Add shortened library names to the workpages, and put it with shelfmark on the right top side of the page over score.