Class: File_MARC_Record
Source Location: /File_MARC-1.4.1/File/MARC/Record.php
Represents a single MARC record
Author(s):
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
__construct (Constructor) [line 104]
Start function Set all variables to defaults to create new File_MARC_Record object
Parameters:
__destruct (Destructor) [line 120]
addWarning [line 416]
true addWarning(
string
$warning)
|
|
Add a warning to the MARC record that something non-fatal occurred during parsing.
Parameters:
appendField [line 171]
deleteFields [line 390]
int deleteFields(
string
$tag, [bool
$pcre = null])
|
|
Delete all occurrences of a field matching a tag name from the record.
Parameters:
getField [line 334]
{@link getField(
[string
$spec = null], [bool
$pcre = null])
|
|
Return the first File_MARC_Data_Field or File_MARC_Control_Field object that matches the specified tag name. Returns false if no match is found.
Parameters:
getFields [line 362]
getLeader [line 136]
Get MARC leader Returns the leader for the MARC record. No validation on the specified leader is performed.
getWarnings [line 428]
Return the array of warnings from the MARC record.
insertField [line 229]
Inserts a field in the MARC record relative to an existing field Inserts a File_MARC_Control_Field or File_MARC_Data_Field object before or after a specified existing field. // Example: Insert a new field before the first 650 field
// Create the new field
// Retrieve the target field for our insertion point
// Insert the new field
}
elseif ($subject) {
}
Parameters:
prependField [line 190]
setLeader [line 153]
string setLeader(
string
$leader)
|
|
Set MARC record leader Sets the leader for the MARC record. No validation on the specified leader is performed.
Parameters:
setLeaderLengths [line 299]
toJSON [line 508]
Return the MARC record in JSON format This method produces a JSON representation of a MARC record. The input encoding must be UTF8, otherwise the returned values will be corrupted.
toJSONHash [line 559]
Return the MARC record in Bill Dueber's MARC-HASH JSON format This method produces a JSON representation of a MARC record as defined at http://robotlibrarian.billdueber.com/new-interest-in-marc-hash-json/ The input * encoding must be UTF8, otherwise the returned values will be corrupted.
toRaw [line 460]
Return the record in raw MARC format. If you have modified an existing MARC record or created a new MARC record, use this method to save the record for use in other programs that accept the MARC format -- for example, your integrated library system. // Example: Modify a record and save the output to a file
// Now that the record has no subject fields, save it to disk
fopen($file, '/home/dan/no_subject.mrc', 'w');
toXML [line 616]
string toXML(
[string
$encoding = "UTF-8"], [bool
$indent = true], [bool
$single = true])
|
|
Return the MARC record in MARCXML format This method produces an XML representation of a MARC record that attempts to adhere to the MARCXML standard documented at http://www.loc.gov/standards/marcxml/
Parameters:
__toString [line 484]
Return the MARC record in a pretty printed string This method produces an easy-to-read textual display of a MARC record. The structure is roughly: <tag> <ind1> <ind2> _
Documentation generated on Wed, 13 Nov 2019 12:37:08 -0500 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|