|
List Info
Thread: Does PHP/YAZ support the 'opac' record syntax?
|
|
| Does PHP/YAZ support the 'opac' record
syntax? |

|
2006-12-21 22:12:40 |
Hi,
Can anyone confirm that PHP/YAZ (version 1.0.7) supports
returning
records in the OPAC record syntax? I can get records back
from my target
using the yaz-client:
...
505 21 $t The brick funnel $p P.85.
505 21 $t Sunday on a country river $p P.86.
505 21 $t Ripe in the arbours of the nose $p P.87.
505 21 $t The weatherproof jungle tree $p P.89.
505 21 $t Jet propulsion stereo $p P.90.
505 21 $t Industrial relations $p P.91.
907 $a .b50888900
Data holdings 0
localLocation: In Process Book
callNumber: No Call Number
publicNote: IN LIBRARY
nextResultSetPosition = 2
Elapsed: 0.023623
However, my php script on the same machine, using
yaz_syntax($id,
'opac') [(also tried yaz_syntax($id,
"1.2.840.10003.5.102")] and
yaz_record($id, $p, "string") produces the
following output:
...
505 21 $t The brick funnel $p P.85.
505 21 $t Sunday on a country river $p P.86.
505 21 $t Ripe in the arbours of the nose $p P.87.
505 21 $t The weatherproof jungle tree $p P.89.
505 21 $t Jet propulsion stereo $p P.90.
505 21 $t Industrial relations $p P.91.
907 $a .b50888900
As you can see, records that the script returns do not
contain the
holdings/location/etc. data. I've also tried
'yaz_record($id, $p, "xml;
charset=marc-8,utf-8")' with similar results. My script
has no problem
retrieving records using 'yaz_syntax($id,
"usmarc")'.
TIA,
Mark
--
Mark Jordan
Head of Library Systems
W.A.C. Bennett Library, Simon Fraser University
Burnaby, British Columbia, V5A 1S6, Canada
Phone (604) 291 5753 / Fax (604) 291 3023
mjordan sfu.ca / http://www.sfu.ca/~mjorda
n/
_______________________________________________
Yazlist mailing list
Yazlist lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
|
|
| Does PHP/YAZ support the 'opac' record
syntax? |

|
2006-12-21 23:43:21 |
Mark Jordan wrote:
> Hi,
>
> Can anyone confirm that PHP/YAZ (version 1.0.7)
supports returning
> records in the OPAC record syntax? I can get records
back from my target
> using the yaz-client:
>
> ...
> 505 21 $t The brick funnel $p P.85.
> 505 21 $t Sunday on a country river $p P.86.
> 505 21 $t Ripe in the arbours of the nose $p P.87.
> 505 21 $t The weatherproof jungle tree $p P.89.
> 505 21 $t Jet propulsion stereo $p P.90.
> 505 21 $t Industrial relations $p P.91.
> 907 $a .b50888900
> Data holdings 0
> localLocation: In Process Book
> callNumber: No Call Number
> publicNote: IN LIBRARY
> nextResultSetPosition = 2
> Elapsed: 0.023623
>
> However, my php script on the same machine, using
yaz_syntax($id,
> 'opac') [(also tried yaz_syntax($id,
"1.2.840.10003.5.102")] and
> yaz_record($id, $p, "string") produces the
following output:
>
> ...
> 505 21 $t The brick funnel $p P.85.
> 505 21 $t Sunday on a country river $p P.86.
> 505 21 $t Ripe in the arbours of the nose $p P.87.
> 505 21 $t The weatherproof jungle tree $p P.89.
> 505 21 $t Jet propulsion stereo $p P.90.
> 505 21 $t Industrial relations $p P.91.
> 907 $a .b50888900
>
> As you can see, records that the script returns do not
contain the
> holdings/location/etc. data. I've also tried
'yaz_record($id, $p, "xml;
> charset=marc-8,utf-8")' with similar results. My
script has no problem
> retrieving records using 'yaz_syntax($id,
"usmarc")'.
You should be able to use
yaz_record($id, $p, "opac");
to get the record as MARCXML + OPAC elements.
Right now I don't see why "opac" should be
needed.. "xml" ought to work
for this too. So we should allow this in a future version.
/ Adam
>
> TIA,
>
> Mark
>
_______________________________________________
Yazlist mailing list
Yazlist lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
|
|
| Does PHP/YAZ support the 'opac' record
syntax? |

