The default backend offers enough flexibility to access data stored in a RDBMS, structured in the most common ways.

Features

  • connect to many existing databases, by using the httpPEAR database abstraction layer
  • makes use of the template output system that ships with PEAR::OAI.
  • configurable mapping of column names
  • Dublin Core metadata output
  • identifier masequerading

Installation

You certainly need to install PEAR::OAI first, then grab OAI_ServerBackendDefault-x.x.x.tgz and OAI_ServerOutputDefault-x.x.x.tgz from the file httpdownload location.

Now install those packages with the PEAR package manager (notice that you need root access privileges):

        shell> pear install OAI_ServerOutputDefault-x.x.x.tgz
        shell> pear install OAI_ServerBackendDefault-x.x.x.tgz

Create a database called 'oai' for example. With MySQL you would do

        shell> mysql -u root -p
        Enter password:
        mysql> CREATE DATABASE oai;
        mysql> quit;

Create a table where you store the repository records. To do so, please import OAI_ServerBackendDefault/tests/oai_server_table.sql to your database with

        shell> mysql -e "source /path/to/tests/oai_server_table.sql" oai

Demo

Some test scripts are available from the PEAR::OAI package. Please check the configuration of your PEAR Package Manager to see where test scripts are being installed. You can do this by executing

        shell> pear config-get test_dir

Your Web server should point to this directory or move the tests directory to your document root.

The tests/ directory has some sample data available to play around, located at OAI/Server/Backend/Default/test/oai_server_data.sql. You can import the data by executing

        shell> mysql -e "source /path/to/tests/oai_server_data.sql" oai

Have a look at the OAI/Server/Backend/Default/tests/phpconfig.php file that holds environment configuration parameters for PHP. The inline documentation will tell you how to procede.

Then call from your browser the index.php script for testing, for example:

        http://localhost/OAI/Server/Backend/Default/tests/index.php

-- SandroZic


Last edited on Monday, June 30, 2003 11:22:43 am.


Edit PageHistory Diff PageInfo DebugInfo

PHP Warnings

lib/WikiUser.php:50: Notice[8]: Only variables should be assigned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/Template.php:220: Notice[8]: Only variables should be assigned by reference

lib/Template.php:106: Notice[8]: Only variables should be assigned by reference

lib/Template.php:107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'body'?)(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'body'?)(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'top'?)(In template 'body'?)(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'top'?)(In template 'body'?)(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference

lib/pear/DB/common.php(In template 'navbar'?)(In template 'top'?)(In template 'body'?)(In template 'html'?):741: Notice[8]: Only variable references should be returned by reference

lib/Template.php(In template 'body'?)(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'body'?)(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'browse'?)(In template 'body'?)(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'browse'?)(In template 'body'?)(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'actionbar'?)(In template 'browse'?)(In template 'body'?)(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'actionbar'?)(In template 'browse'?)(In template 'body'?)(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'body'?)(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'body'?)(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference

Valid XHTML 1.0! Valid CSS!
Page Execution took 0.116 seconds