diff --git a/modules/radar/radar_location/radar_location.features.field_instance.inc b/modules/radar/radar_location/radar_location.features.field_instance.inc index d301d950d960df3e060e49b337e6826d61e91f1c..721937bc8800eb0b57afdda71323ab9d228af497 100644 --- a/modules/radar/radar_location/radar_location.features.field_instance.inc +++ b/modules/radar/radar_location/radar_location.features.field_instance.inc @@ -54,6 +54,7 @@ If a marker on the map shows that the location already exist, then cancel and ch 'weight' => 0, ), ), + 'ds_extras_field_template' => '', 'entity_type' => 'location', 'field_name' => 'field_address', 'label' => 'Address', diff --git a/modules/radar/radar_location/radar_location.features.inc b/modules/radar/radar_location/radar_location.features.inc index 0986baa301a858006b3f3a96eb44220a5608f7b7..2558495e8eebd51a779d9272efe55fd3a54e51a9 100644 --- a/modules/radar/radar_location/radar_location.features.inc +++ b/modules/radar/radar_location/radar_location.features.inc @@ -66,3 +66,32 @@ function radar_location_eck_entity_type_info() { ); return $items; } + +/** + * Implements hook_rdf_default_mappings(). + */ +function radar_location_rdf_default_mappings() { + $schemaorg = array(); + + // Exported RDF mapping: location + $schemaorg['location']['location'] = array( + 'field_address' => array( + 'predicates' => array( + 0 => 'schema:address', + ), + ), + 'url' => array( + 'predicates' => array( + 0 => 'schema:url', + ), + 'type' => 'rel', + ), + 'field_map' => array( + 'predicates' => array( + 0 => 'schema:geo', + ), + ), + ); + + return $schemaorg; +} diff --git a/modules/radar/radar_location/radar_location.info b/modules/radar/radar_location/radar_location.info index 47f22185180f629cb5c6f09b48feb6003e4c470a..6c00a258caf4a0f828f55e85b6848535a52d8c33 100644 --- a/modules/radar/radar_location/radar_location.info +++ b/modules/radar/radar_location/radar_location.info @@ -2,7 +2,7 @@ name = Radar Location description = Provides location entities with address fields and maps to enter a physical location core = 7.x package = Radar -version = 7.x-1.0-beta1 +version = 7.x-1.0 project = radar_location dependencies[] = addressfield dependencies[] = ctools @@ -21,6 +21,8 @@ dependencies[] = leaflet dependencies[] = openlayers dependencies[] = openlayers_views dependencies[] = options +dependencies[] = rdf +dependencies[] = schemaorg dependencies[] = strongarm dependencies[] = taxonomy dependencies[] = text @@ -51,6 +53,7 @@ features[openlayers_maps][] = radar_all_locations_geofield_widget_map features[openlayers_maps][] = radar_groups_all features[openlayers_maps][] = radar_location_geofield_widget_map features[openlayers_styles][] = existing_location +features[schemaorg][] = location-location features[taxonomy][] = type features[user_permission][] = eck add location bundles features[user_permission][] = eck add location location entities