function Record::leader_lengths in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 modules/marcParse/php-marc.php \Record::leader_lengths()
- 6 marcParse/php-marc.php \Record::leader_lengths()
- 7 modules/marcParse/php-marc.php \Record::leader_lengths()
Set Leader lengths
Set the Leader lengths of the record according to defaults specified in http://www.loc.gov/marc/bibliographic/ecbdldrd.html
1 call to Record::leader_lengths()
- Record::raw in modules/
marcParse/ php-marc.php - Return Raw
File
- modules/
marcParse/ php-marc.php, line 519
Class
- Record
- Record Class Create a MARC Record class
Code
function leader_lengths($reclen, $baseaddr) {
$this->ldr = substr_replace($this->ldr, sprintf("%05d", $reclen), 0, 5);
$this->ldr = substr_replace($this->ldr, sprintf("%05d", $baseaddr), 12, 5);
$this->ldr = substr_replace($this->ldr, '22', 10, 2);
$this->ldr = substr_replace($this->ldr, '4500', 20, 4);
}