|
yaz_record
Returns a record
(PHP 4 >= 4.0.1, PECL yaz:0.9-1.0.9)
The yaz_record() function inspects a record in the current result set at the position specified by parameter pos. Parameters
Return ValuesReturns the record at position pos or an empty string if no record exists at the given position. If no database record exists at the given position an empty string is returned. ExamplesExample 2676. Array for GRS-1 recordConsider this GRS-1 record: (4,52)Robert M. Pirsig
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 <?php will output: Array Example 2677. Working with MARCXMLThe 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). <?php
The record <?php For PHP 5 the XSL extension must be used instead of Sablotron XSLT. Code Examples / Notes » yaz_recordj dot penez
To obtain iso2709 format (complete format), just set type to "raw"
|