You are here

views-oai-pmh-response.tpl.php in Views OAI-PMH 7.2

File

theme/views-oai-pmh-response.tpl.php
View source
<?php

print '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
?>
<OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/   http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
 <?php

print $oai_response_date;
?>
  <?php

print $oai_request;
if (!empty($oai_errors)) {
  ?>
  <?php

  print $oai_errors;
}
else {
  ?>
  <<?php

  print $oai_verb;
  ?>>
<?php

}
print $oai_content;
if (!empty($oai_resumption_token)) {
  ?>
  <?php

  print $oai_resumption_token;
}
if (!empty($oai_verb) && empty($oai_errors)) {
  ?>
  </<?php

  print $oai_verb;
  ?>>
<?php

}
?>
</OAI-PMH>