Commit graph

1763 commits

Author SHA1 Message Date
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
Weijia Cheng
780be15ed0 Update punctuation outside quotation marks command in review guide 2024-01-23 13:08:28 -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
4d5e0c59b0 Change submit button on artwork form if editing 2024-01-19 20:09:58 -06:00
Alex Cabal
e6672b99d8 Update wanted ebooks list 2024-01-19 20:09:50 -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
f3aa4f35fc Clarify edit link on artworks page 2024-01-18 20:58:59 -06:00
Alex Cabal
a16b6690e9 Update wanted ebooks list 2024-01-18 20:58:51 -06:00
Alex Cabal
652cbba535 Fix permissions problem 2024-01-18 19:58:49 -06:00
Alex Cabal
3287dd3b30 Show artwork IDs to admins 2024-01-18 16:36:55 -06:00
Alex Cabal
ca3fc6dbfd Refactor HttpInput::Str and rename some exceptions for consistency 2024-01-18 11:21:05 -06:00
Alex Cabal
2b5f4f55a2 Style tweaks to artworks DB 2024-01-18 10:50:14 -06:00
Alex Cabal
6e63bd2bdb Remove unused variables 2024-01-18 00:51:28 -06:00
Alex Cabal
c92ebb43c7 Make URL normalization method static to match museum method 2024-01-17 16:33:24 -06:00
Alex Cabal
f0bdd5596f Rename ArtistAlternateSpellings to ArtistAlternateNames 2024-01-17 16:32:57 -06:00
Alex Cabal
f7ff76bf7d Rename some Formatter functions for clarity 2024-01-17 16:04:30 -06:00
Alex Cabal
5ef6d3aef8 Artwork db code tweaks, also remove 'in use' as a status 2024-01-17 16:04:11 -06:00
Mike Colagrosso
73bcae0c84 Add classes to artwork forms for easier targeting 2024-01-17 12:12:25 -06:00
Mike Colagrosso
c80e99a71a Use the artwork from the session when editing 2024-01-17 12:12:25 -06:00
Mike Colagrosso
4b2e02950f Use ArtworkStatus enums when querying, not strings 2024-01-17 12:12:25 -06:00
Mike Colagrosso
986411e684 Add comment about handling uploaded file 2024-01-17 12:12:25 -06:00
Mike Colagrosso
31d927ce2b Don't set the Updated field in the Artists table
The DB does it automatically
2024-01-17 12:12:25 -06:00
Mike Colagrosso
60c6142688 Delete unreferenced artists after updating artwork
Also clean up ArtistAlternateSpellings at the same time we delete an artist
2024-01-17 12:12:25 -06:00
Mike Colagrosso
8b62a9130c Add ?ts=<updated-timestamp> to ImageUrl and ThumbUrl
Also add new ImageFsPath and ThumbFsPath properties for filesystem operations since they can't build on the Url properties.
2024-01-17 12:12:25 -06:00
Mike Colagrosso
7b03175cc7 CSS tweak to selectors for the browse form 2024-01-17 12:12:25 -06:00
Mike Colagrosso
9d5daac1cd Allow submitters to filter for their unverified artwork 2024-01-17 12:12:25 -06:00
Mike Colagrosso
87ce048a0e Handle HTTP PUT methods and update Artwork::Save() to match how Artwork::Create() handles images and thumbnails 2024-01-17 12:12:25 -06:00
Mike Colagrosso
af24efddaa Style the Artwork editing form the same as the creation form
It's a complicated selector because it also must exclude the PATCH form on `artworks/get.php`, which has similar attributes.

Moreover, the browse form on `artworks/index.php` also has similar attributes.
2024-01-17 12:12:25 -06:00
Mike Colagrosso
ce4a28c675 Add a common template for Artwork creation and editing to share 2024-01-17 12:12:25 -06:00
Mike Colagrosso
813d4f601c Artwork: Rewrite rules for artwork editing 2024-01-17 12:12:25 -06:00
Mike Colagrosso
987de26b73 Artwork: Add EditUrl property on the artwork page 2024-01-17 12:12:25 -06:00
Alex Cabal
2fc92b8768 Use instanceof instead of is_a() to check some classes 2024-01-16 13:32:58 -06:00
Alex Cabal
1627c99a46 Update readme with todos 2024-01-16 11:32:55 -06:00
Alex Cabal
d3bde7d195 Use @inputmode="number" instead of <input type="number"> 2024-01-16 00:19:43 -06:00
Mike Colagrosso
39db272cb1 Remove unused Artist::FindMatch
It was used by an obsolete script.
2024-01-15 22:59:45 -06:00
Alex Cabal
56ebdcab0f Fix broken SQL query when adding artwork for existing artist 2024-01-15 22:17:30 -06:00
Alex Cabal
36adb85067 Add ingest-fa-payments script 2024-01-15 15:49:16 -06:00
Alex Cabal
4126db9c3e Remove references to unused script 2024-01-15 12:59:53 -06:00
Alex Cabal
eb83a8c22e Update wanted ebooks list 2024-01-15 11:59:30 -06:00
Alex Cabal
51672e7177 Add support for alternate spellings in new artwork form 2024-01-15 11:42:47 -06:00
Alex Cabal
6c647f7371 Fix default artwork status for new submissions 2024-01-15 11:30:06 -06:00
Alex Cabal
206e125da7 Add todo item to readme 2024-01-15 00:22:24 -06:00
Alex Cabal
83e6637c84 Remove default default 2024-01-15 00:22:16 -06:00