diff --git a/lib/AtomFeed.php b/lib/AtomFeed.php index b83910d5..534efb52 100644 --- a/lib/AtomFeed.php +++ b/lib/AtomFeed.php @@ -47,7 +47,7 @@ class AtomFeed extends Feed{ foreach($this->Entries as $entry){ $obj = new StdClass(); if(is_a($entry, 'Ebook')){ - $obj->Updated = $entry->Modified->format('Y-m-d\TH:i:s\Z'); + $obj->Updated = $entry->Updated->format('Y-m-d\TH:i:s\Z'); $obj->Id = SITE_URL . $entry->Url; } else{ diff --git a/lib/Ebook.php b/lib/Ebook.php index ca083a0d..d7e6ddf4 100644 --- a/lib/Ebook.php +++ b/lib/Ebook.php @@ -54,7 +54,7 @@ class Ebook{ public $ContributorsHtml; public $TitleWithCreditsHtml = ''; public $Created; - public $Modified; + public $Updated; public $TextUrl; public $TextSinglePageUrl; public $TocEntries = null; // A list of non-Roman ToC entries ONLY IF the work has the 'se:is-a-collection' metadata element, null otherwise @@ -191,7 +191,7 @@ class Ebook{ $modifiedDate = $xml->xpath('/package/metadata/meta[@property="dcterms:modified"]'); if($modifiedDate !== false && sizeof($modifiedDate) > 0){ - $this->Modified = new DateTime((string)$modifiedDate[0]); + $this->Updated = new DateTime((string)$modifiedDate[0]); } // Get SE tags diff --git a/scripts/generate-feeds b/scripts/generate-feeds index fa04bf38..8dab2ea6 100755 --- a/scripts/generate-feeds +++ b/scripts/generate-feeds @@ -57,7 +57,7 @@ foreach($contentFiles as $path){ $ebook = new Ebook($ebookWwwFilesystemPath); - $allEbooks[$ebook->Modified->format('Y-m-d\TH:i:s\Z') . ' ' . $ebook->Identifier] = $ebook; + $allEbooks[$ebook->Updated->format('Y-m-d\TH:i:s\Z') . ' ' . $ebook->Identifier] = $ebook; $newestEbooks[$ebook->Created->format('Y-m-d\TH:i:s\Z') . ' ' . $ebook->Identifier] = $ebook; foreach($ebook->Tags as $tag){ diff --git a/templates/AtomFeedEntry.php b/templates/AtomFeedEntry.php index 397571a9..969dfdbf 100644 --- a/templates/AtomFeedEntry.php +++ b/templates/AtomFeedEntry.php @@ -8,7 +8,7 @@ Created->format('Y-m-d\TH:i:s\Z') ?> - Modified->format('Y-m-d\TH:i:s\Z') ?> + Updated->format('Y-m-d\TH:i:s\Z') ?> Public domain in the United States. Users located outside of the United States must check their local laws before using this ebook. Original content released to the public domain via the Creative Commons CC0 1.0 Universal Public Domain Dedication. Description) ?> LongDescription) ?> diff --git a/templates/OpdsAcquisitionEntry.php b/templates/OpdsAcquisitionEntry.php index 0d005071..389831ee 100644 --- a/templates/OpdsAcquisitionEntry.php +++ b/templates/OpdsAcquisitionEntry.php @@ -13,7 +13,7 @@ Created->format('Y-m-d\TH:i:s\Z') ?> Created->format('Y-m-d\TH:i:s\Z') ?> - Modified->format('Y-m-d\TH:i:s\Z') ?> + Updated->format('Y-m-d\TH:i:s\Z') ?> Language) ?> Standard Ebooks Public domain in the United States. Users located outside of the United States must check their local laws before using this ebook. Original content released to the public domain via the Creative Commons CC0 1.0 Universal Public Domain Dedication. diff --git a/www/ebooks/ebook.php b/www/ebooks/ebook.php index 6b5696a2..77c08f65 100644 --- a/www/ebooks/ebook.php +++ b/www/ebooks/ebook.php @@ -191,7 +191,7 @@ catch(Exceptions\InvalidEbookException $ex){ - +