Commit graph

1486 commits

Author SHA1 Message Date
Alex Cabal
84f4b2b0bf Add donation drive aside to download page 2024-11-25 12:03:26 -06:00
Alex Cabal
908b02e65b Update wanted ebooks list 2024-11-25 11:46:57 -06:00
Alex Cabal
86f3ac74be Tweak donation page style 2024-11-25 10:40:52 -06:00
Alex Cabal
186b8ac1a6 Fix some styles 2024-11-23 15:00:21 -06:00
Alex Cabal
cf36e6891c Update wanted ebooks list 2024-11-23 14:30:11 -06:00
Alex Cabal
8ad3291a35 Add admin form to view and edit users 2024-11-23 14:30:11 -06:00
Anthony J. Bentley
32607fb220 Use imperative mood 2024-11-23 10:45:25 -06:00
Alex Cabal
84f9fc5a5c Update wanted ebooks list 2024-11-22 11:47:42 -06:00
Alex Cabal
8ccfc8ed6b Update wanted ebooks list 2024-11-21 10:00:09 -06:00
Alex Cabal
5bb681fe5c Update wanted ebooks list 2024-11-20 19:16:19 -06:00
Alex Cabal
11d9d0f44a Tweak a session variable name and update comments 2024-11-20 16:42:24 -06:00
Alex Cabal
3050ab7219 Use HTTP code enums instead of ints 2024-11-20 14:52:05 -06:00
Alex Cabal
4fb6331aca Update wanted ebooks list 2024-11-19 15:11:15 -06:00
Alex Cabal
5c7a924be2 Add Bluesky and Mastadon accounts, and add some Mastodon metadata to header 2024-11-18 13:41:45 -06:00
Alex Cabal
05ac7884e9 Convert artwork filters to enums 2024-11-15 23:11:01 -06:00
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