adjusts for oai pmh validator (ref. #181)
This commit is contained in:
parent
fef8b5e507
commit
035cac5102
|
@ -16,10 +16,10 @@ class OAIPMH_Identify extends OAIPMH_Expose {
|
|||
$this->xml_creater->add2_verbNode('repositoryName',$this->identifyResponse["repositoryName"]);
|
||||
$this->xml_creater->add2_verbNode('baseURL',$this->identifyResponse["baseURL"]);
|
||||
$this->xml_creater->add2_verbNode('protocolVersion',$this->identifyResponse["protocolVersion"]);
|
||||
$this->xml_creater->add2_verbNode('adminEmail',$this->adminEmail);
|
||||
$this->xml_creater->add2_verbNode('earliestDatestamp',$this->identifyResponse["earliestDatestamp"]);
|
||||
$this->xml_creater->add2_verbNode('deletedRecord',$this->identifyResponse["deletedRecord"]);
|
||||
$this->xml_creater->add2_verbNode('granularity',$this->identifyResponse["granularity"]);
|
||||
$this->xml_creater->add2_verbNode('adminEmail',$this->adminEmail);
|
||||
|
||||
$description_node = $this->xml_creater->add2_verbNode('description');
|
||||
$this->working_node = $this->xml_creater->addChild($description_node, 'oai-identifier');
|
||||
|
|
|
@ -127,8 +127,7 @@ class OAIPMH_List_Identifiers extends OAIPMH_Expose {
|
|||
$identifier = 'oai:'.$this->repositoryIdentifier.':'. $item->get_id();
|
||||
$datestamp = $this->formatDatestamp($item->get_creation_date());
|
||||
$setspec = $collection->get_id();
|
||||
$cur_record = $this->xml_creater->create_record();
|
||||
$cur_header = $this->xml_creater->create_header($identifier, $datestamp, $setspec,$cur_record, ( $item->get_status() === 'trash' ) ? true : false );
|
||||
$cur_header = $this->xml_creater->create_header($identifier, $datestamp, $setspec, null, ( $item->get_status() === 'trash' ) ? true : false );
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -50,8 +50,8 @@ class OAIPMH_List_Metadata_Formats extends OAIPMH_Expose {
|
|||
}
|
||||
$description_node = $this->xml_creater->add2_verbNode('metadataFormat');
|
||||
$this->xml_creater->addChild($description_node, 'metadataPrefix', $metadata_format);
|
||||
//$this->xml_creater->addChild($description_node, 'schema', $metadata_format['schema']);
|
||||
//$this->xml_creater->addChild($description_node, 'metadataNamespace', $metadata_format['metadataNamespace']);
|
||||
$this->xml_creater->addChild($description_node, 'schema', 'http://www.openarchives.org/OAI/2.0/oai_dc.xsd');
|
||||
$this->xml_creater->addChild($description_node, 'metadataNamespace', 'http://www.openarchives.org/OAI/2.0/oai_dc/');
|
||||
}
|
||||
|
||||
header($this->CONTENT_TYPE);
|
||||
|
|
Loading…
Reference in New Issue