Changeset 1282 for trunk/gsdl/src/recpt
- Timestamp:
- 2000-07-13T14:51:10+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/pagedbrowserclass.cpp
r1254 r1282 28 28 /* 29 29 $Log$ 30 Revision 1.11 2000/07/13 02:51:10 sjboddie 31 got DocumentArrowsBottom working for collections using "paged" browsers 32 (like gberg). The whole idea of arrows as used both in the query results 33 page and document pages needs to be revisited to get things working in 34 all situations 35 30 36 Revision 1.10 2000/06/29 02:47:20 sjboddie 31 37 added browser info (i.e VList, HList etc.) to status pages … … 136 142 137 143 if (section.OID != args["d"]) { 138 // set the _parentarrow_ macro139 text_t parentarrow = "<a href=\" _httpdocument_&cl=" + args["cl"] +140 "&d=" + section.OID + "\">_iconprev_</a>\n";144 text_t httpprevarrow = "_httpdocument_&cl=" + args["cl"] + "&d=" + section.OID; 145 text_t parentarrow = "<a href=\"" + httpprevarrow + "\">_iconprev_</a>\n"; 146 disp.setmacro ("httpprevarrow", "document", httpprevarrow); 141 147 disp.setmacro ("parentarrow", "document", parentarrow); 142 148 return 0; … … 164 170 165 171 text_t previousOID, previoustitle, nextOID, nexttitle; 166 text_t previousarrow, nextarrow ;172 text_t previousarrow, nextarrow, httpprevarrow, httpnextarrow; 167 173 bool found = false; 168 174 … … 181 187 previousOID = (*(thissection-1)).OID; 182 188 previoustitle = (*(thissection-1)).metadata["Title"].values[0]; 183 } else 189 } else { 184 190 previousarrow = "_document:parentarrow_"; 191 } 185 192 186 193 if ((thissection+1) != endsection) { … … 201 208 << ("_document:textnumpages_(" + text_t(numpages) + ")</center></td></tr>\n"); 202 209 203 if (!found) 204 nextarrow = "<a href=\"_httpdocument_&cl=" + args["cl"] + "&d=" + sections.docInfo[0].OID + 205 "\">" + sections.docInfo[0].metadata["Title"].values[0] + "_iconnext_</a>\n"; 206 else { 207 if (!previousOID.empty()) 208 previousarrow = "<a href=\"_httpdocument_&cl=" + args["cl"] + "&d=" + 209 previousOID + "\">_iconprev_" + previoustitle + "</a>\n"; 210 if (!nextOID.empty()) 211 nextarrow = "<a href=\"_httpdocument_&cl=" + args["cl"] + "&d=" + 212 nextOID + "\">" + nexttitle + "_iconnext_</a>\n"; 213 } 210 if (!found) { 211 httpnextarrow = "_httpdocument_&cl=" + args["cl"] + "&d=" + sections.docInfo[0].OID; 212 nextarrow = "<a href=\"" + httpnextarrow + "\">" + 213 sections.docInfo[0].metadata["Title"].values[0] + "_iconnext_</a>\n"; 214 215 } else { 216 if (!previousOID.empty()) { 217 httpprevarrow = "_httpdocument_&cl=" + args["cl"] + "&d=" + previousOID; 218 previousarrow = "<a href=\"" + httpprevarrow + "\">_iconprev_" + previoustitle + "</a>\n"; 219 } 220 if (!nextOID.empty()) { 221 httpnextarrow = "_httpdocument_&cl=" + args["cl"] + "&d=" + nextOID; 222 nextarrow = "<a href=\"" + httpnextarrow + "\">" + nexttitle + "_iconnext_</a>\n"; 223 } 224 } 225 226 if (!httpprevarrow.empty()) disp.setmacro ("httpprevarrow", "document", httpprevarrow); 227 if (!httpnextarrow.empty()) disp.setmacro ("httpnextarrow", "document", httpnextarrow); 214 228 215 229 textout << outconvert << disp << "<tr valign=middle>\n"
Note:
See TracChangeset
for help on using the changeset viewer.