Skip to content

Commit

Permalink
*8491* ensure no newlines in article title
Browse files Browse the repository at this point in the history
  • Loading branch information
jalperin committed Apr 2, 2014
1 parent 3cfc298 commit 27d5c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/generic/alm/ArticleInfoSender.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function _exportArticles($journal, &$articles) {
foreach ($articles as $article) {
$doi = $article->getPubId('doi');
$publishedDate = date('Y-m-d', strtotime($article->getDatePublished()));
$title = $article->getLocalizedTitle();
$title = preg_replace('/s+/', ' ', $article->getLocalizedTitle());
if ($doi && $publishedDate && $title)
$payload .= "$doi $publishedDate $title\n";
}
Expand Down

0 comments on commit 27d5c34

Please sign in to comment.