Add PD_STRING constant

This commit is contained in:
Alex Cabal 2022-05-10 11:22:59 -05:00
parent 929371b82d
commit 34d00a582d
4 changed files with 6 additions and 5 deletions

View file

@ -73,6 +73,7 @@ const SOURCE_FADED_PAGE = 9;
const AVERAGE_READING_WORDS_PER_MINUTE = 275; const AVERAGE_READING_WORDS_PER_MINUTE = 275;
define('PD_YEAR', intval(gmdate('Y')) - 96); define('PD_YEAR', intval(gmdate('Y')) - 96);
define('PD_STRING', 'January 1, ' . (PD_YEAR + 1));
define('DONATION_HOLIDAY_ALERT_ON', time() > strtotime('November 15, ' . gmdate('Y')) || time() < strtotime('January 7, ' . gmdate('Y'))); define('DONATION_HOLIDAY_ALERT_ON', time() > strtotime('November 15, ' . gmdate('Y')) || time() < strtotime('January 7, ' . gmdate('Y')));
define('DONATION_ALERT_ON', DONATION_HOLIDAY_ALERT_ON || rand(1, 4) == 2); define('DONATION_ALERT_ON', DONATION_HOLIDAY_ALERT_ON || rand(1, 4) == 2);

View file

@ -7,7 +7,7 @@ require_once('Core.php');
<h1>Collections Policy</h1> <h1>Collections Policy</h1>
<h2 class="miniheader">Or, ebooks we do and dont accept.</h2> <h2 class="miniheader">Or, ebooks we do and dont accept.</h2>
</hgroup> </hgroup>
<p>Standard Ebooks only works on books that have entered the U.S. public domain due to copyright expiration. Generally this means a book must have been published before January 1, <?= PD_YEAR + 1 ?>, though there are exceptions for works from later periods that didnt follow copyright formalities. For more information on determining the copyright status of a work in the U.S., see <a href="https://www.gutenberg.org/help/copyright.html">Project Gutenbergs Copyright How-To</a>.</p> <p>Standard Ebooks only works on books that have entered the U.S. public domain due to copyright expiration. Generally this means a book must have been published before <?= PD_STRING ?>, though there are exceptions for works from later periods that didnt follow copyright formalities. For more information on determining the copyright status of a work in the U.S., see <a href="https://www.gutenberg.org/help/copyright.html">Project Gutenbergs Copyright How-To</a>.</p>
<p>Note that a book that is in the U.S. public domain may not be in the public domain of other countries, and vice versa.</p> <p>Note that a book that is in the U.S. public domain may not be in the public domain of other countries, and vice versa.</p>
<h2>Types of ebooks we do accept</h2> <h2>Types of ebooks we do accept</h2>
<ul> <ul>

View file

@ -48,11 +48,11 @@ require_once('Core.php');
</li> </li>
</ul> </ul>
<p>Internet Archive has the widest amount of scans, with the most permissive viewing and lending policy. Hathi Trust has many of the same scans as Google Books, but with a more permissive viewing policy. Google Books restricts readers based on IP address and does a poor job of implementing per-country copyright law, so people outside of the U.S. may not be able to access scans of books that are in the public domain of their country.</p> <p>Internet Archive has the widest amount of scans, with the most permissive viewing and lending policy. Hathi Trust has many of the same scans as Google Books, but with a more permissive viewing policy. Google Books restricts readers based on IP address and does a poor job of implementing per-country copyright law, so people outside of the U.S. may not be able to access scans of books that are in the public domain of their country.</p>
<p>Each of those sources allows you to filter results by publication date, so make sure you select a maximum publication date of December 31, <?= PD_YEAR ?> (in other words, everything published before January 1, <?= PD_YEAR + 1 ?>) to ensure theyre in the U.S. public domain.</p> <p>Each of those sources allows you to filter results by publication date, so make sure you select a maximum publication date of December 31, <?= PD_YEAR ?> (in other words, everything published before <?= PD_STRING ?>) to ensure theyre in the U.S. public domain.</p>
<p>Please keep the following important notes in mind when searching for page scans:</p> <p>Please keep the following important notes in mind when searching for page scans:</p>
<ul> <ul>
<li> <li>
<p>Make sure the scans you find are <em>published before January 1, <?= PD_YEAR + 1 ?>.</em> You <em>must verify the copyright page in the page scans</em> before proceeding.</p> <p>Make sure the scans you find are <em>published before <?= PD_STRING ?>.</em> You <em>must verify the copyright page in the page scans</em> before proceeding.</p>
</li> </li>
<li> <li>
<p>Often youll find different editions, published at different times by different publishers, for the same book. Its worth the effort to quickly browse through each different one to get an idea of the kinds of changes the different publishers introduced. Maybe one edition is better than another!</p> <p>Often youll find different editions, published at different times by different publishers, for the same book. Its worth the effort to quickly browse through each different one to get an idea of the kinds of changes the different publishers introduced. Maybe one edition is better than another!</p>
@ -570,7 +570,7 @@ proceed to seal up my confession, I bring the life of that unhappy Henry Jekyll
<p>The image you pick should be a “fine art” oil painting so that all Standard Ebooks have a consistent cover style. This is actually easier than you think, because it turns out most public domain artwork is from the era of fine art.</p> <p>The image you pick should be a “fine art” oil painting so that all Standard Ebooks have a consistent cover style. This is actually easier than you think, because it turns out most public domain artwork is from the era of fine art.</p>
</li> </li>
<li> <li>
<p>You must provide proof of public domain status to the S.E. Editor-in-Chief in the form of a page scan of the painting from a book published before January 1, <?= PD_YEAR + 1 ?>, and the Editor-in-Chief must approve your selection before you can commit it to your repository.</p> <p>You must provide proof of public domain status to the S.E. Editor-in-Chief in the form of a page scan of the painting from a book published before <?= PD_STRING ?>, and the Editor-in-Chief must approve your selection before you can commit it to your repository.</p>
</li> </li>
<li> <li>
<p>The Standard Ebooks Editor-in-Chief has the final say on the cover image you pick, and it may be rejected for, among other things, poor public domain status research, being too low resolution, not fitting in with the “fine art” style, or being otherwise inappropriate for your ebook.</p> <p>The Standard Ebooks Editor-in-Chief has the final say on the cover image you pick, and it may be rejected for, among other things, poor public domain status research, being too low resolution, not fitting in with the “fine art” style, or being otherwise inappropriate for your ebook.</p>

View file

@ -4,7 +4,7 @@ require_once('Core.php');
<main> <main>
<article id="a-basic-standard-ebooks-source-folder"> <article id="a-basic-standard-ebooks-source-folder">
<h1>Uncategorized art books</h1> <h1>Uncategorized art books</h1>
<p>You may find these art books published before January 1, <?= PD_YEAR + 1 ?> useful as you conduct cover art research.</p> <p>You may find these art books published before <?= PD_STRING ?> useful as you conduct cover art research.</p>
<ul> <ul>
<li><a href="https://books.google.com/books?id=PBpAAAAAYAAJ">The History of Modern Painting</a></li> <li><a href="https://books.google.com/books?id=PBpAAAAAYAAJ">The History of Modern Painting</a></li>
<li><a href="https://books.google.com/books?id=Q3YoAAAAYAAJ">Art Studies for Schools: Or, Hints on the Use of Reproductions of High Art</a></li> <li><a href="https://books.google.com/books?id=Q3YoAAAAYAAJ">Art Studies for Schools: Or, Hints on the Use of Reproductions of High Art</a></li>