diff --git a/Pipfile b/Pipfile new file mode 100644 index 0000000..9534830 --- /dev/null +++ b/Pipfile @@ -0,0 +1,11 @@ +[[source]] +name = "pypi" +url = "https://pypi.org/simple" +verify_ssl = true + +[dev-packages] + +[packages] + +[requires] +python_version = "3.6" diff --git a/_includes/latest_books_template.html b/_includes/latest_books_template.html new file mode 100644 index 0000000..fb35cef --- /dev/null +++ b/_includes/latest_books_template.html @@ -0,0 +1,10 @@ + +
+
+
+ {% include latest_covers.html %} +
+

Some of our latest eBooks Click Here for more latest books!

+
+
+ diff --git a/_includes/latest_covers.html b/_includes/latest_covers.html new file mode 100644 index 0000000..bbc08d8 --- /dev/null +++ b/_includes/latest_covers.html @@ -0,0 +1,37 @@ + + +
+
The Flame Breathers +
The Flame Breathers
+
+
The Life and Surprising Exploits of Jack Sheppard +
The Life and Surprising Exploits of Jack Sheppard
+
+
Cosmic Castaway +
Cosmic Castaway
+
+
Essai sur le commerce +
Essai sur le commerce
+
+
The Undesirable Governess +
The Undesirable Governess
+
+
Citadel of Lost Ships +
Citadel of Lost Ships
+
+
Domestic animals: a story book for children +
Domestic animals: a story book for children
+
+
Savolainen soittaja: Romaani +
Savolainen soittaja: Romaani
+
+
Stranger From Space +
Stranger From Space
+
+
Oridin's Formula +
Oridin's Formula
+ diff --git a/_includes/navbar.html.LOST b/_includes/navbar.html.LOST new file mode 120000 index 0000000..3e949be --- /dev/null +++ b/_includes/navbar.html.LOST @@ -0,0 +1 @@ +/export/sunsite/users/gutenbackend/www/dev/html/browse/navbar.html \ No newline at end of file diff --git a/_includes/new_ebooks_page.html b/_includes/new_ebooks_page.html new file mode 100644 index 0000000..9cbc1ba --- /dev/null +++ b/_includes/new_ebooks_page.html @@ -0,0 +1,659 @@ +Help +
+ +
+ + + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ Help +
+ + +
+
+

+ + +

+ +

+ + +

+ +

+ + +

+ +

+ + + +

+ +

+ + +

+ +

+ + +

+ +

+ + +

+ +

+ +

+
+
+
+
+ + Help + + +
+
+ + diff --git a/_includes/new_ebooks_page_2.html b/_includes/new_ebooks_page_2.html new file mode 100644 index 0000000..e9000c1 --- /dev/null +++ b/_includes/new_ebooks_page_2.html @@ -0,0 +1,36 @@ +
+
+ Help + + +
+
+
+ Yahoo! logo + + + + + +
+ +
+ Google logo + + + + + +
+
+ DuckDuckGo logo + + + + + + +
+
+
+ diff --git a/_includes/old_latestbooks.html b/_includes/old_latestbooks.html new file mode 100644 index 0000000..00610d5 --- /dev/null +++ b/_includes/old_latestbooks.html @@ -0,0 +1,10 @@ + +
+
+
+ {% include latestbooks-template.html %} +
+

Some of our latest eBooks Click Here for more latest books!

