Changeset 8473 for mauRepo/MolesManager/trunk
- Timestamp:
- 20/07/12 12:28:05 (9 years ago)
- Location:
- mauRepo/MolesManager/trunk/src/MolesManager
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
mauRepo/MolesManager/trunk/src/MolesManager/settings.py
r8433 r8473 1 1 # Django settings for MolesManager project. 2 2 import os 3 3 4 4 5 def decodeRelativePath(relPath): -
mauRepo/MolesManager/trunk/src/MolesManager/static/templates/cedaSearchResults.html
r8296 r8473 28 28 <thead> 29 29 <tr> 30 <th>Location</th> 31 <th>Id</th> 32 <th>Author</th> 30 <th>Title</th> 33 31 </tr> 34 32 </thead> 35 33 <tbody> 36 {% for location, id, authin searchResults %}34 {% for location, description, title in searchResults %} 37 35 <tr bgcolor="white"> 38 <td>{{ location }}</td> 39 <td><a href="{{ location }}">{{ id }}</a></td> 40 <td>{{ auth }}</td> 36 <td><a href="{{ location }}">{{ title }}</a></td> 37 </tr> 38 <tr bgcolor=#66CCFF> 39 <td>{{ description }}</td> 41 40 </tr> 42 41 {% endfor %} -
mauRepo/MolesManager/trunk/src/MolesManager/views/cedaSearch.py
r8445 r8473 23 23 @return: the first Observation or None 24 24 ''' 25 obse vations = request.moles3EPB.extractObservationByTitleKeywords(keywords)25 observations = request.moles3EPB.extractObservationByTitleKeywords(keywords) 26 26 titles = [] 27 27 ids = [] 28 28 list_list = [] 29 29 baseCov = "http://" + request.get_host() + "/cov/" 30 for o in obse vations:30 for o in observations: 31 31 a = "".join([baseCov, str(o.id)]) 32 32 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)) 36 35 except Exception as e: 37 36 print e
Note: See TracChangeset
for help on using the changeset viewer.