Commit graph

81 commits

Author SHA1 Message Date
Alex Cabal
9d1b66d19e Update PHPStan and Safe PHP, and review codebase for further type correctness 2025-02-25 22:41:18 -06:00
Mike Colagrosso
1a71913794 Add a Relevance sort order and improve search
Here's what's in `IndexableText` right now:

1. Title
2. Collections
3. Authors
4. Tags
5. LocSubjects
6. TocEntries

Here is the proposed new ranking:

```
10 * Title +
8 * Authors +
3 * Collections +
IndexableText
```

New indices for existing DBs:

```
ALTER TABLE `Ebooks` ADD COLUMN `IndexableAuthors` text NOT NULL;
ALTER TABLE `Ebooks` ADD COLUMN `IndexableCollections` text NULL;
ALTER TABLE `Ebooks` ADD FULLTEXT `indexSearchTitle` (`Title`);
ALTER TABLE `Ebooks` ADD FULLTEXT `idxSearchAuthors` (`IndexableAuthors`);
ALTER TABLE `Ebooks` ADD FULLTEXT `idxSearchCollections` (`IndexableCollections`);
```
2025-02-13 13:48:39 -06:00
Alex Cabal
13eb02842a Tweak donation banner end date 2025-01-07 10:12:04 -06:00
Alex Cabal
343d92f7c9 Tweak drive ending times 2025-01-06 10:30:08 -06:00
Alex Cabal
bcba5c2192 Remove now-redundant PD placeholders code 2025-01-01 10:05:59 -06:00
Alex Cabal
616b9677a9 Fix donation progress bar 2024-12-30 22:04:09 -06:00
Alex Cabal
051e286a6d Continue fleshing out project management system 2024-12-16 15:01:22 -06:00
Mike Colagrosso
1ab95df084 Add placeholders for ebooks 2024-12-13 11:46:36 -06:00
Alex Cabal
9a2b095b70 Allow adjustment of Patrons Circle cost 2024-12-05 14:32:46 -06:00
Alex Cabal
75ef304824 Add more books to PD Day 2025 2024-12-01 18:35:48 -06:00
Alex Cabal
3a3795bbbd Add Coolidge to PD Day 2025 2024-11-28 11:30:19 -06:00
Alex Cabal
c1d917ed8d Tweak donation target 2024-11-27 15:48:44 -06:00
Alex Cabal
5270891eb4 Update PD day banner and tweak blog post wording 2024-11-27 15:17:10 -06:00
Alex Cabal
c65035630f Add public domain day banner 2024-11-27 12:52:37 -06:00
Alex Cabal
bd058eb74e Fix donation drive start date calculation 2024-11-25 10:40:30 -06:00
Alex Cabal
b8981ba284 Adjust SE donation drive dates 2024-11-14 10:23:38 -06:00
Alex Cabal
9ca6b1eb0e Tweak donation constants 2024-11-13 11:25:05 -06:00
Alex Cabal
d4c7703cf0 Restructure how incorrect ebook URLs are redirected 2024-11-11 13:59:45 -06:00
Alex Cabal
a8e381b2a5 Add more PD day 2025 books 2024-11-07 19:13:59 -06:00
brendan
5966657b1b Fix typo 2024-11-05 15:59:55 -06:00
Alex Cabal
163ada3b09 Add placeholders for public domain day ebooks 2024-11-04 21:17:09 -06:00
Mike Colagrosso
19032b0bc2 Clarify EBOOK_SINGLE_PAGE_SIZE_WARNING 2024-11-04 13:16:56 -06:00
Mike Colagrosso
6bec232d37 Remove checks against EBOOK_EARLIEST_CREATION_DATE 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
032032b920 Additional Ebook validation 2024-11-04 13:16:56 -06:00
Mike Colagrosso
63d411a2e6 Initial code changes to insert/update Ebook records 2024-11-04 13:16:56 -06:00
Alex Cabal
19cf14c1aa Add automatic donation drives 2024-10-17 11:58:25 -05:00
Alex Cabal
eec79712fc Use a NOW constant instead of new DateTimeImmutable objects, and tweak how some donation drive dates work 2024-10-15 22:21:12 -05:00
Alex Cabal
09a91a998e Update framework standards 2024-09-12 21:45:28 -05:00
Alex Cabal
c4bff3f613 Schedule new patron drive 2024-05-16 16:30:32 -05:00
Alex Cabal
3c54255775 Rename internal PHP config variable 2024-05-14 15:47:29 -05:00
Alex Cabal
110c091a7b Define some constants to make HTTP input code less wordy 2024-05-12 12:29:30 -05:00
Alex Cabal
ee7c8343dd Convert some constants to enums 2024-05-11 21:51:06 -05:00
Alex Cabal
a634e4e970 Remove unused constant 2024-05-08 11:24:01 -05:00
Alex Cabal
8cc661015c Add enum for view type and fix some type hints 2024-05-08 11:22:28 -05:00
Alex Cabal
e55fecaaa2 Switch from DateTime to DateTimeImmutable across codebase 2024-04-13 14:05:14 -05:00
Alex Cabal
1d36ece705 Hide emails in constants 2024-01-30 11:17:59 -06:00
Mike Colagrosso
980ed8cea9 Convert ebook SORT_ constants to an enum 2024-01-30 11:10:05 -06:00
Mike Colagrosso
004a4a27c3 Convert SORT_COVER_ constants to an enum 2024-01-30 11:10:05 -06:00
Mike Colagrosso
09b4385100 Convert SOURCE_ constants to an enum 2024-01-30 11:10:05 -06:00
Alex Cabal
d3bde7d195 Use @inputmode="number" instead of <input type="number"> 2024-01-16 00:19:43 -06:00
Alex Cabal
531e3600ea Convert some constants to enums 2024-01-14 22:32:47 -06:00
Alex Cabal
a3210031f4 Change default per page in artworks list 2024-01-12 11:42:36 -06:00
Alex Cabal
03821d6ad1 Tweak max artwork string length and max tags 2024-01-12 11:04:01 -06:00
Alex Cabal
1237a65bc8 Convert use of gmdate() to DateTime 2024-01-10 11:25:56 -06:00
Alex Cabal
5b6a334dd0 Add minimum artwork dimensions 2024-01-08 13:48:56 -06:00
Mike Colagrosso
6a5c05511a Add cover art database
Co-authored-by: Job Curtis <job.curtis@gmail.com>
Co-authored-by: Alex Cabal <alex@standardebooks.org>
2024-01-03 19:14:04 -06:00
Alex Cabal
a82130ea91 Minor restructure of donation progress bar 2023-12-26 11:05:30 -06:00
Alex Cabal
0bc3dc3830 Create cookie-based login and authentication system 2022-07-10 20:53:20 -05:00
Alex Cabal
3fa9592e6d Send an email to lapsed patrons 2022-07-02 16:45:23 -05:00