Changeset 4588


Ignore:
Timestamp:
11/12/08 09:40:25 (11 years ago)
Author:
cbyrom
Message:

Fix atom search xquery to only return atoms - i.e. ignoring the xsd and dif files stored in the atom collection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/python/ndgUtils/eXistInterface.py

    r4529 r4588  
    163163        xquery = "declare namespace moles='http://ndg.nerc.ac.uk/schema/moles2beta';\n" + \ 
    164164            "declare namespace atom='http://www.w3.org/2005/Atom';\n" + \ 
    165             "for $DE in collection('/db/atoms')//root()[" 
     165            "for $DE in collection('/db/atoms')/entry[" 
    166166 
    167167        # only add the required search clauses - NB, these increase the search time 
Note: See TracChangeset for help on using the changeset viewer.