About
This repository contains pages (published as GitHub pages) to be implemented as iframes for libraries of Pori on pori.fi/kirjasto. They are copies of a set of pages meant to be implemented as iframes for the libraries of Jyväskylä.
Library data is pulled from the kirkanta-api: https://github.com/libraries-fi/kirkanta-api and the UI is heavily inspired by kirjastohakemisto.fi https://github.com/libraries-fi/kirjastohakemisto
Since the api does not support fetching accessibility details, they are fetched from ”Lisätiedot” fields instead. Example: https://imgur.com/a/Nr7EpfU
saavutettavuus-info – Accessibility description, this may contain HTML or just text.
saavutettavuus-palvelut – the accessibility listing and icons, one item per row.
Currently the following saavutettavuus-palvelut are shown as accessibility icons and translated to English:
- Esteetön sisäänpääsy
- Invapysäköinti
- Esteetön wc
- Hissi
- Induktiosilmukka
- Suuren kirjasinkoon kokoelma (only translation, no icon)
Other rows are displayed in the list as they are.
If city/consortium parameters are provided, Library selector will be shown according to those parameters (mobile libraries are ignored). Following listings are supported: A) Libraries of city, that belong to the same consortium (https://olli-suutari-jkl.github.io/jyvaskyla.fi.kirjasto/pages/library.html?city=jyväskylä&lib=85159&consortium=2113&lang=fi) B) Libraries of city (https://olli-suutari-jkl.github.io/jyvaskyla.fi.kirjasto/pages/library.html?city=jyväskylä&lib=85159&lang=fi) C) Libraries of consortium (https://olli-suutari-jkl.github.io/jyvaskyla.fi.kirjasto/pages/library.html?lib=85159&consortium=2113&lang=fi)
Large schedules for info screens can be used with the &large=true parameter, eq. https://olli-suutari-jkl.github.io/jyvaskyla.fi.kirjasto/pages/schedule.html?lib=85160&lang=fi&large=true This increases the schedule font sizes dynamically to be used in a 1080 * 1920 info screens.
Library list
Limitations:
- Iframes must open links in new tab
- No JS is allowed on pori.fi, thus dynamically resizing the frames becomes a bit difficult (eg. https://www.willmaster.com/library/tutorials/auto-resize-iframe-when-content-size-changes.php)
TO DO
- Cleanup css
- Naming conventions, code standards
- Other improvments