%PDF-1.7 GIF89;
| Server IP : 104.20.45.2 / Your IP : 172.16.20.3 Web Server : Apache/2.4.25 (Debian) System : Linux f64a392e70de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : application ( 1000) PHP Version : 5.6.40 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /app/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('lib.pkp.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);
}
?>
##############################################################################