Changeset 3989 for exist


Ignore:
Timestamp:
04/06/08 16:28:48 (11 years ago)
Author:
cbyrom
Message:

Fix issue 977 ( http://proj.badc.rl.ac.uk/ndg/ticket/977):

  • add missing code to allow numsim/browse quick searches on ndg portal

+ fix problem with kid template to ensure results display properly
+ add setting up docs to help set up the ows_server app

File:
1 edited

Legend:

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

    r3125 r3989  
    11from eXistConnector import * 
     2from ndgXqueries import ndgXqueries 
     3import xmlHandler2 
     4 
    25class ndg_eXist(eXistConnector): 
    36    ''' Adds ndg methods to a "standard" exist Connector ''' 
     
    8891        the target used is the exist collection name, and scope, bbox and dateRange are ignored, 
    8992        and a python summary object is returned ''' 
    90         xquery={'ndg_B_metadata':xq.molesSearchSummary,'NumSim':xq.numsimSummary}[target] 
     93        #select the right query according to the docType 
     94        xqName={'ndg_B_metadata':'molesSummary','NumSim':'numsimSummary'}[target] 
     95        xquery=ndgXqueries()[xqName] 
    9196        xquery=xquery.replace('SEARCHSTRING',term) 
    9297        r=self.executeChunkedQuery(xquery,start,howmany) 
    93         print r 
    94         x=xmlh(str(r),string=1) 
     98        x=xmlHandler2.xmlHandler(str(r),string=1) 
    9599        h=x.tree.get('hits') 
    96100        self.results=[] 
Note: See TracChangeset for help on using the changeset viewer.