+
+
+ diff --git a/_includes/old_latestbooks_template.html b/_includes/old_latestbooks_template.html new file mode 100644 index 0000000..f539cea --- /dev/null +++ b/_includes/old_latestbooks_template.html @@ -0,0 +1,60 @@ + + +
+ A Popular History Of England From the Earliest Times To The Reign Of Queen Victoria; Vol 3 +
+
+ + +
+ The Giant Fish of Florida +
+
+ + +
+ Jean-Christophe Volume 3 (of 4) +
+
+ + +
+ The Ballad of Blaster Bill +
+
+ + +
+ An Essay on the State of England +
+
+ + +
+ Abraham Lincoln's Lost Speech, May 29, 1856 +
+
+ + +
+ Lettres d'un innocent +
+
+ + +
+ The Star of Satan +
+
+ + +
+ Prince Dusty +
+
+ + +
+ Wilhelm Hauffs sämtliche Werke in sechs Bänden. Sechster Band +
+
diff --git a/client b/client new file mode 100644 index 0000000..e69de29 diff --git a/ebooks/results.php b/ebooks/results.php index ea7c6f0..9057169 100644 --- a/ebooks/results.php +++ b/ebooks/results.php @@ -5,10 +5,13 @@ $pagesize = 100; $max_results = 1000; $max_ft_results = 5000; +// gbn 20200203: Need to set this differently than the old site: +set_include_path(get_include_path() . PATH_SEPARATOR . "/public/vhost/g/gutenberg/dev/private/lib/php"); include_once ("pgcat.phh"); $db = $config->db (); -rate_limit (); +// gbn 20200203: not sure where rate_limit is: +// rate_limit (); // userobots (); pageheader ("Search on Titles > Results"); diff --git a/google3c00b5891470e2e3.html b/google3c00b5891470e2e3.html new file mode 100644 index 0000000..953ef36 --- /dev/null +++ b/google3c00b5891470e2e3.html @@ -0,0 +1 @@ +google-site-verification: google3c00b5891470e2e3.html \ No newline at end of file diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..67b6dcd --- /dev/null +++ b/robots.txt @@ -0,0 +1,117 @@ +User-agent: Googlebot-Mobile +Disallow: / + +User-agent: AdsBot-Google +Disallow: / + +User-agent: Yahoo Pipes 2.0 +Disallow: / + +User-agent: AhrefsBot +Disallow: / + +User-agent: asterias +Disallow: / + +User-agent: TurnitinBot +Disallow: / + +User-Agent: Oracle Secure Enterprise Search +Disallow: / + +# User-agent: Baiduspider +# Disallow: / + +# User-agent: Yandex +# Disallow: / + +User-Agent: Mail.RU_Bot +Disallow: / + +User-agent: YisouSpider +Disallow: / + +User-agent: EasouSpider +Disallow: / + +User-agent: Sosospider +Disallow: / + +User-agent: Riddler +Disallow: / + +User-agent: Daumoa +Disallow: / + +User-agent: Exabot +Disallow: / + +User-agent: NerdyBot +Disallow: / + +User-agent: 008 +Disallow: / + +User-agent: ccbot +Disallow: / + +User-agent: discobot +Disallow: / + +User-agent: OmegaSeek +Disallow: / + +User-agent: discoverybot +Disallow: / + +User-agent: MJ12bot +Disallow: / + +User-agent: wotbox +Disallow: / + +User-agent: yacy +Disallow: / + +User-agent: Twitterbot +Disallow: + +User-agent: Blekkobot +Disallow: / + +User-agent: Abonti +Disallow: / + +user-agent: CrystalSemanticsBot +Disallow: / + +User-agent: * +Disallow: /etext +Disallow: /dirs/etext +Disallow: /dirs/1 +Disallow: /dirs/2 +Disallow: /dirs/3 +Disallow: /dirs/4 +Disallow: /dirs/5 +Disallow: /dirs/6 +Disallow: /dirs/7 +Disallow: /dirs/8 +Disallow: /dirs/9 +Disallow: /catalog/world/ # old search engine +Disallow: /ebooks/search # new search engine +Disallow: /ebooks/send/ # dropbox et al. +Disallow: /ratelimiter +Disallow: /zipcat +Disallow: /addresses/ # don't remove, ask webmaster +Disallow: /author/ +Disallow: /internal/ # private +Disallow: /etext/magnet # against brain damaged robots +Disallow: /cache/ # on-the-fly generated files +Disallow: /cdproject/ +Disallow: /w/ # wiki edit pages etc. +Disallow: /wiki/Special:Search +Disallow: /wiki/Special:Random + +Crawl-delay: 5 + +Sitemap: http://www.gutenberg.org/ebooks/sitemaps/ diff --git a/server b/server new file mode 100644 index 0000000..e69de29 diff --git a/site/ebooks/new_ebooks.md b/site/ebooks/new_ebooks.md new file mode 100644 index 0000000..55025b9 --- /dev/null +++ b/site/ebooks/new_ebooks.md @@ -0,0 +1,12 @@ +--- +layout: default +title: Search | Project Gutenberg +permalink: /ebooks/new_ebooks.html +--- + +Search +====== +{% include new_ebooks_page.html %} +{% include navbar.html %} +{% include new_ebooks_page_2.html %} + diff --git a/site/ebooks/new_ebooks_2.md b/site/ebooks/new_ebooks_2.md new file mode 100644 index 0000000..e842ab8 --- /dev/null +++ b/site/ebooks/new_ebooks_2.md @@ -0,0 +1,699 @@ +--- +layout: default +title: Search | Project Gutenberg +permalink: /ebooks/new_ebooks_2.html +--- + +Search +====== +
+Help +
+ +
+ + + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ Help +
+ + +
+
+

+ + +

+ +

+ + +

+ +

+ + +

+ +

+ + + +

+ +

+ + +

+ +

+ + +

+ +

+ + +

+ +

+ +

