Changeset 24810


Ignore:
Timestamp:
11/09/11 19:10:22 (9 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.

File:
1 edited

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,
Note: See TracChangeset for help on using the changeset viewer.