Ignore:
Timestamp:
15/10/09 10:00:36 (11 years ago)
Author:
sdonegan
Message:

Updates to allow proper paging as per num of search results and ordering of orderby without letter prefix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/controllers/browse/browserconstants.py

    r5785 r5844  
    2323                         }''' 
    2424 
    25 ORDERBY_SENSIBLE_NAMES = {'A.    Text matches':'textRelevance', 
    26                           'B.    Dataset name':'datasetOrder', 
    27                           'C.    Data centre name':'dataCentre', 
    28                           'D.    Dataset start date':'datasetStartDate', 
    29                           'E.    Dataset end date':'datasetEndDate',                           
    30                           'F.    Popularity of dataset by links followed':'datasetLinkedPopularity', 
    31                           'G.    Number of times dataset included in other results':'datasetResultsetPopularity', 
    32                           'H.    Proximity to centre of spatial search':'proximity', 
    33                           'I.    Results not in but within 10% of original AOI':'proximityNearMiss', 
    34                           'J.    Date of most recent change to metadata':'datasetUpdateOrder', 
    35                           'K.    Date of ingest into DDS catalogue':'discoveryIngestDate' 
     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' 
    3636                          } 
    3737 
     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'] 
     41               
    3842 
    3943# various error messages 
Note: See TracChangeset for help on using the changeset viewer.