Show
Ignore:
Timestamp:
09.11.2011 19:10:22 (8 years ago)
Author:
ak19
Message:

Dr Bainbridge fixed the Datelist Browsing Classifier: previously, if the format features for Datelist were set to contain the srclink, this wasn't being resolved to the full path. But it did work for the default VListBrowsingClassifier. Turns out that the GS2 runtime code was replacing assocfilepath metadata with a fuller path for the VListBrowsingClassifer. This has now been added into the Datelist classifer too.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/datelistbrowserclass.cpp

    r23453 r24810  
    2727#ifdef GSDL_USE_DATELIST_BROWSER 
    2828 
     29#include "browsetoolsclass.h" 
    2930#include "datelistbrowserclass.h" 
    3031#include <assert.h> 
     
    7172                        outconvertclass &outconvert, ostream &textout, ostream &logout) { 
    7273 
     74  browsetoolsclass btools; 
    7375  text_t lastyear = "0000"; 
    7476  text_t lastmonth = "00"; 
     
    166168    options["icon"] = icon; 
    167169    options["highlight"] = "0"; 
     170    options["DocImage"] = btools.get_cover_image(); 
     171    options["assocfilepath"] = btools.get_assocfile_path(); 
     172 
    168173    textout << outconvert << disp  
    169174            << get_formatted_string (collection, collectproto,