Changeset 21743 for main/trunk/greenstone2/runtime-src/src
- Timestamp:
- 2010-03-01T13:04:36+13:00 (14 years ago)
- Location:
- main/trunk/greenstone2/runtime-src/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/recpt/browsetoolsclass.cpp
r16481 r21743 104 104 text_t browsetoolsclass::get_cover_image() 105 105 { 106 return "_httpprefix_/collect/[collection]/index/assoc/{Or}{[parent(Top):a rchivedir],[archivedir]}/cover.jpg";106 return "_httpprefix_/collect/[collection]/index/assoc/{Or}{[parent(Top):assocfilepath],[assocfilepath]}/cover.jpg"; 107 107 } 108 108 -
main/trunk/greenstone2/runtime-src/src/recpt/documentaction.cpp
r20917 r21743 709 709 710 710 // _thisOID_ the OID (directory) of the current document - this corresponds 711 // to the a rchivedirmetadata element711 // to the assocfilepath metadata element 712 712 713 713 // _documentheader_ Custom header info for the specified document … … 753 753 // we're at document level 754 754 755 metadata.insert ("a rchivedir");755 metadata.insert ("assocfilepath"); 756 756 757 757 comerror_t err; … … 856 856 857 857 if (is_top (arg_d)) 858 disp.setmacro ("thisOID", displayclass::defaultpackage, dm_safe(response.docInfo[0].metadata["a rchivedir"].values[0]));858 disp.setmacro ("thisOID", displayclass::defaultpackage, dm_safe(response.docInfo[0].metadata["assocfilepath"].values[0])); 859 859 else { 860 MetadataInfo_t *parentad = response.docInfo[0].metadata["a rchivedir"].parent;860 MetadataInfo_t *parentad = response.docInfo[0].metadata["assocfilepath"].parent; 861 861 text_t thisOID; 862 862 while (parentad != NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.