You are here

class USMARC in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 modules/marcParse/php-marc.php \USMARC
  2. 7 modules/marcParse/php-marc.php \USMARC
  3. 7.2 modules/marcParse/php-marc.php \USMARC

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

Namesort descending Modifiers Type Description Overrides
File::$pointer property * Current position in the array of records *
File::$raw property * Array containing raw records *
File::$warn property * Array of warnings *
File::decode 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::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::next function * Return next Record-object * * Decode the next raw MARC record and return *
File::num_records function * Get the number of records available in this Record *
File::warnings function * Get warning(s) * * Get either all warnings or a specific warning ID *
File::_croak function * Croaking function * * Similar to Perl's croak function, which ends parsing and raises an * user error with a descriptive message. *
File::_next 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::_warn function * Fuction to issue warnings * * Warnings will not be displayed unless explicitly accessed, but all * warnings issued during parse will be stored *
USMARC::usmarc function * Read raw MARC string for decoding *