Show
Ignore:
Timestamp:
01.03.2010 13:04:36 (10 years ago)
Author:
kjdon
Message:

should be using assocfilepath instead of archivedir

Files:
1 modified

Legend:

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

    r20917 r21743  
    709709 
    710710  // _thisOID_              the OID (directory) of the current document - this corresponds 
    711   //                        to the archivedir metadata element 
     711  //                        to the assocfilepath metadata element 
    712712 
    713713  // _documentheader_       Custom header info for the specified document 
     
    753753    // we're at document level 
    754754 
    755     metadata.insert ("archivedir"); 
     755    metadata.insert ("assocfilepath"); 
    756756 
    757757    comerror_t err; 
     
    856856     
    857857      if (is_top (arg_d)) 
    858     disp.setmacro ("thisOID", displayclass::defaultpackage, dm_safe(response.docInfo[0].metadata["archivedir"].values[0])); 
     858    disp.setmacro ("thisOID", displayclass::defaultpackage, dm_safe(response.docInfo[0].metadata["assocfilepath"].values[0])); 
    859859      else { 
    860     MetadataInfo_t *parentad = response.docInfo[0].metadata["archivedir"].parent; 
     860    MetadataInfo_t *parentad = response.docInfo[0].metadata["assocfilepath"].parent; 
    861861    text_t thisOID; 
    862862    while (parentad != NULL) {