Changeset 7333


Ignore:
Timestamp:
2004-05-13T20:47:00+12:00 (20 years ago)
Author:
davidb
Message:

Collage code updated to take advantage of dynamic
paramters specified as minus options to Collage
classifier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/documentaction.cpp

    r6936 r7333  
    893893      }
    894894
    895       if (collage)
     895      if (collage) {
    896896        disp.setmacro ("collageclassifier", "document", "_collageapplet_");
     897
     898            // Next, macros that control the way the classifier is displayed
     899            text_t parameters = response.docInfo[0].metadata["parameters"].values[0];
     900
     901            // extract key=value pairs and set as macros
     902            text_t::iterator here = parameters.begin();
     903            text_t::iterator end = parameters.end();
     904            text_t key, value;
     905
     906            while (here != end) {
     907              // get the next key and value pair
     908              here = getdelimitstr (here, end, '=', key);
     909              here = getdelimitstr (here, end, ';', value);
     910
     911              // store this key=value pair
     912              if (!key.empty() && !value.empty()) {
     913                disp.setmacro ("collage"+key, "document", value);
     914              }
     915            }
     916
     917       
     918      }
    897919    }
    898920
Note: See TracChangeset for help on using the changeset viewer.