You are here

function Record::formatted in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 modules/marcParse/php-marc.php \Record::formatted()
  2. 6 marcParse/php-marc.php \Record::formatted()
  3. 7 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 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;
}