You are here

function Record::raw in Bibliography Module 6.2

Same name and namespace in other branches
  1. 6 marcParse/php-marc.php \Record::raw()
  2. 7 modules/marcParse/php-marc.php \Record::raw()
  3. 7.2 modules/marcParse/php-marc.php \Record::raw()

Return Raw

Return the Record in raw MARC format.

Return value

string Raw MARC data

File

modules/marcParse/php-marc.php, line 636

Class

Record
Record Class Create a MARC Record class

Code

function raw() {
  list($fields, $directory, $reclen, $baseaddress) = $this
    ->_build_dir();
  $this
    ->leader_lengths($reclen, $baseaddress);

  /**
   * Glue together all parts
   */
  return $this->ldr . implode("", $directory) . END_OF_FIELD . implode("", $fields) . END_OF_RECORD;
}