note 91586 modified in function.yaz-search by danbrown

From: Date: Thu, 18 Jun 2009 01:50:56 +0000
Subject: note 91586 modified in function.yaz-search by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157048@lists.php.net to get a copy of this message
To display holdings data set the syntax and the record format to "opac" (at least for Horizon ILS). It will give you an xml, containg <holding> elements with all info: <?php $z = yaz_connect(... yaz_syntax($z, 'opac'); yaz_search($z, 'rpn', '@attr 1=4 "title%"'); yaz_wait(); $hits = yaz_hits($z); yaz_range($z, 1, $hits); yaz_present($z); for($i = 1; $i <= $hits; $i++) my_display(yaz_record($z, $i, 'opac')); yaz_close($z); function my_display($s) { $lines = explode("\n", trim($s)); var_dump($lines); } ?> --was-- To display holdings data set the syntax and the record format to "opac" (at least for Horizon ILS). It will give you an xml, containg <holding> elements with all info: $z = yaz_connect(... yaz_syntax($z, 'opac'); yaz_search($z, 'rpn', '@attr 1=4 "title%"'); yaz_wait(); $hits = yaz_hits($z); yaz_range($z, 1, $hits); yaz_present($z); for($i = 1; $i <= $hits; $i++) my_display(yaz_record($z, $i, 'opac')); yaz_close($z); function my_display($s) { $lines = explode("\n", trim($s)); var_dump($lines); } http://php.net/manual/en/function.yaz-search.php

« previous php.notes (#157048) next »