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 short library names #106

Closed mkonik closed 1 year ago

mkonik commented 2 years ago

Add shortened library names to the workpages, and put it with shelfmark on the right top side of the page over score.

craigsapp commented 2 years ago

Siglum index has been updated to have short/long name alternatives for library names:

Click to view current siglum database ```@@BEGIN: ENTRY @Siglum: PL-CZ @Name-long-PL: Archiwum OO. Paulinów na Jasnej Górze @Name-short-PL: Archiwum Jasnogórskie @Name-long-EN: Jasna Góra Monastery Archive @Name-short-EN: Jasna Góra Monastery @Website-PL: https://jasnagora.pl/pl/o-sanktuarium/biblioteki/biblioteka-jasnogorska @Website-EN: https://jasnagora.pl/en/o-sanktuarium/biblioteki/biblioteka-jasnogorska @NIFC-URL-PL: @NIFC-URL-EN: @@END: ENTRY @@BEGIN: ENTRY @Siglum: PL-GD @Name-long-PL: Polska Akademia Nauk Biblioteka Gdańska @Name-short-PL: Biblioteka Gdańska PAN @Name-long-EN: Polish Academy of Science, Gdańsk @Name-short-EN: Gdańsk Library PAoS @Website-PL: http://www.bgpan.gda.pl @Website-EN: https://bgpan.gda.pl/?lang=en @NIFC-URL-PL: @NIFC-URL-EN: @@END: ENTRY @@BEGIN: ENTRY @Siglum: PL-Kc @Name-long-PL: Muzeum Narodowe w Krakowie. Biblioteka Książąt Czartoryskich @Name-short-PL: Biblioteka Czartoryskich @Name-long-EN: National Museum in Cracow. Czartoryski Library @Name-short-EN: Czartoryski Library, Cracow @Website-PL: https://mnk.pl/oddzial/biblioteka-ksiazat-czartoryskich @Website-EN: https://mnk.pl/branch/the-princes-czartoyski-library @NIFC-URL-PL: @NIFC-URL-EN: @@END: ENTRY @@BEGIN: ENTRY @Siglum: PL-Kj @Name-long-PL: Biblioteka Jagiellońska @Name-short-PL: Biblioteka Jagiellońska @Name-long-EN: Jagiellonian University Libraries @Name-short-EN: Jagiellonian Library, Cracow @Website-PL: https://bj.uj.edu.pl @Website-EN: https://bj.uj.edu.pl/en_GB/start-en @NIFC-URL-PL: @NIFC-URL-EN: @@END: ENTRY @@BEGIN: ENTRY @Siglum: PL-Kk @Name-long-PL: Archiwum Krakowskiej Kapituły Katedralnej @Name-short-PL: Krakowska Kapituła Katedralna @Name-long-EN: Archives and Library of Cracow Cathedral Chapter @Name-short-EN: Wawel Cathedral, Cracow @Website-PL: http://akkk.com.pl @Website-EN: @NIFC-URL-PL: @NIFC-URL-EN: @@END: ENTRY @@BEGIN: ENTRY @Siglum: PL-KOZmzk @Name-long-PL: Muzeum Zamoyskich w Kozłówce @Name-short-PL: Muzeum Zamoyskich, Kozłówka @Name-long-EN: Zamoyski Museum in Kozłówka @Name-short-EN: Zamoyski Museum, Kozłówka @Website-PL: http://www.muzeumzamoyskich.pl @Website-EN: https://www-muzeumzamoyskich-pl.translate.goog/?_x_tr_sch=http&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en @NIFC-URL-PL: @NIFC-URL-EN: @@END: ENTRY @@BEGIN: ENTRY @Siglum: PL-SA @Name-long-PL: Biblioteka Diecezjalna w Sandomierzu @Name-short-PL: Biblioteka Diecezjalna, Sandomierz @Name-long-EN: Diocesan Library in Sandomierz @Name-short-EN: Diocesan Library, Sandomierz @Website-PL: http://bc.bdsandomierz.pl/dlibra?language=pl @Website-EN: http://bc.bdsandomierz.pl/dlibra?language=en @NIFC-URL-PL: @NIFC-URL-EN: @@END: ENTRY @@BEGIN: ENTRY @Siglum: PL-STAb @Name-long-PL: Biblioteka Opactwa św. Wojciecha Sióstr Benedyktynek @Name-short-PL: Opactwo Benedyktynek, Staniątki @Name-long-EN: Benedictine Abbey of St. Adalbert, Staniątki @Name-short-EN: St. Adalbert Abbey, Staniątki @Website-PL: @Website-EN: @NIFC-URL-PL: @NIFC-URL-EN: @@END: ENTRY @@BEGIN: ENTRY @Siglum: PL-Wn @Name-long-PL: Biblioteka Narodowa @Name-short-PL: Biblioteka Narodowa @Name-long-EN: Polish National Library @Name-short-EN: Polish National Library @Website-PL: http://www.bn.org.pl @Website-EN: https://www.bn.org.pl/en @NIFC-URL-PL: @NIFC-URL-EN: @@END: ENTRY @@BEGIN: ENTRY @Siglum: PL-Wnifc @Name-long-PL: Narodowy Instytut Fryderyka Chopina @Name-short-PL: Instytut Chopina @Name-long-EN: The Fryderyk Chopin Institute @Name-short-EN: Chopin Institute, Warsaw @Website-PL: https://nifc.pl/pl @Website-EN: https://nifc.pl/en @NIFC-URL-PL: @NIFC-URL-EN: @@END: ENTRY @@BEGIN: ENTRY @Siglum: PL-Wtm @Name-long-PL: Biblioteka Warszawskiego Towarzystwa Muzycznego im. Stanisława Moniuszki @Name-short-PL: Warszawskie Towarzystwo Muzyczne @Name-long-EN: Library, Museum and Archives of the Stanisław Moniuszko Warsaw Music Society @Name-short-EN: Warsaw Music Society @Website-PL: http://warszawskietowarzystwomuzyczne.pl/biblioteka/ @Website-EN: @NIFC-URL-PL: https://chopin.nifc.pl/pl/chopin/instytucja/31 @NIFC-URL-EN: https://chopin.nifc.pl/en/chopin/instytucja/31 @@END: ENTRY @@BEGIN: ENTRY @Siglum: PL-Wumfc @Name-long-PL: Biblioteka Główna Uniwersytetu Muzycznego Fryderyka Chopina @Name-short-PL: Uniwersytet Muzyczny Chopina @Name-long-EN: Fryderyk Chopin Music Academy Main Library @Name-short-EN: Chopin University of Music @Website-PL: http://www.biblioteka.chopin.edu.pl/pl @Website-EN: @NIFC-URL-PL: @NIFC-URL-EN: @@END: ENTRY ```

On work pages, the short name of a library will be displayed:

http://127.0.0.1:3434/?id=16xx:1554

Screen Shot 2022-01-26 at 9 35 44 AM

On the browse/search page, the long name of a library will be displayed:

Screen Shot 2022-01-26 at 9 37 46 AM
craigsapp commented 2 years ago

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:

Screen Shot 2022-01-26 at 9 48 29 AM

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.

craigsapp commented 1 year ago

Implemented with short names in the sigla worksheet:

https://docs.google.com/spreadsheets/d/1cEE6zs7u3g9mjUsr7jcUusnbp2eIkYyqsMFastC78-c/edit#gid=1313803843

Screenshot 2023-04-14 at 9 09 04 AM Screenshot 2023-04-14 at 9 09 24 AM