[pycsw-devel] search query responce
Tom Kralidis
tomkralidis at gmail.com
Wed Oct 14 07:26:22 PDT 2015
Hi Stogny. Note that you can address your questions to other pycsw
developers; comments interleaved:
On Wed, Oct 14, 2015 at 8:44 AM, Stogny Basil <v.stogny at gmail.com> wrote:
> Dear Tom,
>
> I have one more question.
>
> When using a standard query <mode=sru&operation=searchRetrieve&query=2> I
> got only 3 fields (identifier, title, type). How to get more fields, for
> example <source>?
> This field (source) is filled in the postgresql database.
>
By default pycsw's SRU support uses brief (minimal fields) representation.
Having said this, I would advise using the CSW API for full
flexibility. Note that SRU is/will be deprecated in future versions
of CSW.
> Regards, Basil Stogny
>
> http://192.168.133.71/pycsw/csw.py?config=default.cfg&mode=sru&operation=searchRetrieve&query=2&maximumRecords=5
>
> <!-- pycsw 1.8.3 -->
> <zs:searchRetrieveResponse
> xmlns:zd="http://www.loc.gov/zing/srw/diagnostic/"
> xmlns:zs="http://www.loc.gov/zing/srw/"
> xmlns:srw_dc="info:srw/schema/1/dc-schema"
> xmlns:zr="http://explain.z3950.org/dtd/2.1/"
> xmlns:sru="http://www.loc.gov/zing/srw/">
> <zs:version>1.1</zs:version>
> <zs:numberOfRecords>12</zs:numberOfRecords>
> <zs:record>
> <zs:recordData>
> <srw_dc:srw_dc xmlns:dc="http://purl.org/dc/elements/1.1/">
> <dc:identifier>urn:uuid:66ae76b7-54ba-489b-a582-0f0633d96493</dc:identifier>
> <dc:title>Maecenas enim</dc:title>
> <dc:type>http://purl.org/dc/dcmitype/Text</dc:type>
> </srw_dc:srw_dc>
> </zs:recordData>
> <zs:recordPosition>1</zs:recordPosition>
> </zs:record>
> <zs:recordSchema>info:srw/schema/1/dc-v1.1</zs:recordSchema>
> <zs:recordPacking>xml</zs:recordPacking>
> <zs:record>
>
>
>
>
> _______________________________________________
> pycsw-devel mailing list
> pycsw-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pycsw-devel
More information about the pycsw-devel
mailing list