Commit graph

2310 commits

Author SHA1 Message Date
Mike Colagrosso
0c87f1f262 Remove unnecessary check ?? '' from non-null 2025-02-13 13:48:39 -06:00
Mike Colagrosso
fce4fbc601 Delete non-alphanumerics from query, don't replace with space 2025-02-13 13:48:39 -06:00
Mike Colagrosso
5e10d3be6f Remove placeholder text from search box 2025-02-13 13:48:39 -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
b2df8a7018 Type fixes 2025-02-08 12:33:13 -06:00
Alex Cabal
0c2dce3f63 Handle TIFF files with multiple pages 2025-02-08 12:33:13 -06:00
Alex Cabal
5e23837d17 Add blog post 2025-02-04 11:59:46 -06:00
Alex Cabal
367da8ec82 Show author names by compilations in projects view 2025-02-03 22:08:40 -06:00
Alex Cabal
932ce2b2b1 Add ebook redirect 2025-02-03 15:42:06 -06:00
Alex Cabal
664c51ea79 Fix dates in Atom entries 2025-02-03 11:14:05 -06:00
Alex Cabal
2d108211e1 Remove item from uncategorize artwork list 2025-02-01 20:58:13 -06:00
Alex Cabal
94e7937987 Fix typo in reviewer URL 2025-01-30 12:46:03 -06:00
Alex Cabal
6261eee67f Correctly pull reviewer of active projects 2025-01-30 12:44:57 -06:00
Alex Cabal
d942f4642b In projects, update discussion URLs that have discussion too recent to have a full timestamp 2025-01-29 18:46:02 -06:00
Alex Cabal
4f4e72564a Fix permissions logic when patching projects 2025-01-28 15:30:42 -06:00
Alex Cabal
0b461d7ede Refactor some function in Project 2025-01-28 10:29:08 -06:00
Alex Cabal
6378d687d8 Add 'awaiting review' and 'reviewed' project statuses that update from GitHub; allow project owners to update their project statuses 2025-01-27 15:52:21 -06:00
Alex Cabal
b48f3a5798 Improve honeypot link 2025-01-27 10:49:44 -06:00
Alex Cabal
4eb45bd54b Tweak feed wording 2025-01-26 16:23:15 -06:00
Weijia Cheng
a15ae6f77e Fix title of blog post 2025-01-26 16:12:04 -06:00
Alex Cabal
c1e8e83cfb Block some leechers in Apache config 2025-01-25 14:13:49 -06:00
Alex Cabal
2258c4f742 Add Manly Wade Wellman spreadsheet 2025-01-25 11:39:17 -06:00
Alex Cabal
221daaacac Increase wait time when fetching project updated timestamps, and improve error messages 2025-01-25 11:29:18 -06:00
Weijia Cheng
2aaa1e301f Fix typo in newest blog post 2025-01-25 11:00:49 -06:00
Alex Cabal
59083baf8c Fix validation of existing artwork name when creating a new artwork 2025-01-24 09:37:13 -06:00
Alex Cabal
4bec47a389 Add Andre Norton to spreadsheets page 2025-01-22 10:46:49 -06:00
Alex Cabal
bddbfe3cfa Don't list authors more than once in sitemap 2025-01-22 09:54:05 -06:00
vr8hub
aeb2a0877e Add item for initial caps in a chapter 2025-01-21 12:35:04 -06:00
Weijia Cheng
2a220cff21 Make bold/strong regular expression catch more cases 2025-01-21 09:36:25 -06:00
erin
43cf946cc9 Add Descartes to-do summary document to spreadsheets page 2025-01-21 09:35:31 -06:00
vr8hub
5bd6853498 Add checks for bold/strong and illustration names/ids 2025-01-19 14:31:36 -06:00
Alex Cabal
37aaa97b66 Brower compatibility for ::before alt text 2025-01-19 13:28:45 -06:00
Alex Cabal
8a15519b0e Hide honeyhot link from older browsers 2025-01-18 22:29:17 -06:00
Alex Cabal
617df6dda0 Add honeypot link to deployed ebook files 2025-01-18 20:41:27 -06:00
Alex Cabal
bf010f8e3c Fix rotate log script 2025-01-18 18:57:25 -06:00
Alex Cabal
0483a6d841 Add empty alt text for some CSS pseudo elements 2025-01-18 17:44:22 -06:00
Alex Cabal
5b0d37824b Add configuration to stop rude bot crawlers using fail2ban 2025-01-18 17:37:47 -06:00
Alex Cabal
8f2df6ac12 Fix broken Apache config 2025-01-18 17:32:38 -06:00
Mike Colagrosso
5b5c75b2c8 Remove apostrophes, don't preserve them
Searching by `UrlName`, now for both `Artwork` and `Artist`, is clearer.
Take care to remove the apostrophes outright, don't replace them with a
space because otherwise the letter after the apostrophe becomes its own
term to match.

Follow up to the fix for #461
2025-01-18 11:03:05 -06:00
Mike Colagrosso
bb7fe5d1ac Search artwork by UrlName
`Artwork::GetAllByFilter()` is already removing diacritics from search
terms, and `UrlName` stores the artist's name with diacritics removed by
calling `Formatter::MakeUrlSafe()`.

Keeping the search by `Name` because `Formatter::MakeUrlSafe()` makes
other changes to the name, too.

Fixes #461
2025-01-18 11:03:05 -06:00
Alex Cabal
db8d422133 Simplify validation logic 2025-01-15 16:16:45 -06:00
Mike Colagrosso
38f4e34a11 Match Contributor UrlName to Identifier
Fixes #459
2025-01-15 15:47:04 -06:00
Alex Cabal
14cdd74585 Enable Hudson River Bracketed in blog post 2025-01-15 14:53:09 -06:00
Alex Cabal
bdeebc8291 Add endpoint to get collections for an ebook or placeholder 2025-01-15 14:32:50 -06:00
Alex Cabal
ed5540c177 Enable latest blog post 2025-01-15 13:03:53 -06:00
Alex Cabal
e85d833bad When adding an artwork ebook URL, confirm that that ebook exists 2025-01-13 20:30:46 -06:00
Neil Pankey
f8a050486b Update 20,000 Leagues note to 2025 2025-01-10 16:40:59 -06:00
Alex Cabal
284898a805 Replace ' with ’ in contributor names 2025-01-10 12:07:59 -06:00
Alex Cabal
c36d1ac3d3 Rename exception for consistency 2025-01-09 14:08:54 -06:00
Alex Cabal
94d62fdcdf Fix exception for duplicate ebook placeholder on save 2025-01-09 14:07:40 -06:00