Add Isbn, Rights and Publisher properties
This commit is contained in:
parent
63536d64d8
commit
fd44d03d9a
|
@ -77,8 +77,9 @@ class BookExport
|
||||||
$this->mExport->SetProperty($i++, 'Description');
|
$this->mExport->SetProperty($i++, 'Description');
|
||||||
$this->mExport->SetProperty($i++, 'Subjects');
|
$this->mExport->SetProperty($i++, 'Subjects');
|
||||||
$this->mExport->SetProperty($i++, 'Cover');
|
$this->mExport->SetProperty($i++, 'Cover');
|
||||||
$this->mExport->SetProperty($i++, 'Serie');
|
$this->mExport->SetProperty($i++, 'Isbn');
|
||||||
$this->mExport->SetProperty($i++, 'SerieIndex');
|
$this->mExport->SetProperty($i++, 'Rights');
|
||||||
|
$this->mExport->SetProperty($i++, 'Publisher');
|
||||||
$this->mExport->AddContent();
|
$this->mExport->AddContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,8 +96,9 @@ class BookExport
|
||||||
$this->mExport->SetProperty($i++, $inBookInfo->mDescription);
|
$this->mExport->SetProperty($i++, $inBookInfo->mDescription);
|
||||||
$this->mExport->SetProperty($i++, implode(' - ', $inBookInfo->mSubjects));
|
$this->mExport->SetProperty($i++, implode(' - ', $inBookInfo->mSubjects));
|
||||||
$this->mExport->SetProperty($i++, $inBookInfo->mCover);
|
$this->mExport->SetProperty($i++, $inBookInfo->mCover);
|
||||||
$this->mExport->SetProperty($i++, $inBookInfo->mSerie);
|
$this->mExport->SetProperty($i++, $inBookInfo->mIsbn);
|
||||||
$this->mExport->SetProperty($i++, $inBookInfo->mSerieIndex);
|
$this->mExport->SetProperty($i++, $inBookInfo->mRights);
|
||||||
|
$this->mExport->SetProperty($i++, $inBookInfo->mPublisher);
|
||||||
|
|
||||||
$this->mExport->AddContent();
|
$this->mExport->AddContent();
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,8 +27,9 @@ class BookInfos
|
||||||
public $mDescription = '';
|
public $mDescription = '';
|
||||||
public $mSubjects = null;
|
public $mSubjects = null;
|
||||||
public $mCover = '';
|
public $mCover = '';
|
||||||
public $mSerie = '';
|
public $mIsbn = '';
|
||||||
public $mSerieIndex = '';
|
public $mRights = '';
|
||||||
|
public $mPublisher = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads book infos from an epub file
|
* Loads book infos from an epub file
|
||||||
|
@ -56,8 +57,9 @@ class BookInfos
|
||||||
$this->mDescription = $epub->Description();
|
$this->mDescription = $epub->Description();
|
||||||
$this->mSubjects = $epub->Subjects();
|
$this->mSubjects = $epub->Subjects();
|
||||||
$this->mCover = $epub->getCoverItem();
|
$this->mCover = $epub->getCoverItem();
|
||||||
$this->mSerie = $epub->Serie();
|
$this->mIsbn = $epub->ISBN();
|
||||||
$this->mSerieIndex = $epub->SerieIndex();
|
$this->mRights = $epub->Copyright();
|
||||||
|
$this->mPublisher = $epub->Publisher();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,11 +42,19 @@ class CsvExport extends BaseExport
|
||||||
$info = '';
|
$info = '';
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
foreach ($value as $value1) {
|
foreach ($value as $value1) {
|
||||||
|
// Escape quotes
|
||||||
|
if (strpos($value1, '\'') !== false) {
|
||||||
|
$value1 = '\'' . str_replace('\'', '\'\'', $value1) . '\'';
|
||||||
|
}
|
||||||
$text .= $value1 . self::CsvSeparator;
|
$text .= $value1 . self::CsvSeparator;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
// Escape quotes
|
||||||
|
if (strpos($value, '\'') !== false) {
|
||||||
|
$value = '\'' . str_replace('\'', '\'\'', $value) . '\'';
|
||||||
|
}
|
||||||
$info = $value;
|
$info = $value;
|
||||||
}
|
}
|
||||||
$text .= $info . self::CsvSeparator;
|
$text .= $info . self::CsvSeparator;
|
||||||
|
|
Loading…
Reference in a new issue