source: MILK/trunk/milk_server/milk_server/controllers/browse/browserconstants.py @ 6548

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/MILK/trunk/milk_server/milk_server/controllers/browse/browserconstants.py
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

Line 
1'''
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
5 
6 @author: C Byrom, Tessella May 2009
7'''
8DISCOVERY_HOME_TITLE = "NERC Data Discovery Service"
9DISCOVERY_HELP_EMAIL = "ceda@stfc.ac.uk"
10OAI_PROVIDER_PAGE = "http://ndg.nerc.ac.uk/oai-info-editor/home"
11NDG_RSS_FEED = "http://ndg.nerc.ac.uk/index.php?option=com_content&view=section&layout=blog&id=19&Itemid=95&format=feed&type=rss"
12
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                         }'''
25
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                          }
38
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']
42             
43
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.