Commit graph

497 commits

Author SHA1 Message Date
Alex Cabal
b5f0f22fa7 Don't show works on the wanted list as not PD yet 2024-12-13 12:11:27 -06:00
Mike Colagrosso
1ab95df084 Add placeholders for ebooks 2024-12-13 11:46:36 -06:00
Alex Cabal
cf5f488cae Improve error message for people trying to log in to the Patrons Circle 2024-12-13 10:10:52 -06:00
Mike Colagrosso
cae8271ecb Set ReviewerUserId only if Status changed
For non-admin reviewers (i.e., without `CanReviewOwnArtwork`), the `PATCH` form
has a hidden element with the artwork's current `Status`. If the reviewer
updates the `EbookUrl` and not `Status`, then don't record the reviewer's
`ReviewerUserId` because they didn't review or change the `Status`.

Side note: Sending the `PATCH` form an invalid `Status` will result in a
validation error, but that validation error was hard to read because it was the
wrong exception type. This commit adds a new `InvalidArtworkStatusException` to
fix that.

Fixes #433
2024-12-13 09:06:57 -06:00
Alex Cabal
72615fe79a Fix logic errors 2024-12-06 11:36:11 -06:00
Alex Cabal
7ac427dad5 Add more information to user info page 2024-12-05 21:00:39 -06:00
Alex Cabal
9a2b095b70 Allow adjustment of Patrons Circle cost 2024-12-05 14:32:46 -06:00
Alex Cabal
77540dacbb Clarify comments 2024-12-05 11:22:53 -06:00
Alex Cabal
ab17e6af5d Allow getting users by name 2024-12-02 10:20:36 -06:00
Alex Cabal
75ef304824 Add more books to PD Day 2025 2024-12-01 18:35:48 -06:00
Alex Cabal
8cba20fbf5 Fix Patron logic in user detail page 2024-12-01 17:01:18 -06:00
Alex Cabal
9835e5cee0 Show payments on user detail page 2024-12-01 16:16:04 -06:00
Alex Cabal
f9b3d09c7d Code formatting 2024-11-28 12:12:00 -06:00
Alex Cabal
347f166e8a Catch rare exception when searching ebooks 2024-11-28 12:10:53 -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
c9e6454f51 Add site map 2024-11-26 13:28:44 -06:00
Alex Cabal
e6d4ea1ab6 Tweak how User::$Benefits getter 2024-11-25 13:56:31 -06:00
Alex Cabal
d149798154 Another attempt at fixing a reference error 2024-11-25 11:08:30 -06:00
Alex Cabal
bd058eb74e Fix donation drive start date calculation 2024-11-25 10:40:30 -06:00
Alex Cabal
9bfa8915f3 Fix reference error 2024-11-25 09:55:13 -06:00
Alex Cabal
8ad3291a35 Add admin form to view and edit users 2024-11-23 14:30:11 -06:00
Alex Cabal
3050ab7219 Use HTTP code enums instead of ints 2024-11-20 14:52:05 -06:00
Alex Cabal
3f822b85c3 Add PHPDocs and code formatting 2024-11-20 14:23:42 -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
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
009505d182 Set artwork updated timestamp on save 2024-11-12 11:22:04 -06:00
Alex Cabal
c55cfb2875 Fix logic error when logging in with HTTP auth 2024-11-11 20:17:11 -06:00
Alex Cabal
f8d73ebaf1 Fix variable initializaion if museum is not found 2024-11-11 16:48:08 -06:00
Alex Cabal
b167f7dabb Remove National Museum in Warsaw as an approved source 2024-11-11 14:48:09 -06:00
Alex Cabal
a5bd5d18ad Clarify comments in PropertyFromHttp trait 2024-11-11 14:22:25 -06:00
Alex Cabal
d4c7703cf0 Restructure how incorrect ebook URLs are redirected 2024-11-11 13:59:45 -06:00
Alex Cabal
d6a2bdcbc8 Make MARC roles an enum and restructure how contributors are fetched from the DB to reduce queries 2024-11-11 12:01:53 -06:00
Alex Cabal
db35e380c0 Fix newsletter type hints 2024-11-11 11:21:28 -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
c3c588cc1b Add more type hints and work on some code formatting 2024-11-08 14:20:06 -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
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
274605a0e8 Fix incorrect filesystem determination and simplify hash calculation 2024-11-05 14:04:56 -06:00