/**
  * Populate the OAI Repository form with database values (non-localized)
  */
 protected function populateOaiRepositoryForm()
 {
     // Get OAI Repository settings
     $oaiEnabled = QubitSetting::getSettingByName('oai_enabled');
     $oaiRepositoryCode = QubitSetting::getSettingByName('oai_repository_code');
     $oaiRepositoryIdentifier = QubitOai::getRepositoryIdentifier();
     $sampleOaiIdentifier = QubitOai::getSampleIdentifier();
     $resumptionTokenLimit = QubitSetting::getSettingByName('resumption_token_limit');
     // Set defaults for global form
     $this->oaiRepositoryForm->setDefaults(array('oai_enabled' => isset($oaiEnabled) ? intval($oaiEnabled->getValue(array('sourceCulture' => true))) : 1, 'oai_repository_code' => isset($oaiRepositoryCode) ? $oaiRepositoryCode->getValue(array('sourceCulture' => true)) : null, 'oai_repository_identifier' => $oaiRepositoryIdentifier, 'sample_oai_identifier' => $sampleOaiIdentifier, 'resumption_token_limit' => isset($resumptionTokenLimit) ? $resumptionTokenLimit->getValue(array('sourceCulture' => true)) : null));
 }
Exemplo n.º 2
0
?>
</earliestDatestamp>
    <deletedRecord><?php 
echo $deletedRecord;
?>
</deletedRecord>
    <granularity><?php 
echo $granularity;
?>
</granularity>
    <compression><?php 
echo $compression;
?>
</compression>
    <description>
      <oai-identifier xmlns="http://www.openarchives.org/OAI/2.0/oai-identifier" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai-identifier http://www.openarchives.org/OAI/2.0/oai-identifier.xsd">
        <scheme>oai</scheme>

        <repositoryIdentifier><?php 
echo QubitOai::getRepositoryIdentifier();
?>
</repositoryIdentifier>
        <delimiter>:</delimiter>
        <sampleIdentifier><?php 
echo QubitOai::getSampleIdentifier();
?>
</sampleIdentifier>
      </oai-identifier>
    </description>
  </Identify>