source: MILK/trunk/milk_server/milk_server/controllers/browse/ @ 6548

Subversion URL:
Revision 6548, 3.1 KB checked in by sdonegan, 11 years ago (diff)

Updated with location of Joomla RSS feed for news updates on the front page

2 Module to store various constants used by the browse and discovery controllers
3 NB, the primary purpose of this is to separate these out from the controllers
4 so they can be used in the test suite to check results
6 @author: C Byrom, Tessella May 2009
8DISCOVERY_HOME_TITLE = "NERC Data Discovery Service"
13'''#ORDERBY_SENSIBLE_NAMES = {'textRelevance':'Text matches',
14                          'datasetOrder':'Dataset name',
15                          'dataCentre':'Data centre name',
16                  t        'datasetStartDate':'Dataset start date',
17                          'datasetEndDate':'Dataset end date',                         
18                          'datasetLinkedPopularity':'Popularity of dataset by links followed',
19                          'datasetResultsetPopularity':'Number of times dataset included in other results',
20                          'proximity':'Proximity to centre of spatial search',
21                          'proximityNearMiss':'Results not in but within 10% of original AOI',
22                          'datasetUpdateOrder':'Date of most recent change to metadata',
23                          'discoveryIngestDate':'Date of ingest into DDS catalogue'
24                         }'''
26ORDERBY_SENSIBLE_NAMES = {'Text matches':'textRelevance',
27                          'Dataset name':'datasetOrder',
28                          'Data centre name':'dataCentre',
29                          'Dataset start date':'datasetStartDate',
30                          'Dataset end date':'datasetEndDate',                         
31                          'Popularity of dataset by links followed':'datasetLinkedPopularity',
32                          'Number of times dataset included in other results':'datasetResultsetPopularity',
33                          'Proximity to centre of spatial search':'proximity',
34                          'Results not in but within 10% of original AOI':'proximityNearMiss',
35                          'Date of most recent change to metadata':'datasetUpdateOrder',
36                          'Date of ingest into DDS catalogue':'discoveryIngestDate'
37                          }
39#Use this list to provide the order of ordering indexes in list - can omit any too
40ORDERING_KEY=['Text matches','Dataset name','Data centre name','Dataset start date','Dataset end date','Popularity of dataset by links followed','Popularity of dataset by links followed',
41              'Number of times dataset included in other results','Proximity to centre of spatial search','Date of most recent change to metadata','Date of ingest into DDS catalogue']
44# various error messages
45INCOMPLETE_SEARCH_INPUT_MESSAGE = "Incomplete search inputs - please enter values for: "
46INVALID_BBOX_MESSAGE = "Invalid bounding box dimensions entered: "
47INVALID_DATERANGE_MESSAGE = "Invalid dates entered: "
48INCOMPLETE_DATERANGE_MESSAGE = "Incomplete date range entered: "
Note: See TracBrowser for help on using the repository browser.