From 75ef304824071ec1373da3def79e96460ad7bbc4 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Sun, 1 Dec 2024 18:35:48 -0600 Subject: [PATCH] Add more books to PD Day 2025 --- lib/Constants.php | 2 +- www/blog/public-domain-day-2025.php | 21 ++++++++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/lib/Constants.php b/lib/Constants.php index 6c71970a..410c797b 100644 --- a/lib/Constants.php +++ b/lib/Constants.php @@ -107,6 +107,7 @@ const DONATION_DRIVE_COUNTER_END = new DateTimeImmutable('May 8, 2022 23:59:00', const PD_DAY_YEAR = 2025; const PD_DAY_DRAFT_PATH = '/standardebooks.org/drafts/' . PD_DAY_YEAR; +// These books will have placeholder URLs enabled, which are useful for things like the PDR Public Domain Advent Calendar. const PD_DAY_EBOOKS = [ EBOOKS_IDENTIFIER_PREFIX . 'graham-greene/the-man-within' => ['author' => 'Graham Greene', 'title' => 'The Man Within'], EBOOKS_IDENTIFIER_PREFIX . 'c-s-forester/brown-on-resolution' => ['author' => 'C. S. Forester', 'title' => 'Brown on Resolution'], @@ -124,5 +125,4 @@ const PD_DAY_EBOOKS = [ EBOOKS_IDENTIFIER_PREFIX . 'thomas-wolfe/look-homeward-angel' => ['author' => 'Thomas Wolfe', 'title' => 'Look Homeward, Angel'], EBOOKS_IDENTIFIER_PREFIX . 'lloyd-c-douglas/magnificent-obsession' => ['author' => 'Lloyd C. Dougals', 'title' => 'Magnificent Obsession'], EBOOKS_IDENTIFIER_PREFIX . 'edith-wharton/hudson-river-bracketed' => ['author' => 'Edith Wharton', 'title' => 'Hudson River Bracketed'], - EBOOKS_IDENTIFIER_PREFIX . 'calvin-coolidge/the-autobiography-of-calvin-coolidge' => ['author' => 'Calvin Coolidge', 'title' => 'The Autobiography of Calvin Coolidge'] ]; diff --git a/www/blog/public-domain-day-2025.php b/www/blog/public-domain-day-2025.php index a997c8f6..a783d584 100644 --- a/www/blog/public-domain-day-2025.php +++ b/www/blog/public-domain-day-2025.php @@ -5,19 +5,22 @@ $identifiers = [ 'url:https://standardebooks.org/ebooks/william-faulkner/the-sound-and-the-fury', 'url:https://standardebooks.org/ebooks/erich-maria-remarque/all-quiet-on-the-western-front/a-w-wheen', 'url:https://standardebooks.org/ebooks/ernest-hemingway/a-farewell-to-arms', + 'url:https://standardebooks.org/ebooks/mahatma-gandhi/the-story-of-my-experiments-with-truth/mahadev-desai', 'url:https://standardebooks.org/ebooks/john-steinbeck/cup-of-gold', 'url:https://standardebooks.org/ebooks/dashiell-hammett/red-harvest', 'url:https://standardebooks.org/ebooks/sinclair-lewis/dodsworth', 'url:https://standardebooks.org/ebooks/oliver-la-farge/laughing-boy', - 'url:https://standardebooks.org/ebooks/graham-greene/the-man-within', 'url:https://standardebooks.org/ebooks/calvin-coolidge/the-autobiography-of-calvin-coolidge', + 'url:https://standardebooks.org/ebooks/graham-greene/the-man-within', + 'url:https://standardebooks.org/ebooks/edith-wharton/hudson-river-bracketed', 'url:https://standardebooks.org/ebooks/lloyd-c-douglas/magnificent-obsession', - 'url:https://standardebooks.org/ebooks/josephine-tey/the-man-in-the-queue', - 'url:https://standardebooks.org/ebooks/john-buchan/the-courts-of-the-morning', 'url:https://standardebooks.org/ebooks/j-b-priestley/the-good-companions', + 'url:https://standardebooks.org/ebooks/thomas-wolfe/look-homeward-angel', 'url:https://standardebooks.org/ebooks/dashiell-hammett/the-dain-curse', 'url:https://standardebooks.org/ebooks/c-s-forester/brown-on-resolution', - 'url:https://standardebooks.org/ebooks/arthur-conan-doyle/the-maracot-deep' + 'url:https://standardebooks.org/ebooks/john-buchan/the-courts-of-the-morning', + 'url:https://standardebooks.org/ebooks/arthur-conan-doyle/the-maracot-deep', + 'url:https://standardebooks.org/ebooks/josephine-tey/the-man-in-the-queue', ]; $ebooks = Db::Query('SELECT * from Ebooks where Identifier in ' . Db::CreateSetSql($identifiers), $identifiers, Ebook::class); @@ -76,7 +79,15 @@ foreach($ebooks as $ebook){ case 'url:https://standardebooks.org/ebooks/arthur-conan-doyle/the-maracot-deep': $description = '

While investigating the deepest part of the Atlantic Ocean, a team led by Dr. Maracot is cut off from their ship and hurled to the bottom of the ocean. There, they find themselves in the remnants of the ancient civilization of Atlantis.

Though Doyle is most famous for his Sherlock Holmes stories, in which a brilliant logician uses reason and deduction to solve crime, in later years he became deeply spiritual. This novel, written just a year before his death, combines his interest in science and reason with his new spiritual outlook.

'; break; - + case 'url:https://standardebooks.org/ebooks/edith-wharton/hudson-river-bracketed': + $description = '

Vance Weston is a young Midwestern man looking to make his way in the world of literature. He gets his chance when he visits some relatives in New York, caretakers of a house in the titular Hudson River Bracketed style.

Weston is a boy of little means; perhaps it’s this vast gulf between the character’s life and Edith Wharton’s own life that allowed her to feel more free to write in many semi-autobiographical details. In any case, she considered Hudson River Bracketed to be her finest novel, and went so far as to write a sequel in 1932.'; + break; + case 'url:https://standardebooks.org/ebooks/mahatma-gandhi/the-story-of-my-experiments-with-truth/mahadev-desai': + $description = '

Mahatma Gandhi, father of the nation to post-colonial India, writes the story of his early life through 1921. He covers his childhood and his parents, his travels and his experiences with prejudice, how his interest in political activity and nonviolence developed throughout the years, and more. Despite this detailed treatment of his life, Gandhi asserts in the introduction that his purpose was not to write a “real autobiography,” but rather to “tell the story of my experiments with truth, and as my life consist of nothing but experiments.”

'; + break; + case 'url:https://standardebooks.org/ebooks/thomas-wolfe/look-homeward-angel'; + $description = '

Look Homeward, Angel is Thomas Wolfe’s first novel, and the one on which his considerable fame as a master of the American autobiographical novel rests. The book covers the youth of Eugene Grant, a young man living in North Carolina, and widely considered to be a direct stand-in for Wolfe himself. It was a commercial and critical success, securing Wolfe’s reputation as one of the most important writers in the Southern Renaissance.

'; + break; } $ebooksWithDescriptions[array_search($ebook->Identifier, $identifiers)] = ['ebook' => $ebook, 'description' => $description];