public function Record::raw in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/marcParse/php-marc.php \Record::raw()
- 6 marcParse/php-marc.php \Record::raw()
- 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 698 - @package PHP-MARC
Class
- Record
- Record Class Create a MARC Record class.
Code
public 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;
}