+
+
+
+
+ + Help + {%- include navbar.html -%} + + Help + + +
+
+
+ Yahoo! logo + + + + + +
+ +
+ Google logo + + + + + +
+
+ DuckDuckGo logo + + + + + + +
+ +
+
+
diff --git a/site/footer_test.md b/site/footer_test.md new file mode 100644 index 0000000..0be7926 --- /dev/null +++ b/site/footer_test.md @@ -0,0 +1,10 @@ +--- +layout: default +title: Free eBooks | Project Gutenberg +permalink: /footer_test.html +--- + +Welcome to Project Gutenberg (public beta test site) +==================================================== + + diff --git a/site/test_index.md b/site/test_index.md new file mode 100644 index 0000000..f14372c --- /dev/null +++ b/site/test_index.md @@ -0,0 +1,74 @@ +--- +layout: default +title: Free eBooks | Project Gutenberg +permalink: /test_index.html +--- + +Welcome to Project Gutenberg (public beta test site) +==================================================== + +**New website available for testing.** This is a new website, undergoing evaluation. There may be occasional outages, as the site is improved. *This is the test and development site. Not all functions are implemented, and not all content has been moved from the [www.gutenberg.org](https://www.gutenberg.org) site yet. See the [new website](/help/new_website) page for information about currently known issues, and how to report problems or suggest changes.* + +After visiting the new website, please consider providing your input and suggestions via an [anonymous online survey](https://docs.google.com/forms/d/e/1FAIpQLSdY8XVj8n5CVpo3Dref2mkiqnK2jmeBJBF0IKntupuxcEeK4g/viewform). + +**Project Gutenberg** is a library of over 60,000 free eBooks. Choose among free epub and Kindle eBooks, download them or read them online. You will find the world's great literature here, with focus on older works for which U.S. copyright has expired. Thousands of volunteers digitized and diligently proofread the eBooks, for you to enjoy. + +{% include latest_books_template.html %} + +**No fee or registration!** Everything from Project Gutenberg is gratis, libre, and completely without cost to readers. If you find Project Gutenberg useful, please consider a small donation, to help Project Gutenberg digitize more books, maintain its online presence, and improve Project Gutenberg programs and offerings. Other ways to help include digitizing, proofreading and formatting, or reporting errors. + +**No special apps needed!** Project Gutenberg eBooks require no special apps to read, just the regular Web browsers or eBook readers that are included with computers and mobile devices. There have been reports of sites that charge fees for custom apps, or for the same eBooks that are freely available from Project Gutenberg. Some of the apps might have worthwhile features, but none are required to enjoy Project Gutenberg eBooks. + +## Find Free eBooks + +- [Search and browse](/ebooks/). By author, title, subject, language, type, popularity, and more. +- [Bookshelves](/ebooks/bookshelf/) of related eBooks. TODO: Implement, possibly by linking to old site, for now. Bookshelf links from bibrec tabs do work, however [example](/ebooks/76). +- [Frequently downloaded](/browse/scores/top): Top 100, or ranked [by popularity](/ebooks/search/?sort_order=downloads). TODO: bibrec links to "also" and "locss" +- [Offline catalogs](/ebooks/offline_catalogs.html): handy eBook listings and metadata to consult offline. +- [Recently added](/ebooks/search/?query=&submit_search=Search&sort_order=release_date). The latest new and updated eBooks. +- Visit [self.gutenberg.org](http://self.gutenberg.org) for free eBooks by contemporary authors. + +## Help and Information + +- [Frequently Asked Questions](/help/faq.html) about Project Gutenberg. +- [Help, How-To and FAQs](/help/): In depth information about many topics. +- [Tablets, phones and eReaders How-To](/help/mobile.html): Using tablets, Kindle, Nook, cell phone, and other mobile devices and readers. + +## How to Help + +- [Distributed Proofreaders](https://www.pgdp.net) welcomes new volunteers. This is the main source of new Project Gutenberg eBooks. Getting started is easy, and just a page a day will help! +- [Fix and improve](/help/errata.html) Project Gutenberg by reporting errors, bugs, typos, and suggesting changes. +- Record audiobooks with our affiliate, [LibriVox](https://librivox.org). + + +## Special Areas + +- [About Project Gutenberg](/about/). +- [Donating to Project Gutenberg](/donate/). +- [Feeds](/ebooks/feeds.html) of new eBooks. +- [Linking to Project Gutenberg](/policy/linking.html) and [roboting or crawling](/policy/robot_access.html) the site. +- [Partners and affiliates](/about/partners_affiliates.html). +- [Permissions, copyright, licensing, and trademark information](/policy/permission.html). +- What does [free eBook](/about/background/free_ebook.html) (No Cost or Freedom?) mean? + +## Terms of Use + +
+Project Gutenberg eBooks may be freely used in the United States because most are not protected by U.S. copyright law. They may not be free of copyright in other countries. Readers outside of the United States must check the copyright terms of their countries before accessing, downloading or redistributing eBooks. We also have a number of copyrighted titles, for which the copyright holder has given permission for unlimited non-commercial worldwide use. +
+ +
+The Project Gutenberg website is for human users only. Use of automated tools to access the website may trigger a block of your access. This site utilizes cookies, captchas and related technologies to help assure the site is maximally available for human users. See full terms of use here. +
+ +## Find Project Gutenberg on social media +- Facebook: [https://www.facebook.com/project.gutenberg](https://www.facebook.com/project.gutenberg) +- Facebook news feed of new eBooks: [https://www.facebook.com/gutenberg.new](https://www.facebook.com/gutenberg.new) +- Twitter [https://twitter.com/gutenberg\_org](https://twitter.com/gutenberg_org) @gutenberg\_org +- Twitter news feed of new eBooks: [https://twitter.com/gutenberg\_new](https://twitter.com/gutenberg_new) @gutenberg\_new + +## Contact Info + +- [Contact Information](/about/contact_information.html): How to get in touch. +- [Mailing lists](https://lists.pglaf.org/): Subscribe to the monthly newsletter. +