[Yazlist] z3950 query through yazproxy returns only 'brief' result

listen listen listen at listening-station.net
Tue Jan 27 18:55:13 CET 2009


Mike,

I'm very sorry if I was not clear.

I am making this request through yaz proxy's SRU/Z39.50 service over http.

For my example http request:

http://localhost:9000/
<target_name>?version=1.1&operation=searchRetrieve&query=water&maximumRecords=30&recordSchema=marcxml&startRecord=1

I see no way to specify the element name.

I also looked at the documentation/xsd's for the yaz proxy config xml file
and can find no way to specify the element set name in the target's
configuration.

I attempted to add the elementSet xml element nested inside
recordInfo/recordSyntax

But this had no effect.

I understand that accessing yaz proxy using a client such as yaz-client
works.

Thanks,

Dan.

On Tue, Jan 27, 2009 at 10:04 AM, Mike Taylor <mike at indexdata.com> wrote:

> listen listen writes:
>  > Mike,
>  >
>  > Thanks for the quick response!
>  >
>  > I have one more question - sorry if this is an obvious one:
>  >
>  > Where do I specify the element-set parameter you mention below?
>  >
>  > When I add it to the query string, I get an Unsupported parameter
>  > exception.
>  >
>  > I looked at the xml configuration schema files - and cannot find
>  > where to set it there.
>
> yaz-proxy passes through whatever the connecting client has requested.
> So if your client requests a record with element-set name "f" from the
> proxy, then the proxy will request a record with element-set name "f"
> from the back-end server.
>
>  _/|_
>  ___________________________________________________________________
> /o ) \/  Mike Taylor    <mike at indexdata.com>
> http://www.miketaylor.org.uk
> )_v__/\  "A TRUE Klingon Warrior does not comment his code!" -- Klingon
>         Programming Mantra
>
>
>
>  >
>  > Thanks again for your help.
>  >
>  > Dan.
>  >
>  > On Tue, Jan 27, 2009 at 4:37 AM, Mike Taylor <mike at indexdata.com>
> wrote:
>  >
>  > > listen listen writes:
>  > >  > Hello,
>  > >  >
>  > >  > I am using yazproxy to connect to a password protected z3950
> service.
>  > >  >
>  > >  > When I issue a search request such as:
>  > >  >
>  > >  > http://localhost:9000/<some
>  > >  >
>  > >
> target>?version=1.1&operation=searchRetrieve&query=water&maximumRecords=30&recordSchema=marcxml&startRecord=1
>  > >  >
>  > >  > I receive result records that contain only a few fields - for
> example:
>  > >  >
>  > >  > <datafield tag="100" ind1=" " ind2=" ">
>  > >  > <subfield code="a">Gleick, Peter H.</subfield>
>  > >  > </datafield>
>  > >  > -
>  > >  > <datafield tag="245" ind1=" " ind2=" ">
>  > >  > <subfield code="a">The world's water, 2004-2005</subfield>
>  > >  > </datafield>
>  > >  > -
>  > >  > <datafield tag="260" ind1=" " ind2=" ">
>  > >  > <subfield code="b">Island Press</subfield>
>  > >  > </datafield>
>  > >  > -
>  > >  > <datafield tag="300" ind1=" " ind2=" ">
>  > >  > <subfield code="a">238</subfield>
>  > >  > </datafield>
>  > >  > -
>  > >  > <datafield tag="901" ind1=" " ind2=" ">
>  > >  > <subfield code="s">1.00</subfield>
>  > >  > </datafield>
>  > >  >
>  > >  > When I issue the same query using yaz-client (without issuing the
>  > > 'elements'
>  > >  > command) - I get the same fields as above. However, if I issue the
>  > > 'elements
>  > >  > F' command - then issue the 'show' command - I get more fields
> (some
>  > > fields
>  > >  > excluded for brevity):
>  > >  >
>  > >  > 010    $a 2002-7193
>  > >  > 020    $a 0-8225-4592-6 (lib. bdg. : alk. paper)
>  > >  > 050    $a GB662.3
>  > >  > 072    $a Books; Book review
>  > >  > 082    $a 551.48
>  > >  > 100    $a Nelson, Robin
>  > >  > 245    $a Where is water?
>  > >  > 260    $a United States $b Lerner Publs.
>  > >  > 300    $a p. cm
>  > >  > 440    $a First step nonfiction
>  > >  > 546    $a English
>  > >  > 650    $a Water; Water/Juvenile literature; Hydrology/Juvenile
>  > > literature
>  > >  > 787    $t Booklist v. 100 no. 4 (Oct. 15 2003). Zvirin, Stephanie,
>  > > reviewer
>  > >  > $t School Library Journal v. 50 no. 1 (Jan. 2004). Lowery, Jean,
>  > > reviewer
>  > >  > [with full text]
>  > >  > 901    $a Y $c Y $f Nonfiction $s 1.00
>  > >  >
>  > >  > Is there a brief record that is sent by default?
>  > >
>  > > It is up to the server what it sends when no element-set name is
>  > > specified -- could be the brief record, the full record or something
>  > > else.
>  > >
>  > >  > Or - is there a way to request the full record?
>  > >
>  > > Yes -- use element-set name, just as you did with yaz-client.
>  > >
>  > >  _/|_
>  > >  ___________________________________________________________________
>  > > /o ) \/  Mike Taylor    <mike at indexdata.com>
>  > > http://www.miketaylor.org.uk
>  > > )_v__/\  "Your karma just ran over my dogma" -- Walter Benesch.
>  > >
>  > >
>  > > _______________________________________________
>  > > Yazlist mailing list
>  > > Yazlist at lists.indexdata.dk
>  > > http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yazlist
>  > >
>  > _______________________________________________
>  > Yazlist mailing list
>  > Yazlist at lists.indexdata.dk
>  > http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yazlist
>
> _______________________________________________
> Yazlist mailing list
> Yazlist at lists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yazlist
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.indexdata.dk/pipermail/yazlist/attachments/20090127/06a312d8/attachment-0001.htm 


More information about the Yazlist mailing list