Alex Cabal
b8981ba284
Adjust SE donation drive dates
2024-11-14 10:23:38 -06:00
Alex Cabal
9ca6b1eb0e
Tweak donation constants
2024-11-13 11:25:05 -06:00
Alex Cabal
009505d182
Set artwork updated timestamp on save
2024-11-12 11:22:04 -06:00
Alex Cabal
c55cfb2875
Fix logic error when logging in with HTTP auth
2024-11-11 20:17:11 -06:00
Alex Cabal
f8d73ebaf1
Fix variable initializaion if museum is not found
2024-11-11 16:48:08 -06:00
Alex Cabal
d54d3357b1
Update wanted ebooks list
2024-11-11 16:19:54 -06:00
Alex Cabal
b167f7dabb
Remove National Museum in Warsaw as an approved source
2024-11-11 14:48:09 -06:00
Alex Cabal
a5bd5d18ad
Clarify comments in PropertyFromHttp trait
2024-11-11 14:22:25 -06:00
Alex Cabal
d4c7703cf0
Restructure how incorrect ebook URLs are redirected
2024-11-11 13:59:45 -06:00
Alex Cabal
d6a2bdcbc8
Make MARC roles an enum and restructure how contributors are fetched from the DB to reduce queries
2024-11-11 12:01:53 -06:00
Alex Cabal
daf8e16ef4
Update Composer dependencies
2024-11-11 11:21:44 -06:00
Alex Cabal
db35e380c0
Fix newsletter type hints
2024-11-11 11:21:28 -06:00
Alex Cabal
b3a9d86828
Fix SQL definition
2024-11-11 11:21:21 -06:00
Alex Cabal
ec0b81817d
Restructure some files to match new URL structure
2024-11-11 11:17:04 -06:00
Alex Cabal
b340c55460
Move Apache rewrites into separate files
2024-11-11 11:06:04 -06:00
Alex Cabal
b7b63a4be5
Refactor functions out of Library
2024-11-10 23:05:31 -06:00
Alex Cabal
1449148989
Switch logged in user to static typed variable instead of in $GLOBALS
2024-11-10 23:05:31 -06:00
Alex Cabal
acb30b897c
Add PropertyFromHttp trait and update codebase to use new pattern
2024-11-10 22:23:43 -06:00
Alex Cabal
c35c47b793
Add DateTimeFormat enum
2024-11-08 16:41:15 -06:00
Alex Cabal
be5574eaec
Move enums into their own namespace
2024-11-08 16:34:21 -06:00
Alex Cabal
c3c588cc1b
Add more type hints and work on some code formatting
2024-11-08 14:20:06 -06:00
Alex Cabal
06b82cdaaa
Fix broken updated timestamps in OPDS feeds, and fix and add some type hints.
2024-11-08 12:43:47 -06:00
Alex Cabal
34e35194d8
Upgrade dependencies
2024-11-07 20:21:54 -06:00
Alex Cabal
d03d9782d1
Fixes for PD Day placeholder ebooks
2024-11-07 20:15:20 -06:00
Alex Cabal
a8e381b2a5
Add more PD day 2025 books
2024-11-07 19:13:59 -06:00
Alex Cabal
e234a71968
Update wanted ebooks list
2024-11-06 11:30:41 -06:00
Alex Cabal
8f17f39e1b
Clean up some PD day code
2024-11-05 16:01:44 -06:00
brendan
5966657b1b
Fix typo
2024-11-05 15:59:55 -06:00
Alex Cabal
274605a0e8
Fix incorrect filesystem determination and simplify hash calculation
2024-11-05 14:04:56 -06:00
Alex Cabal
163ada3b09
Add placeholders for public domain day ebooks
2024-11-04 21:17:09 -06:00
Alex Cabal
60f0ea16cb
Formatting tweaks
2024-11-04 13:31:17 -06:00
Mike Colagrosso
0138b19000
Make Artwork robust to EbookNotFoundException
...
This probably means the Ebook is unreleased, but the artwork page can still show the EbookUrl.
Found this error during testing of the ebook DB here:
https://github.com/standardebooks/web/pull/401#issuecomment-2450588117
2024-11-04 13:16:56 -06:00
Mike Colagrosso
7e67e108f3
Update some comments
2024-11-04 13:16:56 -06:00
Mike Colagrosso
79533398ef
Add anchor to the start of preg_match()
...
Should have added these with bf631682
2024-11-04 13:16:56 -06:00
Mike Colagrosso
19032b0bc2
Clarify EBOOK_SINGLE_PAGE_SIZE_WARNING
2024-11-04 13:16:56 -06:00
Mike Colagrosso
312e2105ec
Change Created datetime to timestamp to match 88c3049
2024-11-04 13:16:56 -06:00
Mike Colagrosso
c3c4cbddca
Adopt IF NOT EXISTS
approach from 82e43cb
2024-11-04 13:16:56 -06:00
Mike Colagrosso
65d1dcdd88
Use the NOW
constant from eec7971
2024-11-04 13:16:56 -06:00
Mike Colagrosso
df8eac6f82
Rename GitCommit::FromLogLine and have it accept the full line
2024-11-04 13:16:56 -06:00
Mike Colagrosso
e9cf55b53f
Remove EbookSource::FromTypeAndUrl()
2024-11-04 13:16:56 -06:00
Mike Colagrosso
6bec232d37
Remove checks against EBOOK_EARLIEST_CREATION_DATE
2024-11-04 13:16:56 -06:00
Mike Colagrosso
432723eafe
Correct return type and typo in GetUrl()
2024-11-04 13:16:56 -06:00
Mike Colagrosso
7253ad41ca
Rename flag to --ebook-www-filesystem-path
2024-11-04 13:16:56 -06:00
Mike Colagrosso
627f90c0e2
Add try/catch around Ebook::FromFilesystem()
2024-11-04 13:16:56 -06:00
Mike Colagrosso
d22bdc0099
Remove use of Safe\sprintf
2024-11-04 13:16:56 -06:00
Mike Colagrosso
95a1edc8b7
Bump TocEntries.SortOrder from tinyint to smallint
...
Ebooks can have more than 255 TocEntries. (572 is the current highest.)
2024-11-04 13:16:56 -06:00
Mike Colagrosso
c8e6524ef2
Remove primary key TocEntryId
...
Add a SortOrder column to order the TocEntries instead.
2024-11-04 13:16:56 -06:00
Mike Colagrosso
2eb7fef027
Remove primary key GitCommitId
...
The table already has a Created column, and that's the column we use to sort on.
2024-11-04 13:16:56 -06:00
Mike Colagrosso
3f3cf702b2
Remove primary key ContributorId
...
`Ebook` to `Contributor` is one to many, and we don't query by ContributorId.
The table already has a SortOrder column, and we use that to order the queries.
2024-11-04 13:16:56 -06:00
Mike Colagrosso
1076c9a77d
Remove primary key EbookSourceId
...
There is a one to many relationship between `Ebook` and `EbookSource`, and we
don't query by `EbookSourceId`. We add a `SortOrder` column to keep the sources
in the same order as specified in `content.opf`.
2024-11-04 13:16:56 -06:00