diff --git a/README.md b/README.md index c25611f5..9e59173d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,8 @@ Wikisource export is a tool for exporting Wikisource page in many format like ep Installation ============ -You have only to download the files and use it with PHP 5.3 or more and for ODT export with XLS. +You have to download the files and use it with PHP 5.3 or more and for ODT export with XLS. +You have to create a temp folder in the root of directories. Composition =========== diff --git a/book/Book.php b/book/Book.php index eb0172a3..717320c7 100644 --- a/book/Book.php +++ b/book/Book.php @@ -48,4 +48,9 @@ class Book extends Page { * @type array */ public $pictures = array(); + + /** + * list of contributors of the book array('PSEUDO' => array('flags' => array(), 'count' => integer)) + */ + public $credits = array(); } diff --git a/book/BookProvider.php b/book/BookProvider.php index f3a3418b..2b02638a 100644 --- a/book/BookProvider.php +++ b/book/BookProvider.php @@ -91,7 +91,7 @@ public function get($title, $isMetadata = false) { $this->curl_async->waitForKey($keyCreditImage); } - $credit_html = $this->mergeCredit(); + $book->credits = $this->mergeCredit(); } $book->pictures = $pictures; @@ -271,10 +271,7 @@ protected function mergeCredit() { } } uasort($credit, "cmp_credit"); - $html = "