|
<?php
|
|
// Project: Web Reference Database (refbase) <http://www.refbase.net>
|
|
// Copyright: Matthias Steffens <mailto:refbase@extracts.de> and the file's
|
|
// original author(s).
|
|
//
|
|
// This code is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY. Please see the GNU General Public
|
|
// License for more details.
|
|
//
|
|
// File: ./export/export_oaidcxml.php
|
|
// Repository: $HeadURL$
|
|
// Author(s): Matthias Steffens <mailto:refbase@extracts.de>
|
|
//
|
|
// Created: 08-Jan-08, 22:00
|
|
// Modified: $Date: 2008-04-04 08:14:28 +0000 (Fri, 04 Apr 2008) $
|
|
// $Author$
|
|
// $Revision: 1027 $
|
|
|
|
// This exports OAI_DC XML. This file must reside in the 'export' directory of the refbase root directory.
|
|
// It uses functions from include file 'oaidcxml.inc.php' that requires the ActiveLink PHP XML Package,
|
|
// which is available under the GPL from: <http://www.active-link.com/software/>
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
// --- BEGIN EXPORT FORMAT ---
|
|
|
|
// Export found records as OAI_DC XML:
|
|
function exportRecords($result, $rowOffset, $showRows, $exportStylesheet, $displayType)
|
|
{
|
|
// Generate and serve a OAI_DC XML file of ALL records:
|
|
$recordCollection = oaidcCollection($result); // function 'oaidcCollection()' is defined in 'oaidcxml.inc.php'
|
|
|
|
return $recordCollection;
|
|
}
|
|
|
|
// --- END EXPORT FORMAT ---
|
|
|
|
// --------------------------------------------------------------------
|
|
?>
|