You are here

public function Field::indicator in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/marcParse/php-marc.php \Field::indicator()
  2. 6 marcParse/php-marc.php \Field::indicator()
  3. 7.2 modules/marcParse/php-marc.php \Field::indicator()

Get values of indicators.

Parameters

string Indicator number:

File

modules/marcParse/php-marc.php, line 930
@package PHP-MARC

Class

Field
Field Class Create a MARC Field object.

Code

public function indicator($ind) {
  if ($ind == 1) {
    return $this->ind1;
  }
  elseif ($ind == 2) {
    return $this->ind2;
  }
  else {
    $this
      ->_warn("Invalid indicator: {$ind}");
  }
}