#14: fix dashs, remove resolution (as wrong field)

This commit is contained in:
Joerg Reichert 2018-04-15 15:41:50 +02:00
parent 8cadcb4214
commit 18af85df81

View file

@ -11,7 +11,7 @@ xml.rss :version => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/" do
xml.title doc.name
if !doc.content.blank?
xml.description do
xml.cdata! truncate(doc.content, length: 768)
xml.cdata! truncate(doc.content.sub("------------------------------- ", ""), length: 768)
end
end
if !doc.published_at.blank?
@ -27,11 +27,6 @@ xml.rss :version => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/" do
xml.cdata! doc.paper_type
end
end
if !doc.resolution.blank?
xml.category do
xml.cdata! doc.resolution
end
end
xml.link doc.url
xml.guid doc.url
end