function Record::field in Bibliography Module 6
Same name and namespace in other branches
- 6.2 modules/marcParse/php-marc.php \Record::field()
- 7 modules/marcParse/php-marc.php \Record::field()
- 7.2 modules/marcParse/php-marc.php \Record::field()
* Get specific field * * Search for field in Record fields based on field name, e.g. 020 *
Parameters
string Field name: * @return Field|false Return Field if found, otherwise false
2 calls to Record::field()
- Record::ffield in marcParse/
php-marc.php - * Formatted representation of Field * * Format a Field with a sprintf()-like formatting syntax. The formatting * codes are the names of the subfields of the Field. *
- Record::subfield in marcParse/
php-marc.php - * Get subfield of Field object * * Returns the value of a specific subfield of a given Field object *
File
- marcParse/
php-marc.php, line 541
Class
- Record
- Record Class Create a MARC Record class
Code
function field($spec) {
if (array_key_exists($spec, $this->fields)) {
return $this->fields[$spec][0];
}
else {
return false;
}
}