function Record::formatted in Bibliography Module 6
Same name and namespace in other branches
- 6.2 modules/marcParse/php-marc.php \Record::formatted()
- 7 modules/marcParse/php-marc.php \Record::formatted()
- 7.2 modules/marcParse/php-marc.php \Record::formatted()
* Return formatted * * Return the Record in a formatted fashion. Similar to the output * of the formatted() function in MARC::Record in Perl *
Return value
string Formatted representation of MARC record
File
- marcParse/
php-marc.php, line 653
Class
- Record
- Record Class Create a MARC Record class
Code
function formatted() {
$formatted = "";
foreach ($this->fields as $field_group) {
foreach ($field_group as $field) {
$formatted .= $field
->formatted() . "\n";
}
}
return $formatted;
}