If we update metadata then add the calibre uuid.

This commit is contained in:
Sébastien Lucas 2013-01-31 14:44:48 +01:00
parent 6c5aed67b7
commit d1ce53087f
2 changed files with 10 additions and 0 deletions

View File

@ -313,6 +313,7 @@ class Book extends Base {
$epub->Language ($this->getLanguages ());
$epub->Description ($this->getComment (false));
$epub->Subjects ($this->getTagsName ());
$epub->Calibre ($this->uuid);
$se = $this->getSerie ();
if (!is_null ($se)) {
$epub->Serie ($se->name);

View File

@ -259,6 +259,15 @@ class EPub {
public function Amazon($amazon=false){
return $this->getset('dc:identifier',$amazon,'opf:scheme','AMAZON');
}
/**
* Set or get the Calibre UUID of the book
*
* @param string $uuid
*/
public function Calibre($uuid=false){
return $this->getset('dc:identifier',$uuid,'opf:scheme','calibre');
}
/**
* Set or get the Serie of the book