public function Field::indicator in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/marcParse/php-marc.php \Field::indicator()
- 6 marcParse/php-marc.php \Field::indicator()
- 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}");
}
}