web/lib
Mike Colagrosso 8a4da08a66 Remove non-alphanumerics (except quotes) from search query
That is, don't replace non-alphanumerics with a space. This matches the
behavior of Formatter::RemoveDiacriticsAndNonalphanumerics(), which
would be used here except that function would also remove quotes.  We
actually discussed not introducing spaces previously, but I made a
mistake and didn't apply the same change to the user's search query:

https://github.com/standardebooks/web/pull/470#discussion_r1929591492

This change fixes queries with compound words like:

`Haycraft-Queen`

and also fixes queries for authors with apostrophes:

`O'Neill`

No changes to existing DBs are necessary because they already have terms
like `haycraftqueen` and `oneill` stored in `IndexableCollections` and
`IndexableAuthors`.
2025-03-25 13:16:25 -05:00
..
Enums More type fixes 2025-02-26 15:17:08 -06:00
Exceptions Tweak wording on delete artist page and add some more breadcrumbs 2025-03-07 10:37:56 -06:00
Traits More type fixes 2025-02-26 15:17:08 -06:00
Artist.php Use 'insert ... returning' instead of 'Db::GetLastInsertedId()' 2025-03-10 13:03:31 -05:00
Artwork.php Style tweaks 2025-03-10 14:38:54 -05:00
ArtworkTag.php Use 'insert ... returning' instead of 'Db::GetLastInsertedId()' 2025-03-10 13:03:31 -05:00
AtomFeed.php Completely type hint template functions and switch to named arguments 2025-03-04 20:32:20 -06:00
Benefits.php Allow projects to auto-assign managers and reviewers 2024-12-18 20:57:21 -06:00
Collection.php Use 'insert ... returning' instead of 'Db::GetLastInsertedId()' 2025-03-10 13:03:31 -05:00
CollectionMembership.php Add PropertyFromHttp trait and update codebase to use new pattern 2024-11-10 22:23:43 -06:00
Constants.php Update Composer dependencies, clean up PHPStan config file, and remove Constants.php from Composer in favor of PHPStan configuration 2025-02-28 10:52:16 -06:00
Contributor.php Use shorthand assignment for basic getters 2025-02-27 16:03:26 -06:00
Core.php Update Composer dependencies, clean up PHPStan config file, and remove Constants.php from Composer in favor of PHPStan configuration 2025-02-28 10:52:16 -06:00
Db.php Use 'insert ... returning' instead of 'Db::GetLastInsertedId()' 2025-03-10 13:03:31 -05:00
DonationDrive.php Use shorthand assignment for basic getters 2025-02-27 16:03:26 -06:00
Ebook.php Remove non-alphanumerics (except quotes) from search query 2025-03-25 13:16:25 -05:00
EbookPlaceholder.php Set ebook placeholders to not be in progress when a project is marked as abandoned 2024-12-16 23:54:40 -06:00
EbookSource.php Add beginning of a project management system to placeholders 2024-12-14 19:13:03 -06:00
EbookTag.php Use 'insert ... returning' instead of 'Db::GetLastInsertedId()' 2025-03-10 13:03:31 -05:00
Email.php Enable some additional PHPStan rules and fix some type issues 2025-03-01 13:39:57 -06:00
Feed.php Handle TIFF files with multiple pages 2025-02-08 12:33:13 -06:00
Formatter.php Delete non-alphanumerics from query, don't replace with space 2025-02-13 13:48:39 -06:00
GitCommit.php Add beginning of a project management system to placeholders 2024-12-14 19:13:03 -06:00
HttpInput.php Add comment 2025-03-07 09:55:54 -06:00
Image.php More type fixes 2025-02-26 15:17:08 -06:00
Library.php Add projects index page, and more detail on placeholder pages 2024-12-14 21:12:00 -06:00
LocSubject.php Use 'insert ... returning' instead of 'Db::GetLastInsertedId()' 2025-03-10 13:03:31 -05:00
Log.php Add PropertyFromHttp trait and update codebase to use new pattern 2024-11-10 22:23:43 -06:00
Manual.php Update PHPStan and Safe PHP, and review codebase for further type correctness 2025-02-25 22:41:18 -06:00
Museum.php Update PHPStan and Safe PHP, and review codebase for further type correctness 2025-02-25 22:41:18 -06:00
NewsletterSubscription.php Completely type hint template functions and switch to named arguments 2025-03-04 20:32:20 -06:00
OpdsAcquisitionFeed.php Completely type hint template functions and switch to named arguments 2025-03-04 20:32:20 -06:00
OpdsFeed.php Completely type hint template functions and switch to named arguments 2025-03-04 20:32:20 -06:00
OpdsNavigationEntry.php Add PropertyFromHttp trait and update codebase to use new pattern 2024-11-10 22:23:43 -06:00
OpdsNavigationFeed.php Completely type hint template functions and switch to named arguments 2025-03-04 20:32:20 -06:00
Patron.php Completely type hint template functions and switch to named arguments 2025-03-04 20:32:20 -06:00
Payment.php Use 'insert ... returning' instead of 'Db::GetLastInsertedId()' 2025-03-10 13:03:31 -05:00
Poll.php Use shorthand assignment for basic getters 2025-02-27 16:03:26 -06:00
PollItem.php Use shorthand assignment for basic getters 2025-02-27 16:03:26 -06:00
PollVote.php Use shorthand assignment for basic getters 2025-02-27 16:03:26 -06:00
Project.php Use 'insert ... returning' instead of 'Db::GetLastInsertedId()' 2025-03-10 13:03:31 -05:00
ProjectReminder.php Continue fleshing out project management system 2024-12-16 15:01:22 -06:00
RssFeed.php Replace EbookUrl with EbookId in Artworks (#482) 2025-03-10 14:33:20 -05:00
Session.php Use shorthand assignment for basic getters 2025-02-27 16:03:26 -06:00
Tag.php Add PropertyFromHttp trait and update codebase to use new pattern 2024-11-10 22:23:43 -06:00
Template.php Completely type hint template functions and switch to named arguments 2025-03-04 20:32:20 -06:00
TemplateBase.php Completely type hint template functions and switch to named arguments 2025-03-04 20:32:20 -06:00
User.php Use 'insert ... returning' instead of 'Db::GetLastInsertedId()' 2025-03-10 13:03:31 -05:00