From 18af85df81bb475655da89136135eb539f544bd9 Mon Sep 17 00:00:00 2001 From: Joerg Reichert Date: Sun, 15 Apr 2018 15:41:50 +0200 Subject: [PATCH] #14: fix dashs, remove resolution (as wrong field) --- app/views/search/index.rss.builder | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/views/search/index.rss.builder b/app/views/search/index.rss.builder index 5f0f7c6..6c89738 100644 --- a/app/views/search/index.rss.builder +++ b/app/views/search/index.rss.builder @@ -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