Commit graph

314 commits

Author SHA1 Message Date
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
Alex Cabal
cbf87487eb Use ebook URL and not filesystem slug to identify ebooks in artworks 2024-01-23 23:11:30 -06:00
Mike Colagrosso
91ac96d784 Add status and user filtering to GetArtworksByArtist 2024-01-23 21:34:27 -06:00
Alex Cabal
770c010025 Add todo comment 2024-01-23 14:53:27 -06:00
Mike Colagrosso
53dc36d25a Fix searching for words adjacent to an underscore in EbookWwwFilesystemPath 2024-01-23 13:54:41 -06:00
Alex Cabal
e3ea224256 Tweak style 2024-01-23 13:51:34 -06:00
Mike Colagrosso
93adef171f s/GetArtworkByArtist/GetArtworksByArtist/ 2024-01-23 13:46:12 -06:00
Mike Colagrosso
cad2f5f730 List artwork by artist via /artworks/<artist-name> 2024-01-23 13:46:12 -06:00
Alex Cabal
478eb200c8 Add rsquo to artwork filter query parsing 2024-01-22 13:33:27 -06:00
Mike Colagrosso
8a8692619c Keep words with apostrophes intact when searching
The code will convert a search for:

`Whistler's Mother`

into:

`\b(whistler's|mother)\b`

Before this fix, it was:

`\b(whistler|s|mother)\b`
2024-01-22 09:57:33 -06:00
Mike Colagrosso
d8360b28ca
Replace PHP filtering with pure SQL (#323)
* Replace PHP filtering with pure SQL
2024-01-21 14:08:46 -06:00
Mike Colagrosso
67fcdedd08
Library::FilterArtwork(): Move sort logic to SQL, condense status condition (#321)
Move artwork sort logic to SQL
2024-01-19 23:24:22 -06:00
Alex Cabal
b96f7684ec Fix artwork file upload logic 2024-01-19 11:55:43 -06:00
Alex Cabal
fe03f01393 Some more minor fixes, and checks for the temporary 'todo' tag 2024-01-18 21:31:36 -06:00
Alex Cabal
ca3fc6dbfd Refactor HttpInput::Str and rename some exceptions for consistency 2024-01-18 11:21:05 -06:00