Libreav

From Things and Stuff Wiki
Jump to navigation Jump to search


Feeds

Mapping

Tamper

  • Feed: Software -> Release: Software - make sure Release entity has field pointing back to the Software entity
  • Title -> Version: The version number of this specific release - Find replace REGEX /(?![0-9])/ - replace any version field without numbers with an empty field

Rules

After saving a new content item of type Software

Conditions:

  • Text comparison - Parameters: text: node.title.value, operator: contains, match: [0-9] - make sure Version has a number in it -
  • Entity is of bundle - Parameters: entity: node, type: node, bundle: software -
  • Entity has field - Parameters: entity: node, field: field_rssatomfeed -

Actions:

  • Create a new feed - Parameters: source: node.field_rssatomfeed.uri, type: releases_info, title: { node.title.value } releases
  • Set a data value - Parameters: data: feeds_feed_created.field_software, value: node
  • Set a data value - Parameters: data: feeds_feed_created.title, value: { feeds_feed_created.field_software } releases
  • Save entity - Parameters: entity: feeds_feed_created, immediate: 1

After updating a content item of type Software (existing)

Conditions:

  • Entity is of bundle - Parameters: entity: node, type: node, bundle: software -
  • Entity has field - Parameters: entity: node, field: field_rssatomfeed -

Actions:

  • Create a new feed - Parameters: source: node.field_rssatomfeed.uri, type: releases_info, title: Template:Node.title.value releases
  • Set a data value - Parameters: data: feeds_feed_created.field_software, value: node
  • Set a data value - Parameters: data: feeds_feed_created.title, value: Template:Feeds feed created.field software releases
  • Save entity - Parameters: entity: feeds_feed_created, immediate: 1