|
2006-12-21 23:55:38 |
Adam Dickmeiss wrote:
> Mark Jordan wrote:
>> Hi,
>>
>> Can anyone confirm that PHP/YAZ (version 1.0.7)
supports returning
>> records in the OPAC record syntax? I can get
records back from my
>> target using the yaz-client:
>>
>> ...
>> 505 21 $t The brick funnel $p P.85.
>> 505 21 $t Sunday on a country river $p P.86.
>> 505 21 $t Ripe in the arbours of the nose $p P.87.
>> 505 21 $t The weatherproof jungle tree $p P.89.
>> 505 21 $t Jet propulsion stereo $p P.90.
>> 505 21 $t Industrial relations $p P.91.
>> 907 $a .b50888900
>> Data holdings 0
>> localLocation: In Process Book
>> callNumber: No Call Number
>> publicNote: IN LIBRARY
>> nextResultSetPosition = 2
>> Elapsed: 0.023623
>>
>> However, my php script on the same machine, using
yaz_syntax($id,
>> 'opac') [(also tried yaz_syntax($id,
"1.2.840.10003.5.102")] and
>> yaz_record($id, $p, "string") produces
the following output:
>>
>> ...
>> 505 21 $t The brick funnel $p P.85.
>> 505 21 $t Sunday on a country river $p P.86.
>> 505 21 $t Ripe in the arbours of the nose $p P.87.
>> 505 21 $t The weatherproof jungle tree $p P.89.
>> 505 21 $t Jet propulsion stereo $p P.90.
>> 505 21 $t Industrial relations $p P.91.
>> 907 $a .b50888900
>>
>> As you can see, records that the script returns do
not contain the
>> holdings/location/etc. data. I've also tried
'yaz_record($id, $p,
>> "xml; charset=marc-8,utf-8")' with
similar results. My script has no
>> problem retrieving records using 'yaz_syntax($id,
"usmarc")'.
>
> You should be able to use
> yaz_record($id, $p, "opac");
> to get the record as MARCXML + OPAC elements.
>
> Right now I don't see why "opac" should be
needed.. "xml" ought to work
> for this too. So we should allow this in a future
version.
>
> / Adam
>
Hi Adam,
Using 'yaz_record($id, $p, "opac");' produces the
following error:
"PHP Warning: yaz_record(): Bad yaz_record type opac -
or unable to
return record with type given in
/var/www/html/opac/findtest.php on line 72"
Line 72 in my script is " $rec = yaz_record($id, $p,
"opac");"
Mark
_______________________________________________
Yazlist mailing list
Yazlist lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
|
|
| Does PHP/YAZ support the 'opac' record
syntax? |

|
2007-01-04 23:24:57 |
Hi Adam,
I'd like to pick up our thread from last month on support
for opac
record syntax in PHP/YAZ. Using 'opac' as a parameter to
yaz_record, as
you suggested, results in a 'bad yaz_record type' error as
documented
below. I was able to return records in opac syntax from the
target in
yaz-client.
The reason I'd like to verify if YAZ/PHP supports this
syntax is that
I'm developing a PHP OPAC client (demo at
http://kubric
k.no-ip.info/opac/opac.php) that I plan to release under
a
public domain license, mainly as an example to other
developers rather
than a production client. Returning circ/status info is the
last
outstanding feature required to make my client a complete,
basic OPAC.
Thanks,
Mark
Mark Jordan wrote:
> Adam Dickmeiss wrote:
...
>>
>> You should be able to use
>> yaz_record($id, $p, "opac");
>> to get the record as MARCXML + OPAC elements.
>>
>> Right now I don't see why "opac" should
be needed.. "xml" ought to
>> work for this too. So we should allow this in a
future version.
>>
>> / Adam
>>
>
> Hi Adam,
>
> Using 'yaz_record($id, $p, "opac");' produces
the following error:
>
> "PHP Warning: yaz_record(): Bad yaz_record type
opac - or unable to
> return record with type given in
/var/www/html/opac/findtest.php on line
> 72"
>
> Line 72 in my script is " $rec = yaz_record($id,
$p, "opac");"
>
> Mark
>
>
>
--
Mark Jordan
Head of Library Systems
W.A.C. Bennett Library, Simon Fraser University
Burnaby, British Columbia, V5A 1S6, Canada
Phone (604) 291 5753 / Fax (604) 291 3023
mjordan sfu.ca / http://www.sfu.ca/~mjorda
n/
_______________________________________________
Yazlist mailing list
Yazlist lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
|
|
| Does PHP/YAZ support the 'opac' record
syntax? |

