public function Record::formatted in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/marcParse/php-marc.php \Record::formatted()
- 6 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
- modules/
marcParse/ php-marc.php, line 716 - @package PHP-MARC
Class
- Record
- Record Class Create a MARC Record class.
Code
public function formatted() {
$formatted = "";
foreach ($this->fields as $field_group) {
foreach ($field_group as $field) {
$formatted .= $field
->formatted() . "\n";
}
}
return $formatted;
}