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

Subversion URL:
Revision 6057, 2.9 KB checked in by sdonegan, 12 years ago (diff)

changed title and oai info link for production

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"
12'''#ORDERBY_SENSIBLE_NAMES = {'textRelevance':'Text matches',
13                          'datasetOrder':'Dataset name',
14                          'dataCentre':'Data centre name',
15                  t        'datasetStartDate':'Dataset start date',
16                          'datasetEndDate':'Dataset end date',                         
17                          'datasetLinkedPopularity':'Popularity of dataset by links followed',
18                          'datasetResultsetPopularity':'Number of times dataset included in other results',
19                          'proximity':'Proximity to centre of spatial search',
20                          'proximityNearMiss':'Results not in but within 10% of original AOI',
21                          'datasetUpdateOrder':'Date of most recent change to metadata',
22                          'discoveryIngestDate':'Date of ingest into DDS catalogue'
23                         }'''
25ORDERBY_SENSIBLE_NAMES = {'Text matches':'textRelevance',
26                          'Dataset name':'datasetOrder',
27                          'Data centre name':'dataCentre',
28                          'Dataset start date':'datasetStartDate',
29                          'Dataset end date':'datasetEndDate',                         
30                          'Popularity of dataset by links followed':'datasetLinkedPopularity',
31                          'Number of times dataset included in other results':'datasetResultsetPopularity',
32                          'Proximity to centre of spatial search':'proximity',
33                          'Results not in but within 10% of original AOI':'proximityNearMiss',
34                          'Date of most recent change to metadata':'datasetUpdateOrder',
35                          'Date of ingest into DDS catalogue':'discoveryIngestDate'
36                          }
38#Use this list to provide the order of ordering indexes in list - can omit any too
39ORDERING_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',
40              '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']
43# various error messages
44INCOMPLETE_SEARCH_INPUT_MESSAGE = "Incomplete search inputs - please enter values for: "
45INVALID_BBOX_MESSAGE = "Invalid bounding box dimensions entered: "
46INVALID_DATERANGE_MESSAGE = "Invalid dates entered: "
47INCOMPLETE_DATERANGE_MESSAGE = "Incomplete date range entered: "
Note: See TracBrowser for help on using the repository browser.