simple-oai-pmh/Configuration/Main.template.php

82 lines
3.4 KiB
PHP
Raw Normal View History

2020-01-08 17:24:22 +01:00
<?php
/**
* Simple OAI-PMH 2.0 Data Provider
* Copyright (C) 2005 Heinrich Stamerjohanns <stamer@uni-oldenburg.de>
* Copyright (C) 2011 Jianfeng Li <jianfeng.li@adelaide.edu.au>
* 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
* @see http://www.openarchives.org/OAI/2.0/openarchivesprotocol.htm for further explanation
*/
$config = [
// A human readable name for the repository
'repositoryName' => 'Simple OAI 2.0 Data Provider',
// Email address for contacting the repository owner
'adminEmail' => 'admin@example.org',
// Do you provide 0-byte files for deleted records?
//
// Possible values:
// "no" -> the repository does not maintain information about deletions
// "transient" -> the repository maintains information about deletions, but
// does not guarantee them to be persistent (default)
// "persistent" -> the repository maintains information about deletions with
2021-08-14 09:10:38 +02:00
// no time limit (recommended)
// If you update your repository only via the ./update.php command, you can set
// this to "persistent".
2020-01-08 17:24:22 +01:00
'deletedRecord' => 'transient',
// Metadata formats, schemas and namespaces of your records
//
// The default is 'oai_dc' which is also required by the OAI-PMH specification,
2021-08-14 09:10:38 +02:00
// but technically you can provide any XML based data format you want. Just add
2020-01-08 17:24:22 +01:00
// another entry with the 'metadataPrefix' as key and schema/namespace URIs as
// array values or replace the default 'oai_dc' entry (not recommended).
'metadataPrefix' => [
'oai_dc' => [
'schema' => 'http://www.openarchives.org/OAI/2.0/oai_dc.xsd',
'namespace' => 'http://www.openarchives.org/OAI/2.0/oai_dc/',
],
],
// Directory containing the records
//
// Make sure the given path is readable and there is a subdirectory for every
2020-01-24 01:15:04 +01:00
// 'metadataPrefix' you specified above. Although the given example points to
// a directory inside the document root it is highly recommended to place the
2021-08-14 09:10:38 +02:00
// data directory somewhere else. This will make upgrading so much easier and
// prevents users from accessing the records directly!
2020-01-08 17:24:22 +01:00
'dataDirectory' => './Data/',
// Maximum number of records to return before giving a resumption token
'maxRecords' => 100,
// Absolute path and filename prefix for saving resumption tokens
//
// Make sure the given path is writable.
'tokenPrefix' => '/tmp/oai2-',
// Number of seconds a resumption token should be valid
'tokenValid' => 86400, // 24 hours
];