File_MARCBASE __construct(
string
$source, int
$type, string
$record_class)
|
|
Read in MARCXML records
This function reads in files or strings that contain one or more MARCXML records.
<?php
// Retrieve MARC records from a file
$journals = new
File_MARC('journals.mrc', SOURCE_FILE
);
// Retrieve MARC records from a string (e.g. Z39 query results)
$monographs = new
File_MARC($raw_marc, SOURCE_STRING
);
?>
Overridden in child classes as:
- File_MARC::__construct()
- Read in MARC records
- File_MARCXML::__construct()
- Read in MARCXML records
Parameters:
XMLWriter getXMLWriter(
)
|
|
Returns the XMLWriter object
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/
Returns the MARCXML collection footer
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/
Initializes the MARCXML output of a record or collection of records
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/