Ignore:
Timestamp:
2010-05-06T12:55:03+12:00 (14 years ago)
Author:
davidb
Message:

Changes necessary to support new sql-query action

File:
1 edited

Legend:

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

    r21808 r22046  
    12651265 
    12661266    ResultDocInfo_t& trav_docinfo = trav_response.docInfo[0];
     1267
    12671268    // use this for rest of routine
    12681269    docinfo = trav_docinfo;
     
    12811282    here++;
    12821283    if (*(oid.begin()) == '"') translate_parent (oid, docinfo.OID);
    1283    
     1284
    12841285    //get the information associated with the metadata for child doc
    12851286    if (!get_info (oid, collection, "", child_metadata,
     
    12961297    text_t child_metavalue
    12971298      = get_formatted_meta_text(child_docinfo.OID,metaname_rec,meta,siblings_values);
     1299
     1300
    12981301    if (!first) result += child_field;
    12991302    first = false;
    13001303    // need to do this here cos otherwise we are in the wrong document
    1301     result +=  expand_metadata(child_metavalue,collection,collectproto,
    1302                    child_docinfo,disp,options,logout);
     1304    text_t em =  expand_metadata(child_metavalue,collection,collectproto,
     1305                 child_docinfo,disp,options,logout);
     1306
     1307    result += em;
    13031308  }
    13041309  return result;
Note: See TracChangeset for help on using the changeset viewer.