This module is excellent and is working great. However, I'm trying to parse a feed that contains a source field. I have confirmed that the field is present in the rss feed for each item, and appears to be properly formatted, but for some reason it is being completely ignored by the feeds module. Here is the URL of the feed in question:
https://app.meltwater.com/gyda/outputs/565ccdf2e1974c318b73a426/renderin...

When I paste this URL into Firefox or IE, they also do not display the contents of that field, although I can see it in the source code. Is there something special about the source field? Can anyone suggest something I can do to make the feeds module display the contents of that field and map it to the content type?

Any advice would be greatly appreciated!
Thanks in advance!
-vb

Comments

videobored created an issue. See original summary.

megachriz’s picture

I haven't looked at your feed yet (got to go in a minute), but you could check if your mapping is right and what Feeds is trying to import with the Feeds import preview module. This module allows you to see what your source looks like after it has been parsed.

Maybe that gives you a hint on the issue.

videobored’s picture

Issue summary: View changes
megachriz’s picture

Title: Source field missing/ignored? » RSS 2.0: add support for item->source element
Category: Support request » Feature request
Status: Active » Needs review
Issue tags: +Needs tests
StatusFileSize
new1.82 KB

It appears to be that Feeds doesn't provide the element "source" as a mapping source, although that element is defined in the spec: http://www.rssboard.org/rss-specification

The source element consists of two things:

  • URL
  • Title

The attached patch adds a mapping sources for both.

This should have an automated test, so tagging this issue with "Needs tests".

megachriz’s picture

OWast’s picture

Status: Needs review » Reviewed & tested by the community

I have patch #4 up and running in production and no errors.

megachriz’s picture

Version: 7.x-2.0-beta1 » 7.x-2.x-dev
StatusFileSize
new5.48 KB
new3.67 KB

@OWast Thanks for trying.

Here is a patch with an automated test. If that test passes, then this is ready for commit!

  • MegaChriz committed ed4ed9f on 7.x-2.x
    Issue #2648304 by MegaChriz, OWast: RSS 2.0: add support for item->...
megachriz’s picture

Status: Reviewed & tested by the community » Fixed

Committed #7.

tomsherlock’s picture

This element, item-source appears to be different from the element that I am interested in adding: dc: source.

Scoop.it rss.xml feeds are my primary source (no pun intended) for this lacking element.

A Scoop.it rss.xml feed has the following elements

<channel>
    <title>
    <link>
    <description>
    <pubDate>
    <dc:creator>
    <dc:date>
    <image>
    <item>

And then each <item> has the following elements:

<item>
      <title>
      <link>
      <description>
      <source url>
      <pubDate>
      <guid>
      <dc:creator>
      <dc:date>
      <dc:source>
      <media:content>
        <media:title>
  

<source></source> has the property, url.
has the properties medium and url

I am specifically interested in the element <dc:source>. Notice that there are three elements with the 'dc' prefix This stands for Dublin Core. Please See http://dublincore.org/documents/2012/06/14/dcmi-terms/?v=elements#source

While Scoop.it supports <source url> is does not seem to support <source title>.

I suspect that I should post my request as a separate issue.

tomsherlock’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.