Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions os2web_selfservicelinks.feeds_importer_default.inc
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ function os2web_selfservicelinks_feeds_importer_default() {
'name' => 'Borgeronline',
'description' => 'Importerer selfservicelinks fra Borgeronline (Dafolo)',
'fetcher' => array(
'plugin_key' => 'FeedsSOAPFetcher',
'plugin_key' => 'FeedsHTTPFetcher',
'config' => array(
'wsdl_url' => 'https://www.borgeronline.dk/Webservice/Service.asmx?wsdl',
'service_method_name' => 'menuXML',
'method_parameters' => 'municipalityId=706
password=706web',
'auto_detect_feeds' => FALSE,
'use_pubsubhubbub' => FALSE,
'designated_hub' => '',
'request_timeout' => NULL,
),
),
'parser' => array(
'plugin_key' => 'FeedsXPathParserXML',
'config' => array(
'sources' => array(
'xpathparser:0' => 'concat( filnavn, netborger )',
'xpathparser:0' => 'blanketId',
'xpathparser:1' => 'titel',
'xpathparser:2' => 'netborger',
'xpathparser:3' => '\'Borgeronline\'',
Expand All @@ -46,6 +46,8 @@ password=706web',
'context' => '//blanket',
'exp' => array(
'errors' => 0,
'tidy' => 0,
'tidy_encoding' => 'UTF8',
'debug' => array(
'context' => 0,
'xpathparser:0' => 0,
Expand All @@ -61,7 +63,6 @@ password=706web',
'processor' => array(
'plugin_key' => 'FeedsNodeProcessor',
'config' => array(
'content_type' => 'os2web_base_selfservice_link',
'expire' => '-1',
'author' => 0,
'mappings' => array(
Expand All @@ -77,22 +78,25 @@ password=706web',
),
2 => array(
'source' => 'xpathparser:2',
'target' => 'field_gruppe_id',
'target' => 'field_os2web_base_field_grp_id',
'unique' => FALSE,
),
3 => array(
'source' => 'xpathparser:3',
'target' => 'field_kilde',
'target' => 'field_os2web_base_field_source',
'unique' => FALSE,
),
4 => array(
'source' => 'xpathparser:4',
'target' => 'field_selvbetjening_direkte',
'target' => 'field_os2web_base_field_direct',
'unique' => FALSE,
),
),
'update_existing' => '2',
'input_format' => 'plain_text',
'authorize' => 1,
'skip_hash_check' => 0,
'bundle' => 'os2web_base_selfservice_link',
),
),
'content_type' => '',
Expand Down
2 changes: 1 addition & 1 deletion os2web_selfservicelinks.info
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ php = 5.2.4
version = 7.x-1.0-beta1
project = os2web_selfservicelinks
dependencies[] = ctools
dependencies[] = feeds
dependencies[] = features
dependencies[] = feeds
dependencies[] = feeds_soap
features[ctools][] = feeds:feeds_importer_default:1
features[features_api][] = api:1
Expand Down