You are here

function en8_add_dates in Bibliography Module 6.2

Same name and namespace in other branches
  1. 6 endnote8_export.inc \en8_add_dates()
  2. 7 modules/endnote/endnote8_export.inc \en8_add_dates()
  3. 7.2 modules/endnote/endnote8_export.inc \en8_add_dates()
1 call to en8_add_dates()
_endnote8_XML_export in modules/endnote/endnote8_export.inc

File

modules/endnote/endnote8_export.inc, line 97

Code

function en8_add_dates(&$node) {
  $xml = '';
  if (!empty($node->biblio_year) || !empty($node->biblio_date)) {
    $xml .= '<dates>';
    $xml .= !empty($node->biblio_year) ? '<year><style  face="normal" font="default" size="100%">' . htmlspecialchars($node->biblio_year) . "</style></year>" : '';
    $xml .= !empty($node->biblio_date) ? '<pub-dates><date><style  face="normal" font="default" size="100%">' . htmlspecialchars($node->biblio_date) . "</style></date></pub-dates>" : '';
    $xml .= "</dates>";
  }
  unset($node->biblio_year);
  unset($node->biblio_date);
  return $xml;
}