JournalOAI::repositoryInfo PHP Method

repositoryInfo() public method

public repositoryInfo ( )
    function repositoryInfo()
    {
        $info = new OAIRepository();
        if (isset($this->journal)) {
            $info->repositoryName = $this->journal->getLocalizedName();
            $info->adminEmail = $this->journal->getSetting('contactEmail');
        } else {
            $info->repositoryName = $this->site->getLocalizedTitle();
            $info->adminEmail = $this->site->getLocalizedContactEmail();
        }
        $info->sampleIdentifier = $this->articleIdToIdentifier(1);
        $info->earliestDatestamp = $this->dao->getEarliestDatestamp(array($this->journalId));
        $info->toolkitTitle = 'Open Journal Systems';
        $versionDao = DAORegistry::getDAO('VersionDAO');
        $currentVersion = $versionDao->getCurrentVersion();
        $info->toolkitVersion = $currentVersion->getVersionString();
        $info->toolkitURL = 'http://pkp.sfu.ca/ojs/';
        return $info;
    }