[Koha] Potential dangers of ampersands in authorised values. (Advisory only).

Raymund Delahunty r.delahunty at arts.ac.uk
Wed Jan 5 19:23:43 NZDT 2022

The ampersand can be rendered badly in webpages (as & rather than &) and also in title data in downloaded Koha reports. But we recently stumbled across another ampersand issue, where we had an ampersand in the NOT_LOAN authorised value. In OPAC, titles with the NOT_LOAN status with the ampersand (for example 'In processing at Resources & Systems') would sometimes display with only the image, and no bibliographic data.

This was found to lead to errors in the logs reporting the xslt stylesheets were unable to process the ampersand.

[2021/12/29 09:53:15] [WARN] XSLT::Base: :167: parser error : xmlParseEntityRef: no name code><status>reallynotforloan</status><substatus>Received at Library Resources & .
Replacing & with 'and' solved the problem. Going forward we will avoid ampersands in authorised values where a webserver may be involved.
Ray Delahunty
University of the Arts London
This email and any attachments are intended solely for the addressee and may contain confidential information. If you are not the intended recipient of this email and/or its attachments you must not take any action based upon them and you must not copy or show them to anyone. Please send the email back to us and immediately and permanently delete it and its attachments. Where this email is unrelated to the business of University of the Arts London or of any of its group companies the opinions expressed in it are the opinions of the sender and do not necessarily constitute those of University of the Arts London (or the relevant group company). Where the sender's signature indicates that the email is sent on behalf of UAL Short Courses Limited the following also applies: UAL Short Courses Limited is a company registered in England and Wales under company number 02361261. Registered Office: University of the Arts London, 272 High Holborn, London WC1V 7EY

More information about the Koha mailing list