PHP_MARC Class
Create a PHP_MARC class
Located in /packages/collections/lib/php-marc/php-marc.php (line 382)
| Class | Description |
|---|---|
| PHP_MARC_YAZ | PHP_MARC_YAZ class |
Append field to existing
Given Field object will be appended to the existing list of fields. Field will be appended last and not in its "correct" location.
Delete field
Delete all occurances of a field
Delete Field
Delete the first occurance of the given field.
Formatted representation of PHP_MARC_Field
Format a Field with a sprintf()-like formatting syntax. The formatting codes are the names of the subfields of the Field.
Get specific field
Search for field in Record fields based on field name, e.g. 020
Return all PHP_MARC_Field objects matching criteria. If the criteria is omitted all fields will be returned
Return formatted
Return the Record in a formatted fashion. Similar to the output of the formatted() function in MARC::Record in Perl
Get/Set Leader
If argument specified, sets leader, otherwise gets leader. No validation on the specified leader is performed
Set Leader lengths
Set the Leader lengths of the record according to defaults specified in http://www.loc.gov/marc/bibliographic/ecbdldrd.html
Clone record
Clone a record with all its Fields and subfields
Start function
Set all variables to defaults to create new PHP_MARC object
Get subfield of PHP_MARC_Field object
Returns the value of a specific subfield of a given Field object
Build Record Directory
Generate the directory of the Record according to existing data.
Croaking function
Similar to Perl's croak function, which ends parsing and raises an user error with a descriptive message.
Sort fields
Sort all fields in record in appropriate manner. By default this is in numerically ascending order.
Fuction to issue warnings
Warnings will not be displayed unless explicitly accessed, but all warnings issued during parse will be stored
Documentation generated on Wed, 05 Mar 2008 16:47:04 -0600 by phpDocumentor 1.3.1