<?xml version="1.0" encoding="UTF-8" ?>
<!--
Simple test configuration for unicode data in DiGIR
-->
<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="Provider=Microsoft.JET.OLEDB.4.0;Data Source=&quot;c:\digir\database\encoding2002.mdb&quot;"
       uid=""
       pwd=""
       database=""
       dbtype="ado_access"
       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="test" key="rowid">
    </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://localhost/digirtest/xml/unicodetestRS.xsd" />
        <format type="scan" location="http://localhost/digirtest/xml/unicodetestRS.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:uct="http://digir.net/schemas/unicodetest/2003" >
        <!--
        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="uct:DateLastModified" type="DATETIME" table="test" zid="25" field="lastmodified" />
        <concept searchable="1" returnable="1" name="uct:recordID" type="text" table="test" zid="1" field="rowID" />
        <concept searchable="1" returnable="1" name="uct:charset" type="text" table="test" zid="2" field="typ" />
        <concept searchable="1" returnable="1" name="uct:test" type="text" table="test" zid="3" field="content" />
    </concepts>

	<!--
	The <metadata> element provides metadata for this resource.
	-->    
    <metadata>
      <name>Sample Unicode (UTF-8) records</name>
      <code>! set by application (value in resources.xml) !</code>
      <relatedInformation>http://localhost/digirtest/xml/unicodetest.xml</relatedInformation>
      <contact type="technical">
          <name>A Á B C D E É F G H I Í J K L M N Ñ O Ó P Q R S T U Ú Ü V W X Y Z</name>
          <title>Title of contact</title>
          <emailAddress>NOSPAM</emailAddress>
          <phone>full phone number - including country code</phone>
      </contact>
      <contact type="administrative">
          <name>Name of contact.  You can have multiple contacts of type technical and/or administrative</name>
          <title>Title of contact</title>
          <emailAddress>NOSPAM</emailAddress>
          <phone>full phone number - including country code</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://localhost/digirtest/xml/unicodetest.xsd">
        http://digir.net/schemas/unicodetest/2003
      </conceptualSchema>
      <recordIdentifier>Unique identifier for this resource (within the institution)</recordIdentifier>
      <recordBasis>voucher - can be voucher or observation - applies to *all* records in resource</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 v="0" />
      
      <!--
      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 v="1000" />
      
      <!--
      integer, specifies the maximum number of records that can be returned in an 
      inventory (scan) response.  Effectively sets the maximum page size of a response
      -->
      <maxInventoryResponseRecords v="10000" />

      <!--
      URL, points to the default record format that will be used when the request contains a 
      blank record structure
      -->
      <defaultRecordFormat v="http://localhost/digirtest/xml/unicodetestRS.xsd" />

      <!--
      namespace + concept, identifies the concept that will be used by default is the inventory 
      request contains a blank record structure
      -->
      <defaultInventoryConcept v="uct:content" />
    </metadata>
</configuration>
