![]() |
Grima
2018-08
Whispering into Alma's ear
|
Methods for fields and subfields in Alma's MARCXML. More...
Public Member Functions | |
| useNormac () | |
| addControlField ($tag, $data) | |
| add a data field to the MARC record using Normac More... |
|
| addDataField ($tag, $indicators, $subfields) | |
| add a data field to the MARC record using Normac More... |
|
| normacToXML () | |
| convert normac fields back to XML More... |
|
| appendField ($tag, $ind1, $ind2, $subfields) | |
| add a field to the MARC record More... |
|
| getFields ($tag) | |
| get fields for the given MARC tag More... |
|
| getMarcFields ($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) | |
Public Attributes | |
| $marc | |
Public Attributes inherited from AlmaObject
| |
| $el_access = array() | |
| $xml | |
| $templateDir = __DIR__ . "/templates" | |
Methods for fields and subfields in Alma's MARCXML.
Definition at line 1935 of file grima-lib.php.
| AlmaObjectWithMARC::addControlField | ( | $tag, | |
| $data | |||
| ) |
add a data field to the MARC record using Normac
| string | $tag | a three character MARC tag |
| string | $data | control field data |
Definition at line 1954 of file grima-lib.php.
| AlmaObjectWithMARC::addDataField | ( | $tag, | |
| $indicators, | |||
| $subfields | |||
| ) |
add a data field to the MARC record using Normac
| string | $tag | a three character MARC tag |
| string | $indicators | both indicators in one string |
| Array | $subfields | each entry of the form $code => $value |
Definition at line 1970 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 2011 of file grima-lib.php.
References appendInnerXML().
| AlmaObjectWithMARC::deleteField | ( | $tag | ) |
delete all $tag fields from the MARC record
| string | $tag | a three character MARC tag |
Definition at line 2090 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 2105 of file grima-lib.php.
| AlmaObjectWithMARC::getFields | ( | $tag | ) |
get fields for the given MARC tag
| String | $tag | field |
Definition at line 2030 of file grima-lib.php.
| AlmaObjectWithMARC::getMarcFields | ( | $tag | ) |
get fields for the given MARC tag
| String | $tag | field |
Definition at line 2043 of file grima-lib.php.
| AlmaObjectWithMARC::getSubfieldValues | ( | $tag, | |
| $code | |||
| ) |
get subfield value
| String | $tag | field |
| String | $code | subfield |
Definition at line 2073 of file grima-lib.php.
| AlmaObjectWithMARC::normacToXML | ( | ) |
| 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 2124 of file grima-lib.php.
| AlmaObjectWithMARC::useNormac | ( | ) |
Definition at line 1939 of file grima-lib.php.
| AlmaObjectWithMARC::$marc |
Definition at line 1937 of file grima-lib.php.
1.8.13