class USMARC in Bibliography Module 6
Same name and namespace in other branches
USMARC Class Extension class to File class, which allows passing of raw MARC string instead of filename
Hierarchy
Expanded class hierarchy of USMARC
File
- marcParse/
php-marc.php, line 350
View source
class USMARC extends File {
/**
* Read raw MARC string for decoding
* @param string Raw MARC
*/
function usmarc($string) {
$this->raw[] = $string;
$this->pointer = 0;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
File:: |
property | * Current position in the array of records * | ||
File:: |
property | * Array containing raw records * | ||
File:: |
property | * Array of warnings * | ||
File:: |
function | * Decode a given raw MARC record * * "Port" of Andy Lesters MARC::File::USMARC->decode() function into PHP. Ideas and * "rules" have been used from USMARC::decode(). * * | ||
File:: |
function | * Read in MARC record file * * This function will read in MARC record files that either * contain a single MARC record, or numerous records. * | ||
File:: |
function | * Return next Record-object * * Decode the next raw MARC record and return * | ||
File:: |
function | * Get the number of records available in this Record * | ||
File:: |
function | * Get warning(s) * * Get either all warnings or a specific warning ID * | ||
File:: |
function | * Croaking function * * Similar to Perl's croak function, which ends parsing and raises an * user error with a descriptive message. * | ||
File:: |
function | * Return the next raw MARC record * * Returns th nexts raw MARC record from the read file, unless all * records already have been read. * | ||
File:: |
function | * Fuction to issue warnings * * Warnings will not be displayed unless explicitly accessed, but all * warnings issued during parse will be stored * | ||
USMARC:: |
function | * Read raw MARC string for decoding * |