Some comments and config changes

This commit is contained in:
Marsender 2013-09-30 22:29:27 +01:00
parent 6964445c8f
commit 89a27f10b8
5 changed files with 10 additions and 10 deletions

View file

@ -1,6 +1,6 @@
<?php <?php
/** /**
* Epub loader action: export ebooks info in a csv files * Epub loader application action: export ebooks info in a csv files
* *
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Didier Corbière <didier.corbiere@opale-concept.com> * @author Didier Corbière <didier.corbiere@opale-concept.com>

View file

@ -1,6 +1,6 @@
<?php <?php
/** /**
* Epub loader action: load ebooks into calibre databases * Epub loader application action: load ebooks into calibre databases
* *
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Didier Corbière <didier.corbiere@opale-concept.com> * @author Didier Corbière <didier.corbiere@opale-concept.com>

View file

@ -1,6 +1,6 @@
<?php <?php
/** /**
* Epub loader config * Epub loader application config
* *
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Didier Corbière <didier.corbiere@opale-concept.com> * @author Didier Corbière <didier.corbiere@opale-concept.com>
@ -32,10 +32,9 @@ $gConfig['create_db'] = true;
* epub_path: The path where to look for the epub files to load * epub_path: The path where to look for the epub files to load
*/ */
$gConfig['databases'] = array(); $gConfig['databases'] = array();
$gConfig['databases'][] = array('name' => 'Littérature classique', 'db_path' => '/opt/atoll/opds/demo', 'epub_path' => '/opt/atoll/external/demo'); $gConfig['databases'][] = array('name' => 'Littérature classique', 'db_path' => '/opt/ebooks/calibre/demo', 'epub_path' => '/opt/ebooks/epub/demo');
$gConfig['databases'][] = array('name' => 'Bibliothèque numérique romande', 'db_path' => '/opt/atoll/opds/bnr', 'epub_path' => '/opt/atoll/external/bnr'); $gConfig['databases'][] = array('name' => 'Bibliothèque numérique romande', 'db_path' => '/opt/ebooks/calibre/bnr', 'epub_path' => '/opt/ebooks/epub/bnr');
$gConfig['databases'][] = array('name' => 'La Bibliothèque d\'Ebooks', 'db_path' => '/opt/atoll/opds/bibebook', 'epub_path' => '/opt/atoll/external/bibebook'); $gConfig['databases'][] = array('name' => 'La Bibliothèque d\'Ebooks', 'db_path' => '/opt/ebooks/calibre/bibebook', 'epub_path' => '/opt/ebooks/epub/bibebook');
$gConfig['databases'][] = array('name' => 'La Bibliothèque électronique du Québec', 'db_path' => '/opt/atoll/opds/beq', 'epub_path' => '/opt/atoll/external/beq');
/** /**
* Available actions * Available actions
@ -43,3 +42,5 @@ $gConfig['databases'][] = array('name' => 'La Bibliothèque électronique du Qu
$gConfig['actions'] = array(); $gConfig['actions'] = array();
$gConfig['actions']['cvs_export'] = 'Cvs export'; $gConfig['actions']['cvs_export'] = 'Cvs export';
$gConfig['actions']['db_load'] = 'Create database'; $gConfig['actions']['db_load'] = 'Create database';
?>

View file

@ -1,5 +1,4 @@
<?php <?php
// Spécifie l'encodage
header('Content-type: text/html; charset=utf-8'); header('Content-type: text/html; charset=utf-8');
?> ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

View file

@ -37,14 +37,14 @@ if (!is_dir($gConfig['cops_directory'])) {
// Include Calibre database loader class // Include Calibre database loader class
$fileName = $gConfig['cops_directory'] . '/resources/epub-loader/CalibreDbLoader.class.php'; $fileName = $gConfig['cops_directory'] . '/resources/epub-loader/CalibreDbLoader.class.php';
if (!file_exists($fileName)) { if (!file_exists($fileName)) {
die ('Incorrect include file: ' . $gConfig['cops_directory']); die ('Incorrect include file: ' . $fileName);
} }
require_once($fileName); require_once($fileName);
// Include book export class // Include book export class
$fileName = $gConfig['cops_directory'] . '/resources/epub-loader/BookExport.class.php'; $fileName = $gConfig['cops_directory'] . '/resources/epub-loader/BookExport.class.php';
if (!file_exists($fileName)) { if (!file_exists($fileName)) {
die ('Incorrect include file: ' . $gConfig['cops_directory']); die ('Incorrect include file: ' . $fileName);
} }
require_once($fileName); require_once($fileName);