diff --git a/src/oaipmh-expose/class-tainacan-oaipmh-identify.php b/src/oaipmh-expose/class-tainacan-oaipmh-identify.php index 3624fbb48..24d9c170a 100644 --- a/src/oaipmh-expose/class-tainacan-oaipmh-identify.php +++ b/src/oaipmh-expose/class-tainacan-oaipmh-identify.php @@ -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'); diff --git a/src/oaipmh-expose/class-tainacan-oaipmh-list-identifiers.php b/src/oaipmh-expose/class-tainacan-oaipmh-list-identifiers.php index 280a3bc15..2e9dfb48a 100644 --- a/src/oaipmh-expose/class-tainacan-oaipmh-list-identifiers.php +++ b/src/oaipmh-expose/class-tainacan-oaipmh-list-identifiers.php @@ -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 ); } diff --git a/src/oaipmh-expose/class-tainacan-oaipmh-list-metadata-formats.php b/src/oaipmh-expose/class-tainacan-oaipmh-list-metadata-formats.php index 85de282e7..f09743ddb 100644 --- a/src/oaipmh-expose/class-tainacan-oaipmh-list-metadata-formats.php +++ b/src/oaipmh-expose/class-tainacan-oaipmh-list-metadata-formats.php @@ -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);