From c6cf70340a48e3889808bb93db96a41fc86d73b4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 15 Jul 2009 21:32:43 +0000 Subject: [PATCH] - Patch #519362 by mfb: make the aggregator module pick up dc:author tags. --- modules/aggregator/aggregator.parser.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/aggregator/aggregator.parser.inc b/modules/aggregator/aggregator.parser.inc index 4b0c9ca9461..f5a49024129 100644 --- a/modules/aggregator/aggregator.parser.inc +++ b/modules/aggregator/aggregator.parser.inc @@ -164,6 +164,11 @@ function aggregator_parse_feed(&$data, $feed) { $item['timestamp'] = aggregator_parse_w3cdtf($date); // Aggregator_parse_w3cdtf() returns FALSE on failure. } + // Resolve dc:creator tag as the item author if author tag is not set. + if (empty($item['author']) && !empty($item['dc:creator'])) { + $item['author'] = $item['dc:creator']; + } + $item += array('author' => '', 'description' => ''); // Store on $feed object. This is where processors will look for parsed items.