You are here

function Field::indicator in Bibliography Module 7.2

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 modules/marcParse/php-marc.php \Field::indicator()

Get values of indicators

Parameters

string Indicator number:

File

modules/marcParse/php-marc.php, line 846

Class

Field
Field Class Create a MARC Field object

Code

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