diff --git a/Lib/db/AudioBook.php b/Lib/db/AudioBook.php index 72667cf..d0ea8cd 100644 --- a/Lib/db/AudioBook.php +++ b/Lib/db/AudioBook.php @@ -78,7 +78,7 @@ class AudioBook extends DbMapping $sql = sprintf("SELECT DISTINCT Notices.[NoticeID] AS id, - Notices.[Title] AS title, + LTRIM(RTRIM(Notices.[Title])) AS title, Notices.[Author] AS author, LTRIM(RTRIM(Notices.[NoticeNr])) AS code, Fields.[520] AS summary, @@ -98,7 +98,7 @@ class AudioBook extends DbMapping Notices.[coverdisplay], Fields.[856u] AS link, Fields.[856z] AS linkTitle, - Notices.[MediaType1Code] AS mediaType, + LTRIM(RTRIM(Notices.[MediaType1Code])) AS mediaType FROM Notices INNER JOIN Codes As GenreCode ON Notices.MediaType2Code = GenreCode.Code AND GenreCode.Type = 2 INNER JOIN Codes AS ProducerCode ON Notices.userdefined3code = ProducerCode.Code AND ProducerCode.Type=6