|
Grima 2018-08
Whispering into Alma's ear
|
Public Member Functions | |
| offsetSet ($offset, $value) | |
| offsetGet ($offset) | |
| loadFromAlma ($mms_id, $holding_id) | |
| populates the record from Alma More... |
|
| getMmsIfNeeded () | |
| populates the MMS ID if not already known More... |
|
| loadFromAlmaX ($holding_id) | |
| populates the record from Alma - only requires holding_id More... |
|
| addToAlmaBib ($mms_id) | |
| adds a new holding record to the specified bib More... |
|
| hasItems () | |
| checks whether a holding record has any items More... |
|
| updateAlma () | |
| update holding record in Alma More... |
|
| deleteFromAlma () | |
| delete the holding record from Alma More... |
|
| getMethodOfAcquisition () | |
| retrieves method of acquisition, fixed field 008/07 https://www.loc.gov/marc/holdings/hd008.html More... |
|
| setMethodOfAcquisition ($code) | |
| sets method of acquisition, fixed field 008/07 https://www.loc.gov/marc/holdings/hd008.html More... |
|
| getInstitutionCode () | |
| retrieves institution code from 852a More... |
|
| setInstitutionCode ($code) | |
| sets institution code from 852a More... |
|
| getLibraryCode () | |
| retrieves library code from 852b More... |
|
| setLibraryCode ($code) | |
| sets library code from 852b More... |
|
| getLocationCode () | |
| retrieves location code from 852c More... |
|
| setLocationCode ($code) | |
| sets location code from 852c More... |
|
| setCallNumberType ($ind1) # upgrade to normac | |
| setCallNumber ($h, $i, $ind1) # upgrade to normac | |
| moveToBib ($mms_id) | |
| moves the holding from one bib to another – only for empty holdings! More... |
|
| getItems () | |
| populate items property with Items objects ## XXX TEST More... |
|
| getItemList () | |
| populates itemList property from Alma More... |
|
| deleteTreeFromAlma () | |
| delete the holding and all of its items More... |
|
| deleteSubfieldMatching ($tag, $code, $regex) | |
| delete subfields matching a regex More... |
|
| deleteFieldMatching ($tag, $code, $regex) | |
| delete fields with subfields matching a regex More... |
|
Public Member Functions inherited from AlmaObjectWithMARC
| |
| 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) ## XXX | |
| 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... |
|
| deleteFieldMatching ($tag, $code, $regex) | |
| delete fields with subfields matching a regex More... |
|
| replaceOrAddSubfield ($tag, $code, $value) ## XXX | |
| 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) | |
Static Public Member Functions | |
| static | getMmsFromHoldingID ($holding_id) |
| populates the MMS ID More... |
|
Public Attributes | |
| $itemList | |
| $items = array() | |
| $xml | |
| $el_address | |
Public Attributes inherited from AlmaObjectWithMARC
| |
| $marc | |
Public Attributes inherited from AlmaObject
| |
| $el_access = array() | |
| $xml | |
| $templateDir = __DIR__ . "/templates" | |
class Holding
Definition at line 3033 of file grima-lib.php.
| Holding::addToAlmaBib | ( | $mms_id | ) |
adds a new holding record to the specified bib
| string | $mms_id | bib record to add the holdings record |
Definition at line 3187 of file grima-lib.php.
References $grima, and AlmaObjectWithMARC\normacToXML().
Referenced by moveToBib().
| Holding::deleteFieldMatching | ( | $tag, | |
| $code, | |||
| $regex | |||
| ) |
delete fields with subfields matching a regex
For example, delete all 856 fields with $u that contain "ezproxy" case insensitively, like: $this->deleteFieldMatching("856","u","/ezproxy/i");
| string | $tag | a three character MARC tag |
| string | $code | a subfield code |
| string | $regex | a regular expression |
Reimplemented from AlmaObjectWithMARC.
Definition at line 3477 of file grima-lib.php.
References AlmaObjectWithMARC\getFields(), and AlmaObjectWithMARC\useNormac().
| Holding::deleteFromAlma | ( | ) |
delete the holding record from Alma
Definition at line 3224 of file grima-lib.php.
References $grima.
Referenced by deleteTreeFromAlma(), and moveToBib().
| Holding::deleteSubfieldMatching | ( | $tag, | |
| $code, | |||
| $regex | |||
| ) |
delete subfields matching a regex
For example, delete all subfield $z in an 856 that contain "click" case insensitively, like: $this->deleteSubfieldMatching("856","z","/click/i");
| string | $tag | a three character MARC tag |
| string | $code | a subfield code |
| string | $regex | a regular expression |
Reimplemented from AlmaObjectWithMARC.
Definition at line 3452 of file grima-lib.php.
References AlmaObjectWithMARC\getFields(), and AlmaObjectWithMARC\useNormac().
| Holding::deleteTreeFromAlma | ( | ) |
delete the holding and all of its items
Definition at line 3429 of file grima-lib.php.
References $grima, deleteFromAlma(), and getItemList().
| Holding::getInstitutionCode | ( | ) |
retrieves institution code from 852a
Definition at line 3266 of file grima-lib.php.
References AlmaObjectWithMARC\getFields(), and AlmaObjectWithMARC\useNormac().
Referenced by offsetGet().
| Holding::getItemList | ( | ) |
populates itemList property from Alma
Definition at line 3417 of file grima-lib.php.
References $grima, and getMmsIfNeeded().
Referenced by deleteTreeFromAlma(), getItems(), and hasItems().
| Holding::getItems | ( | ) |
populate items property with Items objects ## XXX TEST
Definition at line 3405 of file grima-lib.php.
References $items, and getItemList().
| Holding::getLibraryCode | ( | ) |
retrieves library code from 852b
Definition at line 3292 of file grima-lib.php.
References AlmaObjectWithMARC\getFields(), and AlmaObjectWithMARC\useNormac().
Referenced by offsetGet().
| Holding::getLocationCode | ( | ) |
retrieves location code from 852c
Definition at line 3318 of file grima-lib.php.
References AlmaObjectWithMARC\getFields(), and AlmaObjectWithMARC\useNormac().
Referenced by offsetGet().
| Holding::getMethodOfAcquisition | ( | ) |
retrieves method of acquisition, fixed field 008/07 https://www.loc.gov/marc/holdings/hd008.html
Definition at line 3237 of file grima-lib.php.
References AlmaObjectWithMARC\getFields(), and AlmaObjectWithMARC\useNormac().
|
static |
populates the MMS ID
Definition at line 3128 of file grima-lib.php.
References $grima.
Referenced by getMmsIfNeeded(), and loadFromAlmaX().
| Holding::getMmsIfNeeded | ( | ) |
populates the MMS ID if not already known
Definition at line 3155 of file grima-lib.php.
References $grima, and getMmsFromHoldingID().
Referenced by getItemList().
| Holding::hasItems | ( | ) |
checks whether a holding record has any items
Definition at line 3200 of file grima-lib.php.
References getItemList().
| Holding::loadFromAlma | ( | $mms_id, | |
| $holding_id | |||
| ) |
| Holding::loadFromAlmaX | ( | $holding_id | ) |
populates the record from Alma - only requires holding_id
| $holding_id | Holding ID of holding |
Definition at line 3171 of file grima-lib.php.
References $grima, and getMmsFromHoldingID().
| Holding::moveToBib | ( | $mms_id | ) |
moves the holding from one bib to another – only for empty holdings!
Definition at line 3394 of file grima-lib.php.
References addToAlmaBib(), and deleteFromAlma().
| Holding::offsetGet | ( | $offset | ) |
Reimplemented from AlmaObject.
Definition at line 3052 of file grima-lib.php.
References getInstitutionCode(), getLibraryCode(), getLocationCode(), and AlmaObjectWithMARC\getSubfieldValues().
| Holding::offsetSet | ( | $offset, | |
| $value | |||
| ) |
Reimplemented from AlmaObject.
Definition at line 3039 of file grima-lib.php.
References setLocationCode().
| Holding::setCallNumber | ( | $h, | |
| $i, | |||
| $ind1 | |||
| ) |
Definition at line 3368 of file grima-lib.php.
References appendInnerXML(), and AlmaObjectWithMARC\normacToXML().
| Holding::setCallNumberType | ( | $ind1 | ) |
Definition at line 3339 of file grima-lib.php.
References AlmaObjectWithMARC\getFields(), and AlmaObjectWithMARC\useNormac().
| Holding::setInstitutionCode | ( | $code | ) |
sets institution code from 852a
| string | $code | - institution code |
Definition at line 3279 of file grima-lib.php.
References AlmaObjectWithMARC\getFields(), and AlmaObjectWithMARC\useNormac().
| Holding::setLibraryCode | ( | $code | ) |
sets library code from 852b
| string | $code | - library code |
Definition at line 3305 of file grima-lib.php.
References AlmaObjectWithMARC\getFields(), and AlmaObjectWithMARC\useNormac().
| Holding::setLocationCode | ( | $code | ) |
sets location code from 852c
| string | $code | - location code |
Definition at line 3331 of file grima-lib.php.
References AlmaObjectWithMARC\getFields(), and AlmaObjectWithMARC\useNormac().
Referenced by offsetSet().
| Holding::setMethodOfAcquisition | ( | $code | ) |
sets method of acquisition, fixed field 008/07 https://www.loc.gov/marc/holdings/hd008.html
| char | $code | - code for method of acquisition |
Definition at line 3252 of file grima-lib.php.
References AlmaObjectWithMARC\getFields(), and AlmaObjectWithMARC\useNormac().
| Holding::updateAlma | ( | ) |
update holding record in Alma
Definition at line 3211 of file grima-lib.php.
References $grima, and AlmaObjectWithMARC\normacToXML().
| Holding::$el_address |
Definition at line 3090 of file grima-lib.php.
| Holding::$itemList |
Definition at line 3035 of file grima-lib.php.
| Holding::$items = array() |
Definition at line 3036 of file grima-lib.php.
Referenced by getItems().
| Holding::$xml |
Definition at line 3037 of file grima-lib.php.