|
2007-01-06 13:10:24 |
Mark Jordan wrote:
> Hi Adam,
>
Jordan,
the "opac" for yaz_record ought to work. We've
been using this in
production for quite some time. Remember that yaz_record
also fails if
the script did not retrieve an OPAC from the target.
Obviously it does
when you use yaz-client.
Attached is a sample script which gets OPAC records from the
LoC target.
It could be that your PHP installation is using an old
version of YAZ /
PHP-YAZ which does not support OPAC retrieval via the ZOOM
API.
/ Adam
> I'd like to pick up our thread from last month on
support for opac
> record syntax in PHP/YAZ. Using 'opac' as a parameter
to yaz_record, as
> you suggested, results in a 'bad yaz_record type' error
as documented
> below. I was able to return records in opac syntax from
the target in
> yaz-client.
>
> The reason I'd like to verify if YAZ/PHP supports this
syntax is that
> I'm developing a PHP OPAC client (demo at
> http://kubric
k.no-ip.info/opac/opac.php) that I plan to release under
a
> public domain license, mainly as an example to other
developers rather
> than a production client. Returning circ/status info is
the last
> outstanding feature required to make my client a
complete, basic OPAC.
>
> Thanks,
>
> Mark
>
>
> Mark Jordan wrote:
>> Adam Dickmeiss wrote:
> ...
>>>
>>> You should be able to use
>>> yaz_record($id, $p, "opac");
>>> to get the record as MARCXML + OPAC elements.
>>>
>>> Right now I don't see why "opac"
should be needed.. "xml" ought to
>>> work for this too. So we should allow this in a
future version.
>>>
>>> / Adam
>>>
>>
>> Hi Adam,
>>
>> Using 'yaz_record($id, $p, "opac");'
produces the following error:
>>
>> "PHP Warning: yaz_record(): Bad yaz_record
type opac - or unable to
>> return record with type given in
/var/www/html/opac/findtest.php on
>> line 72"
>>
>> Line 72 in my script is " $rec =
yaz_record($id, $p, "opac");"
>>
>> Mark
>>
>>
>>
>
>
_______________________________________________
Yazlist mailing list
Yazlist lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
|
|
| Does PHP/YAZ support the 'opac' record
syntax? |

|
2007-01-07 22:31:46 |
Adam, thank you very much for the example. It does work for
me now. I
was using 'opac' as the syntax type in yaz_record but not
yaz_syntax. I
am getting back opac records now that I'm using that syntax
type in both
places.
Thanks again,
Mark
Adam Dickmeiss wrote:
> Mark Jordan wrote:
>> Hi Adam,
>>
>
> Jordan,
>
> the "opac" for yaz_record ought to work.
We've been using this in
> production for quite some time. Remember that
yaz_record also fails if
> the script did not retrieve an OPAC from the target.
Obviously it does
> when you use yaz-client.
>
> Attached is a sample script which gets OPAC records
from the LoC target.
>
> It could be that your PHP installation is using an old
version of YAZ /
> PHP-YAZ which does not support OPAC retrieval via the
ZOOM API.
>
> / Adam
>
>> I'd like to pick up our thread from last month on
support for opac
>> record syntax in PHP/YAZ. Using 'opac' as a
parameter to yaz_record,
>> as you suggested, results in a 'bad yaz_record
type' error as
>> documented below. I was able to return records in
opac syntax from the
>> target in yaz-client.
>>
>> The reason I'd like to verify if YAZ/PHP supports
this syntax is that
>> I'm developing a PHP OPAC client (demo at
>> http://kubric
k.no-ip.info/opac/opac.php) that I plan to release under
>> a public domain license, mainly as an example to
other developers
>> rather than a production client. Returning
circ/status info is the
>> last outstanding feature required to make my client
a complete, basic
>> OPAC.
>>
>> Thanks,
>>
>> Mark
>>
>>
>> Mark Jordan wrote:
>>> Adam Dickmeiss wrote:
>> ...
>>>>
>>>> You should be able to use
>>>> yaz_record($id, $p, "opac");
>>>> to get the record as MARCXML + OPAC
elements.
>>>>
>>>> Right now I don't see why "opac"
should be needed.. "xml" ought to
>>>> work for this too. So we should allow this
in a future version.
>>>>
>>>> / Adam
>>>>
>>>
>>> Hi Adam,
>>>
>>> Using 'yaz_record($id, $p, "opac");'
produces the following error:
>>>
>>> "PHP Warning: yaz_record(): Bad
yaz_record type opac - or unable to
>>> return record with type given in
/var/www/html/opac/findtest.php on
>>> line 72"
>>>
>>> Line 72 in my script is " $rec =
yaz_record($id, $p, "opac");"
>>>
>>> Mark
>>>
>>>
>>>
>>
>>
>
>
>
------------------------------------------------------------
------------
>
> _______________________________________________
> Yazlist mailing list
> Yazlist lists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
_______________________________________________
Yazlist mailing list
Yazlist lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
|
|
[1-6]
|
|