Commit graph

1671 commits

Author SHA1 Message Date
Alex Cabal
8546039b97 Comment formatting 2024-11-15 21:40:56 -06:00
Alex Cabal
90b70b3235 Refactor feed functions out of Library and add some enums 2024-11-15 21:13:35 -06:00
Alex Cabal
d54d3357b1 Update wanted ebooks list 2024-11-11 16:19:54 -06:00
Alex Cabal
b167f7dabb Remove National Museum in Warsaw as an approved source 2024-11-11 14:48:09 -06:00
Alex Cabal
d4c7703cf0 Restructure how incorrect ebook URLs are redirected 2024-11-11 13:59:45 -06:00
Alex Cabal
db35e380c0 Fix newsletter type hints 2024-11-11 11:21:28 -06:00
Alex Cabal
ec0b81817d Restructure some files to match new URL structure 2024-11-11 11:17:04 -06:00
Alex Cabal
b7b63a4be5 Refactor functions out of Library 2024-11-10 23:05:31 -06:00
Alex Cabal
1449148989 Switch logged in user to static typed variable instead of in $GLOBALS 2024-11-10 23:05:31 -06:00
Alex Cabal
acb30b897c Add PropertyFromHttp trait and update codebase to use new pattern 2024-11-10 22:23:43 -06:00
Alex Cabal
c35c47b793 Add DateTimeFormat enum 2024-11-08 16:41:15 -06:00
Alex Cabal
be5574eaec Move enums into their own namespace 2024-11-08 16:34:21 -06:00
Alex Cabal
06b82cdaaa Fix broken updated timestamps in OPDS feeds, and fix and add some type hints. 2024-11-08 12:43:47 -06:00
Alex Cabal
d03d9782d1 Fixes for PD Day placeholder ebooks 2024-11-07 20:15:20 -06:00
Alex Cabal
e234a71968 Update wanted ebooks list 2024-11-06 11:30:41 -06:00
Alex Cabal
8f17f39e1b Clean up some PD day code 2024-11-05 16:01:44 -06:00
Alex Cabal
163ada3b09 Add placeholders for public domain day ebooks 2024-11-04 21:17:09 -06:00
Alex Cabal
60f0ea16cb Formatting tweaks 2024-11-04 13:31:17 -06:00
Mike Colagrosso
9a4da8f961 Fix PHPStan errors for CollectionType enum
Use the `value` property of PHP enums to get the underlying string for functions that expect a string.

Followup to #392
2024-11-04 13:16:56 -06:00
Mike Colagrosso
6c8e819316 Implement OpenSearch feed search with FilterEbooks 2024-11-04 13:16:56 -06:00
Mike Colagrosso
807e8410b4 Use array shapes in the PHPDoc
This makes the extra documentation unnecessary
2024-11-04 13:16:56 -06:00
Mike Colagrosso
989dcab9f0 Implement FilterEbooks via DB 2024-11-04 13:16:56 -06:00
Mike Colagrosso
44dc65005d Query Contributors table for GetEbooksByAuthor() 2024-11-04 13:16:56 -06:00
Mike Colagrosso
2d5e66f2f2 Get carousel books from the DB 2024-11-04 13:16:56 -06:00
Mike Colagrosso
ee29c526f8 Add a CollectionMembership class 2024-11-04 13:16:56 -06:00
Mike Colagrosso
c85db527cf Get ebook from DB for downloads 2024-11-04 13:16:56 -06:00
Mike Colagrosso
415faeb19d Remove unused import that should have been in #371 2024-11-04 13:16:56 -06:00
Mike Colagrosso
1fd3688621 Use Ebook::GetByIdentifier() to read ebooks 2024-11-04 13:16:56 -06:00
Mike Colagrosso
b176a68d4d Replace TextSinglePageSizeNumber and TextSinglePageSizeUnit with TextSinglePageSizeFormatted 2024-11-04 13:16:56 -06:00
Mike Colagrosso
2098b265a8 Rename the constructor Ebook::__construct() to static Ebook::FromFilesystem()
Also added `GetFoo()` methods for all the derived properties like `GetUrl()`, `GetHasDownloads()`, etc. Removed that logic from the constructor so that it's reusable in `Ebook::FromFilesystem()` and `Ebook::GetByIdentifier()`
2024-11-04 13:16:56 -06:00
Mike Colagrosso
f605a4df60 Rename Created and Updated in PHP code to EbookCreated and EbookUpdated to match the schema 2024-11-04 13:16:56 -06:00
Mike Colagrosso
41b130195f Change size checks (like bigger than 3 MB) to use TextSinglePageByteCount, not number and units 2024-11-04 13:16:56 -06:00
Alex Cabal
f97539f399 Redirect an artwork if it's found under an artist's alternate name. 2024-11-03 15:15:07 -06:00
Robin Whittleton
ef2356df99 Note that our newsletter sign-up page isn’t accessible 2024-10-28 11:12:14 -05:00
Hendrik
50bfb82a65 Add some spreadsheets and change links of others 2024-10-25 22:25:05 -05:00
erin
683117473d Add Nella Larsen Short Fiction spreadsheet 2024-10-25 11:44:05 -05:00
EmmaSweeney
35b4c2ce88 Correct figure in play how-to guide 2024-10-24 18:53:34 -04:00
Alex Cabal
028c8237a5 Add short fiction spreadsheet 2024-10-24 12:31:01 -05:00
EmmaSweeney
8d70ef1be1 Update play how-to guide 2024-10-23 22:28:22 -04:00
Anthony Ryan
4a8ebb411b Losslessly Optimize PNG images
By using Efficient-Compresion-Tool we can reduce image sizes by 762.25KB (5.72%)
without changing the visual appearance.
2024-10-22 15:40:59 -05:00
Alex Cabal
b83d04c265 Update wanted ebooks list 2024-10-21 15:47:04 -05:00
Alex Cabal
47a7945167 Don't print PDF URL when downloading scans 2024-10-21 15:33:53 -05:00
Alex Cabal
38fdd7c923 Update wanted ebooks list 2024-10-21 11:36:41 -05:00
Alex Cabal
ac6d8a2bf8 Fix incorrect link in spreadsheets page 2024-10-20 20:46:48 -05:00
Emma Sweeney
5b514a50b5
Update wanted ebooks list 2024-10-20 15:42:01 -04:00
partev
f901ee89e0 replace twitter.com with x.com 2024-10-19 12:21:19 -05:00
Alex Cabal
761f994ca8 Update wanted ebooks list 2024-10-18 11:48:37 -05:00
Alex Cabal
19cf14c1aa Add automatic donation drives 2024-10-17 11:58:25 -05:00
Ainsley Ellis
d8ed44e20e Normalise capitalisation of LoI 2024-10-16 14:21:44 -05:00
Ricardo Elisiário
790bb9f5dc Update report-errors.php 2024-10-16 11:01:08 -05:00