<?php
#############################################################################
# File containing all the paramaters that could potentially need to be
# configured for the job.
#
#  $url:  The url for the desired Taiper service
#  $seperator:  The delimiter for the flat file.
#  buildFilter():  Function to specify the search paramaters.
#  desiredConcepts:  Desired data to be returned by the service.
#
#############################################################################

# The url of the desired Taiper service
$url = 'http://tapir.cria.org.br/tapirlink/tapir.php/specieslink';

# The seperator to be used in the flat file to seperate the 
# data fields of each record.
$seperator = ',';

# Tapir services have an extremely flexable syntax to search for
# records with the desired properties.  However, this flexibility
# makes it rather difficult to generalize the search possibilities
# and quickly come up with appropriate xml.  As such, the current
# solution is to build the filter node here.  See the associated
# documentation on how to build the filter:
#   http://www.tdwg.org/dav/subgroups/tapir/1.0/docs/tdwg_tapir_specification_2010-05-05.htm#toc47
function buildFilter() {
  $filter = 
        '<equals>' .
          '<concept id="http://rs.tdwg.org/dwc/dwcore/Kingdom"/>' .
          '<literal value="Plantae"/>' .
        '</equals>';
  return $filter;
}

?>
