Changeset 3989


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

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/README.txt

    r2476 r3989  
    1 This file is for you to describe the ows_server application. Typically 
    2 you would include information such as the information below: 
     1Installing and running ows_server: 
    32 
    4 Installation and Setup 
    5 ====================== 
     31) Get Egg setup tools installed if not already present.  
     4$ python ez_setup.py 
    65 
    7 Install ``ows_server`` using easy_install:: 
     62)  Create an egg to deploy - in /ows_framework/ows_server run: 
     7$ python setup.py bdist_egg 
    88 
    9     easy_install ows_server 
     93) Install egg: 
     10$ easy_install dist/ows_...egg 
    1011 
    11 Make a config file as follows:: 
     125) Repeat 1+2 to install /ows_framework/ows_common egg 
    1213 
    13     paster make-config ows_server config.ini 
    14      
    15 Tweak the config file as appropriate and then setup the application:: 
     146) Repeat 1+2 to install ndg.security egg - NB, codebase available from 
    1615 
    17     paster setup-app config.ini 
    18      
    19 Then you are ready to go. 
     16http://proj.badc.rl.ac.uk/ndg/browser/TI12-security/trunk/python 
     17 
     187) Install AuthKit egg, required by security module: 
     19 
     20$ easy_install -vf http://ndg.nerc.ac.uk/dist "AuthKit>0.4" 
     21 
     228) Install ZSI: 
     23 
     24$ easy_install ZSI 
     25 
     269) Install TurboKid: 
     27 
     28$ easy_install TurboKid 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/short_results.kid

    r3503 r3989  
    1010    <div id="entirepage"> 
    1111        <div py:replace="header()"/> 
    12         <div py:replace="PageTabs(tlist,status)"/>--> 
    1312        <div py:replace="PageTabs('Results')"/> 
    1413        <div py:replace="searchOneLine(targets=c.searchTarget)"/> 
  • 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.