remove last ',' and trim some fields
This commit is contained in:
@@ -78,7 +78,7 @@ class AudioBook extends DbMapping
|
|||||||
|
|
||||||
$sql = sprintf("SELECT DISTINCT
|
$sql = sprintf("SELECT DISTINCT
|
||||||
Notices.[NoticeID] AS id,
|
Notices.[NoticeID] AS id,
|
||||||
Notices.[Title] AS title,
|
LTRIM(RTRIM(Notices.[Title])) AS title,
|
||||||
Notices.[Author] AS author,
|
Notices.[Author] AS author,
|
||||||
LTRIM(RTRIM(Notices.[NoticeNr])) AS code,
|
LTRIM(RTRIM(Notices.[NoticeNr])) AS code,
|
||||||
Fields.[520] AS summary,
|
Fields.[520] AS summary,
|
||||||
@@ -98,7 +98,7 @@ class AudioBook extends DbMapping
|
|||||||
Notices.[coverdisplay],
|
Notices.[coverdisplay],
|
||||||
Fields.[856u] AS link,
|
Fields.[856u] AS link,
|
||||||
Fields.[856z] AS linkTitle,
|
Fields.[856z] AS linkTitle,
|
||||||
Notices.[MediaType1Code] AS mediaType,
|
LTRIM(RTRIM(Notices.[MediaType1Code])) AS mediaType
|
||||||
FROM Notices
|
FROM Notices
|
||||||
INNER JOIN Codes As GenreCode ON Notices.MediaType2Code = GenreCode.Code AND GenreCode.Type = 2
|
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
|
INNER JOIN Codes AS ProducerCode ON Notices.userdefined3code = ProducerCode.Code AND ProducerCode.Type=6
|
||||||
|
|||||||
Reference in New Issue
Block a user