| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/Topogeo/ojs/plugins/oaiMetadataFormats/ |
Upload File : |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!Procedure for creating other oai-format-plugins!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1. create a folder (<oai_metadata_format>), in this directory (plugins.oaiMetadata), for your plugin
2. create the following files:
~A~ plugins/oaiMetadata/<plugin>/index.php
~B~ plugins/oaiMetadata/<plugin>/OAIMetadataFormatPlugin_<format>.inc.php
~C~ plugins/oaiMetadata/<plugin>/OAIMetadataFormat_<format>.inc.php
3. set locale identifiers (OAIMetadata/<plugin>/locale/<locale>/locale.xml)
##############################################################################
~A~ skeleton ***********************************************
<?php
require_once('OAIFormatPlugin_<format>.inc.php');
require_once('OAIMetadataFormat_<format>.inc.php');
return new OAIFormatPlugin_<format>();
?>
~B~ skeleton ***********************************************
<?php
import('classes.plugins.OAIMetadataFormatPlugin');
class OAIMetadataFormatPlugin_DC extends OAIMetadataFormatPlugin
{
function getName();
function getDisplayName();
function getDescription();
function getFormatClass();
function getMetadataPrefix();
function getSchema();
function getNamespace();
}
?>
~C~ skeleton **********************************************
<?php
class OAIMetadataFormat_<format> extends OAIMetadataFormat
{
function toXML(&$record);
function formatElement($name, $value, $multilingual = false);
}
?>
##############################################################################