Skip to content

Commit

Permalink
#14: fix dashs, remove resolution (as wrong field)
Browse files Browse the repository at this point in the history
  • Loading branch information
joergreichert committed Apr 15, 2018
1 parent 8cadcb4 commit 18af85d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/views/search/index.rss.builder
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand All @@ -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
Expand Down

0 comments on commit 18af85d

Please sign in to comment.