This repository contains a jekyll theme version of the UI for the Cambridge Spacefinder application (https://spacefinder.lib.cam.ac.uk/). It has been built to investigate possibilities for development of the application to make it usable in other higher education contexts.
The major change made to the original application (https://github.com/cambridge-collection/spacefinder/) is the decoupling of the application into User Interface and server-side components. Here, the data for all spaces is served as JSON files rather than using a data endpoint driven by a server-side application.
For more information about the project, please visit the Spacefinder UI wiki
An example of the application when populated with data is available in the University of Leeds version of Spacefinder, which is available at https://spacefinder.leeds.ac.uk/ and served from the repository uol-library/spacefinder.leeds.ac.uk.
This repository can be forked or used as a jekyll theme in GitHub to create a custom wayfinding application. Key files which require customising with your own information are:
If you are using this repository as a jekyll theme, you need to add remote_theme: uol-library/spacefinder
to _config.yml
spaces
directory. _includes/javascript/templates.js
_data/config.yml
Spaces must have the following pieces of metadata defined for them:
spaces
directory, i.e. a space with the ID of 2
stors its data in the file spaces/2.json
open
(boolean), from
(time in HH:MM format) and to
(time in HH:MM format).Other metadata fields can be defined in the JSON data, along with filter information for each space (using keys defined in _data/config.yml
). This data should then be incorporated into the output of the templates in _includes/javascript/templates.js
.
Spacefinder uses a font to display different icons which can be customised using https://fontello.com.
The fontello configuration is in the file assets/font/src/config.json
which you can import into fontello if you want to add and remove icons. Once you have finished customising the font, download the package from fontello and replace the content of your assets/font/src
folder with it. The package contains the font (in five formats) and a CSS file assets/font/src/css/spacefinder.css
which can be used to replace the icon CSS file in _sass/spacefinder.scss
. The only change made to this file is applying the global icon style to the ::before
and ::after
pseudo-elements which allows for the inclusion of two icons together in parts of the UI.