<?xml version="1.0" encoding="UTF-8" ?>
<!--
	Sample resource file that is used as template by the resources.pl script. You MUST NOT
	edit or remove this file!
-->
<configuration>
	<!-- 
	<datasource> defines the database connection.
	Type = "SQL" | "Z39.50".  
	If type = "SQL"
	  constr = ADODB connection string
	  uid = User ID
	  pwd = password
	  database = name of database (for engines that support multiple databases)
	  dbtype = name of the ADODB driver
	  encoding = database character encoding (see section "Supported Character Encodings" on page http://www.php.net/manual/en/ref.mbstring.php)
	-->
    <datasource 
       type="SQL"
       constr="HOSTNAME.DOMAIN:PORT_NUMBER"
       uid="DB_USER_NAME"
       pwd="DB_PASSWORD"
       database="DB_NAME"
       dbtype="DB_TYPE"
       encoding="utf-8">
    </datasource>

    <!--
    <table> identifies which table(s) to draw data from. 
    Attributes:
      name = name of the table
      key = column in database that provides a unique ID
    -->
    <table name="TABLE_NAME" key="TABLE_UNIQUE_KEY">
    </table>

    <!--
    <defaultFormats> Identifies the default schemas to use for search and scan results.
    -->
    <defaultFormats>
    	<!--
    	<format> provides a reference to a schema.
    	Attributes:
    	  type = "search" | "scan"
    	  location = URL of XML schema document
    	-->
        <format type="search" location="http://digir.net/schema/conceptual/darwin/brief/2003/1.0/darwin2brief.xsd" />
        <format type="scan" location="http://digir.sourceforge.net/prov/darwin/darwin2scan.xsd" />
    </defaultFormats>

    <!--
    <concepts> is a list of concepts supported by this database.  The namespace of the concept
    name attribute must match a namespace defined in the <concepts> element.
    -->
    <concepts xmlns:darwin="http://digir.net/schema/conceptual/darwin/2003/1.0" >
        <!--
        Each <concept> element identifies a concept (basically equivalent to a database column) that
        is available for search and/or retrieval.
        Attributes:
          searchable = "1" | "0", indicating whether the concept is available in searches or not respectively.
          returnable = "1" | "0", indicating if the concept data can be returned in response records.
          type = meta-type for data stored in the database.  Can be one of the following:
            DATETIME = Date Time database type
            TEXT = string, varchar, text
            NUMERIC = integer, floating point, fixed
          table = name of the table from which the data is to be drawn.  The case of the table name MUST
            match the case of the name attribute given in the <table> element above.
        -->
    	<concept searchable="1" returnable="1" name="darwin:DateLastModified" 	type="datetime"	table="TBL_NAME" field="DateLastModified" zid="1"/>
    	<concept searchable="1" returnable="1" name="darwin:InstitutionCode" 	type="text" 	table="TBL_NAME" field="InstitutionCode" zid="2"/>
    	<concept searchable="1" returnable="1" name="darwin:CollectionCode" 	type="text" 	table="TBL_NAME" field="CollectionCode" zid="3"/>
    	<concept searchable="1" returnable="1" name="darwin:CatalogNumber" 	type="text" 	table="TBL_NAME" field="CatalogNumber" zid="4" defaultOrder="ASC"/>
    	<concept searchable="1" returnable="1" name="darwin:ScientificName" 	type="text" 	table="TBL_NAME" field="ScientificName" zid="5"/>
    	<concept searchable="1" returnable="1" name="darwin:BasisOfRecord" 	type="text" 	table="TBL_NAME" field="BasisOfRecord" zid="6"/>
    	<concept searchable="1" returnable="1" name="darwin:Kingdom" 		type="text" 	table="TBL_NAME" field="Kingdom" zid="7"/>
    	<concept searchable="1" returnable="1" name="darwin:Phylum" 		type="text" 	table="TBL_NAME" field="Phylum" zid="8"/>
    	<concept searchable="1" returnable="1" name="darwin:Class" 		type="text" 	table="TBL_NAME" field="Class" zid="9"/>
    	<concept searchable="1" returnable="1" name="darwin:Order" 		type="text" 	table="TBL_NAME" field="Order" zid="10"/>
    	<concept searchable="1" returnable="1" name="darwin:Family" 		type="text" 	table="TBL_NAME" field="Family" zid="11"/>
    	<concept searchable="1" returnable="1" name="darwin:Genus" 		type="text" 	table="TBL_NAME" field="Genus" zid="12"/>
    	<concept searchable="1" returnable="1" name="darwin:Species" 		type="text" 	table="TBL_NAME" field="Species" zid="13"/>
    	<concept searchable="1" returnable="1" name="darwin:Subspecies" 	type="text" 	table="TBL_NAME" field="Subspecies" zid="14"/>
    	<concept searchable="1" returnable="1" name="darwin:ScientificNameAuthor" type="text" 	table="TBL_NAME" field="ScientificNameAuthor" zid="15"/>
    	<concept searchable="1" returnable="1" name="darwin:IdentifiedBy" 	type="text" 	table="TBL_NAME" field="IdentifiedBy" zid="16"/>
    	<concept searchable="1" returnable="1" name="darwin:YearIdentified" 	type="numeric" 	table="TBL_NAME" field="YearIdentified" zid="17"/>
    	<concept searchable="1" returnable="1" name="darwin:MonthIdentified" 	type="numeric" 	table="TBL_NAME" field="MonthIdentified" zid="18"/>
    	<concept searchable="1" returnable="1" name="darwin:DayIdentified" 	type="numeric" 	table="TBL_NAME" field="DayIdentified" zid="19"/>
    	<concept searchable="1" returnable="1" name="darwin:TypeStatus" 	type="text" 	table="TBL_NAME" field="TypeStatus" zid="20"/>
    	<concept searchable="1" returnable="1" name="darwin:CollectorNumber" 	type="text" 	table="TBL_NAME" field="CollectorNumber" zid="21"/>
    	<concept searchable="1" returnable="1" name="darwin:FieldNumber" 	type="text" 	table="TBL_NAME" field="FieldNumber" zid="22"/>
    	<concept searchable="1" returnable="1" name="darwin:Collector" 		type="text" 	table="TBL_NAME" field="Collector" zid="23"/>
    	<concept searchable="1" returnable="1" name="darwin:YearCollected" 	type="numeric" 	table="TBL_NAME" field="YearCollected" zid="24"/>
    	<concept searchable="1" returnable="1" name="darwin:MonthCollected" 	type="numeric" 	table="TBL_NAME" field="MonthCollected" zid="25"/>
    	<concept searchable="1" returnable="1" name="darwin:DayCollected" 	type="numeric" 	table="TBL_NAME" field="DayCollected" zid="26"/>
    	<concept searchable="1" returnable="1" name="darwin:JulianDay" 		type="julian" 	table="TBL_NAME" field="JulianDay" zid="27"/>
    	<concept searchable="1" returnable="1" name="darwin:TimeOfDay" 		type="text" 	table="TBL_NAME" field="TimeOfDay" zid="28"/>
    	<concept searchable="1" returnable="1" name="darwin:ContinentOcean" 	type="text" 	table="TBL_NAME" field="ContinentOcean" zid="29"/>
    	<concept searchable="1" returnable="1" name="darwin:Country" 		type="text" 	table="TBL_NAME" field="Country" zid="30"/>
    	<concept searchable="1" returnable="1" name="darwin:StateProvince" 	type="text" 	table="TBL_NAME" field="StateProvince" zid="31"/>
    	<concept searchable="1" returnable="1" name="darwin:County" 		type="text" 	table="TBL_NAME" field="County" zid="32"/>
    	<concept searchable="1" returnable="1" name="darwin:Locality" 		type="text" 	table="TBL_NAME" field="Locality" zid="33"/>
    	<concept searchable="1" returnable="1" name="darwin:Longitude" 		type="text" 	table="TBL_NAME" field="Longitude" zid="34"/>
    	<concept searchable="1" returnable="1" name="darwin:Latitude" 		type="text" 	table="TBL_NAME" field="Latitude" zid="35"/>
    	<concept searchable="1" returnable="1" name="darwin:CoordinatePrecision" type="numeric" table="TBL_NAME" field="CoordinatePrecision" zid="36"/>
    	<concept searchable="1" returnable="0" name="darwin:BoundingBox" 	type="bbounding" table="TBL_NAME" field="BoundingBox" zid="37"/>
    	<concept searchable="1" returnable="1" name="darwin:MinimumElevation" 	type="numeric" 	table="TBL_NAME" field="MinimumElevation" zid="38"/>
    	<concept searchable="1" returnable="1" name="darwin:MaximumElevation" 	type="numeric" 	table="TBL_NAME" field="MaximumElevation" zid="39"/>
    	<concept searchable="1" returnable="1" name="darwin:MinimumDepth" 	type="numeric" 	table="TBL_NAME" field="MinimumDepth" zid="40"/>
    	<concept searchable="1" returnable="1" name="darwin:MaximumDepth" 	type="numeric" 	table="TBL_NAME" field="MaximumDepth" zid="41"/>
    	<concept searchable="1" returnable="1" name="darwin:Sex" 		type="text" 	table="TBL_NAME" field="Sex" zid="42"/>
    	<concept searchable="1" returnable="1" name="darwin:PreparationType" 	type="text" 	table="TBL_NAME" field="PreparationType" zid="43"/>
    	<concept searchable="1" returnable="1" name="darwin:IndividualCount" 	type="text" 	table="TBL_NAME" field="IndividualCount" zid="44"/>
    	<concept searchable="1" returnable="1" name="darwin:PreviousCatalogNumber" type="text" 	table="TBL_NAME" field="PreviousCatalogNumber" zid="45"/>
    	<concept searchable="1" returnable="1" name="darwin:RelationshipType" 	type="text" 	table="TBL_NAME" field="RelationshipType" zid="46"/>
    	<concept searchable="1" returnable="1" name="darwin:RelatedCatalogItem" type="text" 	table="TBL_NAME" field="RelatedCatalogItem" zid="47"/>
    	<concept searchable="1" returnable="1" name="darwin:Notes" 		type="text" table="TBL_NAME" field="Notes" zid="48"/>
    </concepts>

    <!--
    The <metadata> element provides metadata for this resource.
    -->    
    <metadata>
      <name>RESOURCE_NAME</name>
      <code>! set by application (value in resources.xml) !</code>
      <relatedInformation>__URL that provides more information about this resource__</relatedInformation>
      <contact type="technical">
          <name>TECH_NAME</name>
          <title>TECH_TITLE</title>
          <emailAddress>TECH_EMAIL</emailAddress>
          <phone>TECH_PHONE</phone>
      </contact>
      <contact type="administrative">
          <name>ADMIN_NAME</name>
          <title>ADMIN_TITLE</title>
          <emailAddress>ADMIN_EMAIL</emailAddress>
          <phone>ADMIN_PHONE</phone>
      </contact>
      <abstract>__Description of the contents of this resource__</abstract>
      <keywords>__Some key words (comma delimited)__</keywords>
      <citation>__How you want your data cited__</citation>
      <useRestrictions>__Restrictions on use of the data retrieved from this resource__</useRestrictions>
      <!--
      schemaLocation is the physical location of the federation schema that this resource supports.  The 
      value of the element is the name space of the schema.
      -->
      <conceptualSchema schemaLocation="http://digir.net/schema/conceptual/darwin/2003/1.0/darwin2.xsd">
	http://digir.net/schema/conceptual/darwin/2003/1.0
      </conceptualSchema>
      <recordIdentifier>__Unique identifier for this resource (within the institution)__</recordIdentifier>
      <recordBasis>__Type of records available__</recordBasis>
      <numberOfRecords>! set by application !</numberOfRecords>
      <dateLastUpdated>! set by application !</dateLastUpdated>
      <!--
      integer, specifies the minimum number of characters that can appear in a query term. 
      -->
      <minQueryTermLength>0</minQueryTermLength>
      <!--
      integer, specifies the maximum number of records that can be returned in a search 
      response.  Effectively sets the maximum page size of a response
      -->
      <maxSearchResponseRecords>1000</maxSearchResponseRecords>
      <!--
      integer, specifies the maximum number of records that can be returned in an 
      inventory (scan) response.
      -->
      <maxInventoryResponseRecords>10000</maxInventoryResponseRecords>
      <!--
      URL, points to the default record format that will be used when the request contains a 
      blank record structure
      -->
      <defaultRecordFormat>http://digir.net/schema/conceptual/darwin/brief/2003/1.0/darwin2brief.xsd</defaultRecordFormat>
      <!--
      namespace + concept, identifies the concept that will be used by default is the inventory 
      request contains a blank record structure
      -->
      <defaultInventoryConcept>darwin:ScientificName</defaultInventoryConcept>
    </metadata>
</configuration>
