Add Isbn, Rights and Publisher properties

This commit is contained in:
Didier Corbière 2013-09-13 00:08:15 +01:00
parent 63536d64d8
commit fd44d03d9a
3 changed files with 20 additions and 8 deletions

View file

@ -42,11 +42,19 @@ class CsvExport extends BaseExport
$info = '';
if (is_array($value)) {
foreach ($value as $value1) {
// Escape quotes
if (strpos($value1, '\'') !== false) {
$value1 = '\'' . str_replace('\'', '\'\'', $value1) . '\'';
}
$text .= $value1 . self::CsvSeparator;
}
continue;
}
else {
// Escape quotes
if (strpos($value, '\'') !== false) {
$value = '\'' . str_replace('\'', '\'\'', $value) . '\'';
}
$info = $value;
}
$text .= $info . self::CsvSeparator;