ISMN Class
This class provides ISMN validation and conversion functionality.
category |
VuFind |
---|---|
package |
Code |
author |
Demian Katz demian.katz@villanova.edu |
license |
http://opensource.org/licenses/gpl-2.0.php GNU General Public License |
link |
Main Page |
__construct(string $raw)
string
Raw ISMN string to convert/validate.
get10() : mixed
mixed
ISMN, or false if invalid/incompatible.
get13() : mixed
mixed
ISMN, or false if invalid/incompatible.
getISMN10CheckDigit(string $ismn) : string
string
The first 9 digits of an ISMN-10.
string
The check digit.
getISMN13CheckDigit(string $ismn) : string
string
The first 12 digits of an ISMN-13.
string
The check digit.
isValid() : boolean
boolean
isValidISMN10(string $ismn) : boolean
string
The ISMN-10 to test.
boolean
isValidISMN13(string $ismn) : boolean
string
The ISMN-13 to test.
boolean
normalizeISMN(string $raw) : string
These ISMN characters may be separated by any number of '.', '-', '_' and whitespace characters; the separation characters are removed. A lower m is converted to an upper M.
string
ISMN to clean up.
string
Normalized ISMN.
raw : string
var |
---|
string
valid : boolean
var |
---|
boolean