function biblio_xml_biblio_export in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/endnote/biblio_xml.module \biblio_xml_biblio_export()
- 7.2 modules/endnote/biblio_xml.module \biblio_xml_biblio_export()
File
- modules/
endnote/ biblio_xml.module, line 141
Code
function biblio_xml_biblio_export($nids) {
module_load_include('inc', 'biblio_xml', 'endnote8_export');
drupal_add_http_header('Content-type', 'application/xml; charset=utf-8');
drupal_add_http_header('Content-Disposition', 'attachment; filename="Biblio-EndNote.xml"');
print _endnote8_XML_export('', 'begin');
$nodes = node_load_multiple($nids, array(), TRUE);
foreach ($nodes as $node) {
// $node = node_load($nid, FALSE, TRUE);.
if (variable_get('biblio_hide_bibtex_braces', 0)) {
$node->title = biblio_remove_brace($node->title);
}
print _endnote8_XML_export($node);
}
print _endnote8_XML_export('', 'end');
}