Ignore:
Timestamp:
20/07/12 12:28:05 (8 years ago)
Author:
gparton
Message:

Updated search page to give something a little more meaningful in the results. Now has the title field as a link to the appropriate object with the description below.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/MolesManager/views/cedaSearch.py

    r8445 r8473  
    2323        @return: the first Observation or None  
    2424        ''' 
    25     obsevations = request.moles3EPB.extractObservationByTitleKeywords(keywords)  
     25    observations = request.moles3EPB.extractObservationByTitleKeywords(keywords)  
    2626    titles = [] 
    2727    ids = [] 
    2828    list_list = [] 
    2929    baseCov = "http://" + request.get_host() + "/cov/" 
    30     for o in obsevations: 
     30    for o in observations: 
    3131        a = "".join([baseCov, str(o.id)]) 
    3232        try: 
    33             responsibleAuthors = request.moles3EPB.observationAuthor(o) 
    34             if responsibleAuthors is not None: 
    35                 list_list.append((a, o.description, _appendAuthors(responsibleAuthors))) 
     33            if o.identifier[0].code is not None: 
     34                list_list.append((a, o.identifier[0].code, o.description)) 
    3635        except Exception as e: 
    3736            print e 
Note: See TracChangeset for help on using the changeset viewer.