Changeset 24305

Show
Ignore:
Timestamp:
22.07.2011 17:21:42 (9 years ago)
Author:
ak19
Message:

The collectionmeta field related to titles in modelcol's collect.cfg now contains ex.dc.Title. For its display in the indexes drop-down of the search page to map to the titles display name, needed to adjust the lookup that runtime-src's collectserver does.

Location:
main/trunk/greenstone2
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/collect/modelcol/etc/collect.cfg

    r24299 r24305  
    66infodbtype  **infodbtype** 
    77 
    8 indexes     text dc.Title,ex.Title ex.Source 
     8indexes     text dc.Title,ex.dc.Title,ex.Title ex.Source 
    99defaultindex    text 
    1010 
     
    2020collectionmeta collectionextra   "**about**" 
    2121collectionmeta  .text "_labeltext_" 
    22 collectionmeta  .dc.Title,Title "_labelTitle_" 
     22collectionmeta  .dc.Title,ex.dc.Title,ex.Title "_labelTitle_" 
    2323collectionmeta  .Source "_labelSource_" 
    2424collectionmeta .document "_textdocument_" 
  • main/trunk/greenstone2/runtime-src/src/colservr/collectserver.cpp

    r24114 r24305  
    203203    text_t name = substr(cfgline[0].begin()+1,cfgline[0].end()); 
    204204    text_t new_name; 
     205     
     206    // make sure that any ex.XXX metadata in the string is turned into XXX for matching 
     207    name.replace("ex.",""); 
     208 
    205209    if (indexmap.from2to(name, new_name)) { 
    206210      meta_name = new_name;