Returns a record
(PHP 4 >= 4.0.1, PECL yaz:0.9-1.0.9)
Example 2676. Array for GRS-1 record
Consider this GRS-1 record:
This record has two nodes at root level. First element at root level is
(4,52) [tag type 4, tag value 52], and has data
If this record is present at position $p, then
Example 2677. Working with MARCXML
The following PHP snippet returns a MARC21/USMARC record as MARCXML. The original record is returned in marc-8 (unknown to most XML parsers), so we convert it to UTF-8 (which all XML parsers must support).
For PHP 5 the XSL extension must be used instead of Sablotron XSLT.
Code Examples / Notes » yaz_record
j dot penez
To obtain iso2709 format (complete format), just set type to "raw"