Epub loader:
Add Cops feed loader Typo: Change cvs_export to csv_export Rename config.php file to epub-loader-config.php Config: Add app_name, admin_email
This commit is contained in:
parent
fce60d4079
commit
35bbf55e19
7 changed files with 56 additions and 26 deletions
60
resources/epub-loader/app/epub-loader-config.php.example
Normal file
60
resources/epub-loader/app/epub-loader-config.php.example
Normal file
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
/**
|
||||
* Epub loader application config
|
||||
*
|
||||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
* @author Didier Corbière <didier.corbiere@opale-concept.com>
|
||||
*/
|
||||
|
||||
$gConfig = array();
|
||||
|
||||
/**
|
||||
* Application name
|
||||
*/
|
||||
$gConfig['app_name'] = 'Epub loader';
|
||||
|
||||
/**
|
||||
* Admin email
|
||||
*/
|
||||
$gConfig['admin_email'] = 'didier.corbiere@opale-concept.com';
|
||||
|
||||
/**
|
||||
* Cops directory
|
||||
*
|
||||
* This is the base path of Cops library
|
||||
*/
|
||||
$gConfig['cops_directory'] = dirname(dirname(dirname(__DIR__)));
|
||||
if (!is_dir($gConfig['cops_directory'])) {
|
||||
die ('Incorrect Cops directory: ' . $gConfig['cops_directory']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create Calibre databases ?
|
||||
*
|
||||
* If true: databases are removed and recreated before loading ebooks
|
||||
* If false: append ebooks into databases
|
||||
*/
|
||||
$gConfig['create_db'] = true;
|
||||
|
||||
/**
|
||||
* Databases infos
|
||||
*
|
||||
* For each database:
|
||||
* name: The database name to display
|
||||
* db_path: The path where to create the database
|
||||
* epub_path: The path where to look for the epub files to load
|
||||
* pdf_path: The path where to look for pdf files
|
||||
*/
|
||||
$gConfig['databases'] = array();
|
||||
$gConfig['databases'][] = array('name' => 'Littérature classique', 'db_path' => '/opt/ebooks/calibre/demo', 'epub_path' => '/opt/ebooks/epub/demo', 'pdf_path' => '');
|
||||
$gConfig['databases'][] = array('name' => 'Bibliothèque numérique romande', 'db_path' => '/opt/ebooks/calibre/bnr', 'epub_path' => '/opt/ebooks/epub/bnr', 'pdf_path' => '');
|
||||
$gConfig['databases'][] = array('name' => 'La Bibliothèque d\'Ebooks', 'db_path' => '/opt/ebooks/calibre/bibebook', 'epub_path' => '/opt/ebooks/epub/bibebook', 'pdf_path' => '');
|
||||
|
||||
/**
|
||||
* Available actions
|
||||
*/
|
||||
$gConfig['actions'] = array();
|
||||
$gConfig['actions']['csv_export'] = 'Csv export';
|
||||
$gConfig['actions']['db_load'] = 'Create database';
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue