Mapping an iCal feed from CiviCRM (link to feed: http://labourlawyers.org/civicrm/event/ical?reset=1&page=1)

When imported, the event start and end date are populated with the date that the feed was imported and is created as an all day event. As per the instructions I mapped only the VEVENT to the event datetime field and have no other fields mapped.

I can work around using the CiviCRM Events listing block, but the client requirement is for an actual calendar so they can have events from other calendars as well.

Suggestions?

CommentFileSizeAuthor
#2 feedapi_mapper_date_fix.patch.txt2.47 KByhahn

Comments

jonmc12’s picture

subscribing.. experiencing the same issue

yhahn’s picture

Assigned: Unassigned » yhahn
Status: Active » Needs review
StatusFileSize
new2.47 KB

This patch fixes this issue for me locally. parser_ical places the DTSTART, DTEND, and other relevant fields onto the parsed feed item under an array at the DATE key rather than at the root level of the array where the date mapper appears to expect them. This patch looks for the DATE array first and falls back to the full feed item only if it does not find it.

Patches successfully against:

  • CVS checkout of DRUPAL-6--1 FeedAPI Mapper on Apr 28, 2009
  • 6.x-1.0-beta7

Tested successfully with

  • Parser iCal 6.x-1.1
  • CVS HEAD of Date
alex_b’s picture

#215979: Create a CCK date field mapper would not address this issue?

yhahn’s picture

Status: Needs review » Closed (duplicate)

http://drupal.org/node/215979#comment-1529008 definitely appears to incorporate the fixes in this patch and has some additional logic that adds robustness to mapping & item creation.

Setting this to duplicate.