Commit graph

428 commits

Author SHA1 Message Date
Alex Cabal
7c8463d297 Add <link rel="canonical"> to some pages 2024-05-08 11:01:18 -05:00
Alex Cabal
a0dc70762d Fix types 2024-05-04 15:37:02 -05:00
Alex Cabal
41dd9db4aa Change Accessor from class to trait 2024-05-04 13:07:03 -05:00
Alex Cabal
10bea9ad9e Add newdecimal type to DbConnection 2024-05-02 16:25:24 -05:00
Alex Cabal
2e137d2df7 Better exception message when database encounters a duplicate unique key 2024-05-02 11:01:34 -05:00
Alex Cabal
f4613aa9af Fix docblocks 2024-05-01 23:56:52 -05:00
Alex Cabal
de76531589 Better type check in DbConnection 2024-05-01 23:41:42 -05:00
Alex Cabal
82fe64c368 Don't check for boolean columsn in DbConnetion 2024-05-01 09:38:33 -05:00
Alex Cabal
97cafbf128 Allow for an object's own FromRow method in DbConnection 2024-05-01 09:38:33 -05:00
Alex Cabal
50efeb05d1 Style tweaks for getters and add more type hinting 2024-04-30 22:45:20 -05:00
Alex Cabal
aa8bdfed0e Remove unnecessary test from DbConnection 2024-04-29 14:37:47 -05:00
Alex Cabal
6a3a5d5ec3 Add type hints to DB connection class 2024-04-29 12:05:43 -05:00
Alex Cabal
49f5bc7641 Use new duplicate key exception instead of checking PDOException 2024-04-29 12:01:24 -05:00
Alex Cabal
5ee7e8e2ad Fix incorrect exception check in DB connection code 2024-04-29 11:39:41 -05:00
Alex Cabal
233f8eb171 More DB connection cleanup 2024-04-28 20:53:05 -05:00
Alex Cabal
e14988ff8c Improve exceptions in DB classes 2024-04-27 14:42:37 -05:00
Alex Cabal
fdca261133 Remove unnecessary try/catch from DB connection 2024-04-27 12:37:09 -05:00
Alex Cabal
07110829e7 Specify explicit duplicate key exception in DB class 2024-04-26 13:58:05 -05:00
Alex Cabal
265db89448 Fix typo in DB constructor 2024-04-26 13:17:18 -05:00
Alex Cabal
7eaa400ae3 Type tweaks for exceptions and some validation 2024-04-25 20:40:49 -05:00
Alex Cabal
5b3f8f7b77 Add support for filling backed enum types in the DB ORM layer, and cleanup some formatting issues 2024-04-25 11:57:02 -05:00
Alex Cabal
225b01f3dd Tweak type hints in ValidationException 2024-04-22 20:18:43 -05:00
Alex Cabal
79bb41de42 Sanity check to make sure 'convert' worked on TIFF file when uploading cover art 2024-04-16 11:17:09 -05:00
Alex Cabal
40932332cb Remove temporary fixup tag from artworks validation 2024-04-15 12:21:35 -05:00
Alex Cabal
e55fecaaa2 Switch from DateTime to DateTimeImmutable across codebase 2024-04-13 14:05:14 -05:00
Alex Cabal
1bf7e9e10f Remove unused import 2024-04-09 11:13:10 -05:00
Alex Cabal
debd0c31ae Remove 'todo' tag processing 2024-04-05 14:00:15 -05:00
Alex Cabal
2e7b1041bd Add type hint 2024-03-20 13:08:38 -05:00
Alex Cabal
e4514e7882 Normalize non-.com Google TLDs in artwork page scans 2024-03-10 14:52:07 -05:00
Alex Cabal
9437beaee9 Add thank-you page to ebook downloads 2024-02-26 13:34:44 -06:00
Mike Colagrosso
29fc6f9ff2 Update AlternateTitle to parse dcterms:alternate 2024-02-25 15:43:47 -06:00
Alex Cabal
350f65532f Rename PropertiesBase to more accurate Accessor 2024-02-24 13:58:24 -06:00
Alex Cabal
90dcef216f Force single-page view in Hathi Trust URLs 2024-02-12 13:58:48 -06:00
Mike Colagrosso
d6006528f2 Update the ebook URL validation error message 2024-02-11 13:48:54 -06:00
Alex Cabal
3f091b0aa8 Fix nationalmuseum.se URL normalization in artwork DB 2024-02-09 16:26:12 -06:00
Alex Cabal
1bc946f7b5 Number format image dimensions in artwork listing 2024-02-09 12:17:44 -06:00
Alex Cabal
6da7f948b7 Add temporary support for the 'fixup' tag for cleaning up legacy artwork entries 2024-02-05 10:20:45 -06:00
Alex Cabal
2b47b65437 Clean up function imports 2024-01-31 10:28:22 -06:00
Alex Cabal
1d36ece705 Hide emails in constants 2024-01-30 11:17:59 -06:00
Mike Colagrosso
f50fab37d3 Minor comment fixes
Fix one typo, remove a docstring meant for an old function
2024-01-30 11:10:05 -06:00
Mike Colagrosso
d95d9b3349 Refactor Library::FilterEbooks and Template::SearchForm to accept EbookSort 2024-01-30 11:10:05 -06:00
Mike Colagrosso
980ed8cea9 Convert ebook SORT_ constants to an enum 2024-01-30 11:10:05 -06:00
Mike Colagrosso
94dce1009a Refactor Library::FilterArtwork and artworks/index.php to accept ArtworkSort 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
3606a5c425 Restore missing 'order by' clause to artwork list 2024-01-29 18:32:15 -06:00
Alex Cabal
a9dcdcde94 Limit artwork results at the DB level 2024-01-28 14:04:29 -06:00
Alex Cabal
801b5f524a Add special 'query-ebook-url' parameter to /artworks to get covers matching exactly the ebook URL 2024-01-26 12:05:34 -06:00
Mike Colagrosso
e08dfab9da Set the death year to null for the Anonymous artist 2024-01-26 10:14:22 -06:00
Alex Cabal
1a14a775d4 Add clarifying comment 2024-01-23 23:54:59 -06:00