PHP Doku:: Prepares for a search - function.yaz-search.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige DiensteYAZYAZ Funktionenyaz_search

Ein Service von Reinhard Neidl - Webprogrammierung.

YAZ Funktionen

<<yaz_schema

yaz_set_option>>


3 BenutzerBeiträge:
- Beiträge aktualisieren...
k dot andris at gmail dot com
18.06.2009 0:49
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);
}
?>
Colibri
22.01.2009 17:42
When querying a SRU/SRW server, the "type" parameter must(?) be specified as "cql", e.g.
yaz_search($handle, "cql", "bath.isbn=1234");
jwohlers at mail dot wcc dot cc dot il dot us
1.02.2002 2:21
Quick Reference For Attribute Fields
(eg: "@attr 2=" refers to the Relation attribute)
1 = Use Field
2 = Relation
3 = Position
4 = Structure
5 = Truncate
6 = Completeness



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)