Configuration file of current data provider. More...
Constants | |
enum | SHOW_QUERY_ERROR |
enum | CONTENT_TYPE |
enum | MAXRECORDS |
enum | MAXIDS |
enum | TOKEN_VALID |
enum | TOKEN_PREFIX |
Variables | |
$identifyResponse = array() | |
$compression = null |
This is the configuration file for the PHP OAI Data Provider. Please read through the WHOLE file, there are several things, that need to be adjusted.
The response may may be compressed for better performace:
Some other used variables:
The rest of settings will not normally need to be adjusted. Read source code for details.
enum SHOW_QUERY_ERROR |
Whether to show error message for dubug. For installation, testing and debuging set SHOW_QUERY_ERROR to TRUE If set to TRUE, application will die and display query and database error message as soon as there is a problem. Do not set this to TRUE on a production site, since it will show error messages to everybody. If set FALSE, will create XML-output, no matter what happens.
enum CONTENT_TYPE |
The content-type the WWW-server delivers back. For debug-puposes, "text/plain" is easier to view. On a production site you should use "text/xml".
enum MAXRECORDS |
Maximum mumber of the records to deliver (verb is ListRecords) If there are more records to deliver a ResumptionToken will be generated.
enum MAXIDS |
Maximum mumber of identifiers to deliver (verb is ListIdentifiers) If there are more identifiers to deliver a ResumptionToken will be generated.
enum TOKEN_VALID |
After 24 hours resumptionTokens become invalid. Unit is second.
enum TOKEN_PREFIX |
Where token is saved and path is included
$identifyResponse = array() |
Identifier settings. It needs to have proper values to reflect the settings of the data provider.
$compression = null |
Compression methods supported. Optional (multiple). Default: null.
Currently only gzip is supported (you need output buffering turned on, and php compiled with libgz). The client MUST send "Accept-Encoding: gzip" to actually receive