2017-05-12 18:13:53 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Simple OAI-PMH 2.0 Data Provider
|
2017-05-13 12:08:11 +02:00
|
|
|
* Copyright (C) 2005 Heinrich Stamerjohanns <stamer@uni-oldenburg.de>
|
|
|
|
* Copyright (C) 2011 Jianfeng Li <jianfeng.li@adelaide.edu.au>
|
2017-05-12 18:13:53 +02:00
|
|
|
* Copyright (C) 2013 Daniel Neis Araujo <danielneis@gmail.com>
|
|
|
|
* Copyright (C) 2017 Sebastian Meyer <sebastian.meyer@opencultureconsulting.com>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This file contains all configuration you need to change according to your preferences
|
|
|
|
*/
|
|
|
|
|
|
|
|
$config = array();
|
|
|
|
|
|
|
|
// A human readable name for the repository
|
2017-05-14 14:14:34 +02:00
|
|
|
$config['repositoryName'] = 'Simple OAI 2.0 Data Provider';
|
2017-05-12 18:13:53 +02:00
|
|
|
|
2017-05-13 13:44:55 +02:00
|
|
|
// The base URL of the repository, i.e. the directory you deployed the files to
|
2017-05-14 14:14:34 +02:00
|
|
|
$config['baseURL'] = 'http://www.example.org/oai2/';
|
2017-05-12 18:13:53 +02:00
|
|
|
|
|
|
|
// Email address for contacting the repository owner
|
2017-05-14 14:14:34 +02:00
|
|
|
$config['adminEmail'] = 'admin@example.org';
|
2017-05-12 18:13:53 +02:00
|
|
|
|
|
|
|
// Metadata format, schema and namespace of your records
|
2017-05-14 14:14:34 +02:00
|
|
|
$config['metadataFormat'] = 'oai_dc';
|
|
|
|
$config['metadataSchema'] = 'http://www.openarchives.org/OAI/2.0/oai_dc.xsd';
|
|
|
|
$config['metadataNamespace'] = 'http://www.openarchives.org/OAI/2.0/oai_dc/';
|
2017-05-12 18:13:53 +02:00
|
|
|
|
|
|
|
// Maximum number of records to return before giving a resumption token
|
|
|
|
$config['maxRecords'] = 100;
|
|
|
|
|
|
|
|
// Path and prefix for saving resumption tokens
|
|
|
|
// (Make sure the given path is writable)
|
|
|
|
$config['tokenPrefix'] = '/tmp/oai2-';
|
|
|
|
|
|
|
|
// Number of seconds a resumption token should be valid
|
|
|
|
$config['tokenValid'] = 86400; // 24 hours
|