You are here

protected function views_oai_pmh_plugin_style::append_record_header in Views OAI-PMH 7.3

Append record header.

3 calls to views_oai_pmh_plugin_style::append_record_header()
views_oai_pmh_plugin_style::get_record_render in plugins/views_oai_pmh_plugin_style.inc
Renders a response to the 'GetRecord' OAI-PMH request.
views_oai_pmh_plugin_style::list_identifiers_render in plugins/views_oai_pmh_plugin_style.inc
Renders a response to the 'ListIdentifiers' OAI-PMH request.
views_oai_pmh_plugin_style::list_records_render in plugins/views_oai_pmh_plugin_style.inc
Renders a response to the 'ListRecords' OAI-PMH request.

File

plugins/views_oai_pmh_plugin_style.inc, line 442
Contains the base OAI-PMH style plugin.

Class

views_oai_pmh_plugin_style
Views OAI-PMH_plugin style.

Code

protected function append_record_header($parent, $row_index, $row) {
  $header_element = $this->xml
    ->createElement('header');
  $parent
    ->appendChild($header_element);
  $elements = array(
    'identifier' => $this
      ->make_record_identifier($row->nid),
    'datestamp' => gmstrftime('%Y-%m-%dT%H:%M:%SZ', $row->node_changed),
  );
  $this
    ->xml_append_children($header_element, $elements);
}