separate editor and year like in solr
This commit is contained in:
@@ -82,7 +82,8 @@ class AudioBook extends DbMapping
|
|||||||
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,
|
||||||
Fields.[260b] + ' ' + Fields.[260c] AS editor,
|
REPLACE(Fields.[260b], ',', '') AS editor,
|
||||||
|
LEFT(SUBSTRING(Fields.[260c], PATINDEX('%%[0-9]%%', Fields.[260c]), 8000), PATINDEX('%%[^0-9]%%', SUBSTRING(Fields.[260c], PATINDEX('%%[0-9]%%', Fields.[260c]), 8000) + 'X')-1) AS year,
|
||||||
Fields.[300] AS media,
|
Fields.[300] AS media,
|
||||||
Fields.[490a] AS collection,
|
Fields.[490a] AS collection,
|
||||||
isbn.DisplayText AS isbn,
|
isbn.DisplayText AS isbn,
|
||||||
|
|||||||
Reference in New Issue
Block a user