![]() |
Grima
2018-08
Whispering into Alma's ear
|
Methods for fields and subfields in Alma's MARCXML. More...
Public Member Functions | |
| appendField ($tag, $ind1, $ind2, $subfields) | |
| add a field to the MARC record More... | |
| getFields ($tag) | |
| get fields for the given MARC tag More... | |
| getSubfieldValues ($tag, $code) | |
| get subfield value More... | |
| deleteField ($tag) | |
| delete all $tag fields from the MARC record More... | |
| deleteSubfieldMatching ($tag, $code, $regex) | |
| delete subfields matching a regex More... | |
| replaceOrAddSubfield ($tag, $code, $value) | |
| replace or add subfield value in marc More... | |
Public Member Functions inherited from AlmaObject | |
| __construct () | |
| create new blank Alma Object More... | |
| offsetExists ($offset) | |
| offsetGet ($offset) | |
| offsetSet ($offset, $value) | |
| offsetUnset ($offset) | |
Additional Inherited Members | |
Public Attributes inherited from AlmaObject | |
| $el_access = array() | |
| $xml | |
| $templateDir = __DIR__ . "/templates" | |
Methods for fields and subfields in Alma's MARCXML.
Definition at line 1627 of file grima-lib.php.
| AlmaObjectWithMARC::appendField | ( | $tag, | |
| $ind1, | |||
| $ind2, | |||
| $subfields | |||
| ) |
add a field to the MARC record
| string | $tag | a three character MARC tag |
| Int | $ind1 | one digit, first indicator |
| Int | $ind2 | second digit, second indicator |
| Array | $subfields | each entry of the form $code => $value |
Definition at line 1638 of file grima-lib.php.
References appendInnerXML().
Referenced by replaceOrAddSubfield().
| AlmaObjectWithMARC::deleteField | ( | $tag | ) |
delete all $tag fields from the MARC record
| string | $tag | a three character MARC tag |
Definition at line 1702 of file grima-lib.php.
| AlmaObjectWithMARC::deleteSubfieldMatching | ( | $tag, | |
| $code, | |||
| $regex | |||
| ) |
delete subfields matching a regex
| Array | $subfields | each entry of the form $code => $value |
Definition at line 1717 of file grima-lib.php.
| AlmaObjectWithMARC::getFields | ( | $tag | ) |
get fields for the given MARC tag
| String | $tag | field |
Definition at line 1657 of file grima-lib.php.
| AlmaObjectWithMARC::getSubfieldValues | ( | $tag, | |
| $code | |||
| ) |
get subfield value
| String | $tag | field |
| String | $code | subfield |
Definition at line 1685 of file grima-lib.php.
Referenced by Holding\offsetGet().
| AlmaObjectWithMARC::replaceOrAddSubfield | ( | $tag, | |
| $code, | |||
| $value | |||
| ) |
replace or add subfield value in marc
| string | $tag | a three character MARC tag |
| string | $code | a one letter subfield code |
| string | $value | what to set the value to |
Definition at line 1736 of file grima-lib.php.
References appendField().
Referenced by Bib\offsetSet().
1.8.14