Home University of Edinburgh Library Essentials
March 20, 2026
Movers and Shakers by Madeleine Leisk CC BY-NC
Summer is the time when our day-to-day service at the University Collections Facility is at its quietest. The undergraduate cohort has flown the nest and are busy celebrating their well-earned graduations, so book requests are limited to the few postgraduates and external researchers enjoying the comparative tranquility of the library. However, this doesn’t mean we sit in idleness enjoying the view of the rolling stacks, since it is also the perfect time to undertake any re-distribution of collections and re-configuring of spaces. The opening of our shiny new Unit 3 facility housing the art and musical instrument collections has emptied out areas in the other two units. Subsequently, the last few weeks has seen a surge of staff presence at the UCF as we tackle several large collections moves.
First was the shifting of the Research Support Collection from Unit 1 to Unit 2. This was the least geographically challenging of all the moves since it remained within the same building, but still involved much re-arranging and re-labeling of shelves. It also allowed the opportunity of handling one of our most diverse collections – a run of bibliographies caught my eye in particular, including catalogues of Persian Manuscripts, Greek Papyri and the collections of the Bibliotheca Vaticana. One volume, intriguingly titled A Bibliography of Unfinished Books (RSC Ref. Z 1025 Cor.) was published in 1915 and declares in its preface: “No book of importance is considered complete now-a-days unless valuable aid is given to the student by the addition of a list of books closely connected with the subject he is studying. He is thus able to pursue his course of reading by reference to these authorities.” Such is succinctly summarised the importance of the Research Support Collection!
Next up was the temporary transfer of collections from the Art and Architecture library to the UCF to allow for renovation works happening to that building, which involved the coordination of teams on both ends as books were moved between sites. This move will be mirrored before the beginning of the autumn semester as the books head back to their rightful place in readiness for the next wave of art and architecture students.
The last and largest of the moves was that of the Semple collection. Originally homed at New College, it has spent several months in external storage before arriving at the UCF last week and is primarily made up of religious texts from the school of divinity. Comprising approximately 20,000 bound volumes or 800 linear metres of books it was a huge job to move in. Many of the items were in fragile condition with friable covers and so required extremely gentle handling. Supervisors were on hand to provide a first-line check of each box of books in order to identify any immediate conservation hazards. This is now being followed up by three project collections assistants who are undertaking a more thorough survey of individual volumes and assigning each a conservation priority level. As they work through the collection they will be bestowing the accolade of ‘Find of the Week’ to their most interesting discoveries – so watch this space!
Now that this hectic burst of activity has dissipated somewhat we are returning to ‘normal’ levels of activity out here at the UCF. Each move was meticulously planned and involved members of staff from all over information services travelling out to the Gyle to chip in and do their bit. It once again firmly impressed upon me the inherently collaborative nature of collections work and the dedication of this particular library team.
Daisy Stafford, UCF Library Assistant
For historical collections digitisation projects inside the library, we are increasingly looking to provide OCR transcriptions of the documents alongside the digital images. In many cases, this can enhance the usability of the images significantly. For example, the volumes in the Session Papers Project are large and often without index, making locating specific text inside difficult (see the previous blog post about this challenge here: https://libraryblogs.is.ed.ac.uk/librarylabs/2017/06/23/automated-item-data-extraction-from-old-manuscripts/) unless one is in possession of copious amounts of free time and dedication.
Our implementation of IIIF as the primary delivery method for digital images at Edinburgh (some highlights of our IIIF collections at the bottom of Scott’s blog here: https://libraryblogs.is.ed.ac.uk/librarylabs/2018/12/13/edinburgh-hosts-international-iiif-event/) opens up a vector for not just providing the OCR text alongside the images, but also to enable native searching within the volume images inside an IIIF viewer such as UniversalViewer or Mirador.
Currently searching is usually performed before and outside of the viewing experience, with the chosen result then loaded in a viewer. Searching within a volume therefore offers different possibilities for the end-user during their journies across the collections. This is achieved by using a service that is capable of providing the IIIF Search API.
So far, not many such services exist in the open source world, with the IIIF Awesome list having just one entry under Content Search Services: NCSU Libraries’ Ocracoke project, which is a Rails-based full workflow solution that can also process and OCR the documents prior to serving them via IIIF. Whilst other institutions do provide IIIF Search on their holdings, these implementations can be an integral part of their digital delivery stack and not easily seperable for release, internal only projects, instances of Ocracoke, etc.
As the OCR here at Edinburgh falls under a different part of our workflow (of which more in a future blogpost) and we are primarily working with PHP and Python, I decided to implement a simple Python service capable of supporting the Search API. The project is written using Flask, a lightweight Python web framework and backed by Apache Solr to provide the text-searching. A simple service needed a simple name, and so Whiiif (Word Highlighting for IIIF) was born.
Initially, I adopted the model used by Ocracoke: indexing the text of each whole page in Solr, and using an array of word->co-ordinate mappings for each page image. When a search is made in Solr, each document is returned using the native Highlighting feature of Solr, which returns a fragment of text, with the matching words bracketed by <em> tags.
The word-co-ordinate mappings for each page are extracted from the ALTO-XML generated by the Tesseract OCR process and stored in Solr as JSON, alongside the raw text. Producing the IIIF Search API response then becomes a case of extracting the matched words from the Solr highlight result, popping the co-ordinates for each word, and generating the response JSON for the client. The initial version of Whiiif using this approach can be found on the Whiiif Github repo at commit af8a903.
This version was deployed and during testing raised issues when handling some of the documents in our collection:
There were approaches to solving these problems, such as forcing Solr to return the entire page text via the Highlighter, so that the correct instance of repeated words could be ascertained. However, this led to a significant increase in the processing time required to generate the response for each hit, as well as greater resource requirements for Solr and I decided to try a different approach.
For the second iteration of Whiiif, I decided to investigate how feasible it would be to have Solr return the matching fragment from the ALTO-XML document, which would mean having the co-ordinates for the hits already in the Solr response. This ran into difficulties, as Solr is designed for working with text, and will not easily index or search an XML document, in fact usually stripping all the XML data (that we wanted to try and preserve) by using the HTMLStripCharFilter during the indexing process. Even with the filtering removed from the processing chain, basic abilities such as phrase searching were lost due to the format of the text being searched being “word<xml fragment>word<xml fragment>word<xml fragment>…”, and false hits for words appearing inside the ALTO-XML format such as “page”, “line”, “word”, etc.
Via the IIIF Slack, I was pointed towards the work of Johannes Baiter and the MDZ Digital Library team at the Bavarian State Library, who are developing a Solr plugin to resolve these various issues (available at https://github.com/dbmdz/solr-ocrhighlighting). I reworked the Solr controller for Whiiif to use the functionality of this plugin, keeping the work already done to provide IIIF Search API responses.
Following a couple of weeks of testing, and some very useful collaborative bug-fixing work with Johannes (primarily fixing some regexp bugs and improving the handling of ALTO files) and thanks to his speedy implementation of a feature request, Whiiif v2 was moved into internal production for some in-development project websites.
I then implemented a secondary feature in Whiiif: the ability to search across a collection as a whole, and have document hits, with snippets of page images returned (complete with visual highlighting), to complement the existing “Search Within” functionality of the IIIF Search API. This feature is also powered by the OCR Highlighting plugin, but returns a custom JSON format (although similar to the IIIF Search response format), allowing the front end controller of a collections site to customise the display of results to fit each individual site design.
The version of Whiiif with these capabilities is currently available on the “withplugin” branch of the Whiiif github repo, although this is still in heavy development and will become the master branch in the future when it is a bit tidier!
The next steps with the Whiiif experiment are to prepare a formal release of Whiiif v2, with updated documentation, install instructions and full unit-test coverage, keep an eye out here or on the github repo for news. In the meantime, please feel free to clone the repo and experiment. Issues and PRs always welcome and you can also contact me on the IIIF slack (as mbennett) or via email: mike.bennett@ed.ac.uk.
I’d love to hear from anyone playing around with Whiiif, or suggestions for other features. Experimental support for the “hits” property of IIIF Search v1 will arrive shortly, along with some updates to make use of the latest features of the Solr plugin.
Until next time 🙂
Mike
The Library now subscribes to the North American Journal of Celtic Studies.
The North American journal of Celtic studies (NAJCS) is devoted to the study of all of the disciplines that fall under the purview of the field of Celtic studies, including, but not limited to, archeology, art, folklore, history, law, linguistics, literature, manuscript studies, mythology, and politics. Contributions are welcome for all time periods from the ancient world to the present.
Access this journal via DiscoverEd or our e-journals AZ list.
This week’s blog post comes from Cameron Perumal who recently began a 10-week Employ.ed internship in the Conservation Studio at the CRC…
Two weeks into my Employ.ed internship, and I have already learned so much about conservation, and X-ray Fluorescence (XRF) spectrometry! I am currently an undergraduate Astrophysics student, and my internship entails me working with Emily Hick, the Special Collections Conservator, to research ways in which XRF can help us understand more about the collections. I’ll also be doing outreach to increase awareness on XRF and how it can be used in conservation to improve the condition and understanding of the collections held by the University of Edinburgh.
By the end of my first week, I had started my radiation training, seen the XRF in action being used by another intern, Despoina, to analyse pigments of a painting on the soundboard of a harpsichord, and been able to see the various (frankly, quite beautiful) collections stored by the University.

Intern Despoina using the new XRF machine to analyse the pigments used on the soundboard paintings of harpsichords made by the Ruckers family
Thank you to everyone who joined us for our Library & University Collections Journal Club meetings in 2019. We’ve now planned a further programme of dates for the 2019/20 academic year.
Come and join us to talk about a recently published article each month from the field of Library & Information Science. We’re aiming to keep informed about practitioner research, and reflect on how theory relates to our practice. This is a great way for staff to develop their knowledge of the wider professional context for their continuing professional development.
This is an informal session open to staff from across Information Services Group as well as interns, volunteers and students on library & information related courses. We meet on the first Wednesday of each month, 12-1pm, alternately at Argyle House and the Digital Scholarship Centre, Main Library. You can see the articles proposed for discussion on our Journal Club Resource List, and you can suggest articles to discuss each month. Please come ready with your questions, comments and complaints about the article of the month.
| Dates | Location | |
| 04 September 2019 |
|
|
| 02 October 2019 | Digital Scholarship Centre, Main Library | |
| 06 November 2019 | Argyle House Meeting Room 8 | |
| 04 December 2019 | Digital Scholarship Centre, Main Library | |
| 08 January 2020 | Argyle House Meeting Room 8 | |
| 05 February 2020 | Digital Scholarship Centre, Main Library | |
| 04 March 2020 | Argyle House Meeting Room 8 | |
| 01 April 2020 | Digital Scholarship Centre, Main Library | |
| 06 May 2020 | Argyle House Meeting Room 8 | |
| 03 June 2020 | Digital Scholarship Centre, Main Library |

Gdańsk University of Technology
I was delighted to be able to participate in the 4th International Staff Week at the Biblioteki Politechniki Gdańskiej recently. I work as the Senior Photographer for Edinburgh University’s Library and University Collections, so when I saw that the programme included a visit to the Pomeranian Digital Library it looked like a great opportunity. Additionally, this was the home institution of one of the delegates on our own Knowledge Exchange Week in 2018, allowing further development of previous Erasmus links.
7 June 2019 marks the centenary of the marriage of Edwin and Willa Muir, one of Scottish literature’s great creative partnerships. Acclaimed in their own right as poet and novelist respectively, they worked together as a translating team to bring the novels and stories of Franz Kafka to an English-speaking audience.
Edinburgh University holds a number of remarkable documents, bearing witness to their long and exceptionally close union.
Read More
Hill and Adamson Collection: an insight into Edinburgh’s past
My name is Phoebe Kirkland, I am an MSc East Asian Studies student, and for...
Cataloguing the private papers of Archibald Hunter Campbell: A Journey Through Correspondence
My name is Pauline Vincent, I am a student in my last year of a...
Cataloguing the private papers of Archibald Hunter Campbell: A Journey Through Correspondence
My name is Pauline Vincent, I am a student in my last year of a...
Archival Provenance Research Project: Lishan’s Experience
Presentation My name is Lishan Zou, I am a fourth year History and Politics student....