EndNote expects the %A tag to be in "Last Name, First Name" format, and gets it backwards when importing %A in "First Name Last Name" format.
There is no problem if using biblio's author name normalization, but if not, the EndNote Tagged export is broken.
Since I don't think the author name normalization should be applied to export anyways, I rewrote that bit as follows to put it in the format that EndNote expects. This is EndNote 10 by the way...
@@ -2104,14 +2147,10 @@
}
$doc .= "%D " . trim($pub->biblio_year) . "\r\n";
$doc .= "%T " . trim($pub->title) . "\r\n";
- if (variable_get('biblio_normalize', 0)) {
- $pub_authors = _biblio_parse_authors($pub->biblio_authors);
- } else {
- $pub_authors = $pub->biblio_authors;
- }
- $author_array = explode(";", $pub_authors);
+
+ $author_array = _parse_author_array(explode(';', $pub_authors));
foreach($author_array as $auth) {
- $doc .= "%A " . trim($auth) . "\r\n";
+ $doc .= "%A " . $auth['last_name'] . ($auth['first_name'] ? (', ' . $auth['first_name']) : ($auth['initials'] ? (', ' . $auth['initials']) : '')) . "\r\n";
}
Comments
Comment #1
rjerome commentedThanks, I've included this patch (with minor modification) in the code.
should have been...
Comment #2
catdevrandom commented