function sonz_taxonomy_service_info in Taxonomy import/export via XML 7
2 calls to sonz_taxonomy_service_info()
- lsid_taxonomy_service_form_submit in services/
lsid.taxonomy_service.inc - What to do when loading from this service
- sonz_taxonomy_service_form_submit in services/
sonz.taxonomy_service.inc - What to do when loading from this service
File
- services/
sonz.taxonomy_service.inc, line 17 - declare how to load and import a SONZ (Services of New Zealand) Taxonomy
Code
function sonz_taxonomy_service_info() {
$services = array();
$services['sonz'] = array(
'provider' => 'New Zealand Government Locator Service (NZGLS)',
'name' => 'Services Of New Zealand (SONZ)',
'id' => 'sonz',
'description' => '
A list of topics and classifications used to describe subjects
of interest to government and government agencies.
Subjects include terms relating to administration, national affairs,
education, infrastructure, law, economics and industry.
',
'about' => 'http://www.e.govt.nz/standards/nzgls/thesauri',
// Define the name of the form function that returns service-specific UI
'import_form_callback' => 'sonz_taxonomy_service_form',
'import_form_submit' => 'sonz_taxonomy_service_form_submit',
// Internal use
'servicetype' => 'lookup',
'protocol' => 'URI',
'pattern' => 'http://www.e.govt.nz/standards/nzgls/thesauri/sonz150.txt/download',
'format' => 'csv',
);
return $services;
}