mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 07:10:29 -04:00
Normalize URLs when submitting artwork to database
This commit is contained in:
parent
f9c873003e
commit
e17a4bcc65
10 changed files with 182 additions and 29 deletions
6
lib/Exceptions/InvalidHathiTrustUrlException.php
Normal file
6
lib/Exceptions/InvalidHathiTrustUrlException.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class InvalidHathiTrustUrlException extends InvalidUrlException{
|
||||
protected $message = 'Invalid HathiTrust URL. HathiTrust URLs begin with “https://babel.hathitrust.org/cgi/pt”. An example of a valid HathiTrust URL is “https://babel.hathitrust.org/cgi/pt?id=hvd.32044034383265&seq=13”.';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue