Changeset 1877
- Timestamp:
- 2001-01-30T17:49:32+13:00 (23 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/pageaction.cpp
r1870 r1877 120 120 iconurl.clear(); 121 121 122 if (!response.docInfo[0].metadata["iconcollectionsmall"].values[0].empty()) 123 collectionname = "<img width=150 border=1 src=\"" 124 + response.docInfo[0].metadata["iconcollectionsmall"].values[0] 125 + "\" alt=\"" + alt + "\">"; 126 else if (!response.docInfo[0].metadata["iconcollection"].values[0].empty()) 127 { 128 iconurl = response.docInfo[0].metadata["iconcollection"].values[0]; 129 } 122 if (!response.docInfo[0].metadata["iconcollectionsmall"].values[0].empty()) { 123 iconurl = response.docInfo[0].metadata["iconcollectionsmall"].values[0]; 124 } else if (!response.docInfo[0].metadata["iconcollection"].values[0].empty()) { 125 iconurl = response.docInfo[0].metadata["iconcollection"].values[0]; 126 } 130 127 131 128 if (!iconurl.empty()) … … 165 162 166 163 text_t link = "<a href=\"_gwcgi_?"+optsite+"a=p&p=about&c=" + *collist_here + "\">"; 167 if (*collist_here == "chinese")168 link = "<a href=\"_gwcgi_?"+optsite+"a=p&p=about&l=zh&nw=u&c=" + *collist_here + "\">";169 if (*collist_here == "arabic")170 link = "<a href=\"_gwcgi_?"+optsite+"a=p&p=about&w=a&c=" + *collist_here + "\">";171 164 172 165 if (!cinfo->receptionist.empty()) … … 182 175 } 183 176 184 // disp.setmacro ("homeextra", "home", homeextra);185 177 for (; count%3 != 0; count ++) homeextra += "<td></td>\n"; 186 178 } -
trunk/gsdl/src/recpt/receptionist.cpp
r1870 r1877 1152 1152 if (collectproto != NULL) { 1153 1153 collectproto->get_collectinfo (collection, cinfo, err, logout); 1154 text_t httpcollection 1155 = "http://" + cinfo.httpdomain + cinfo.httpprefix 1156 +"/collect/" + collection; 1157 1154 text_t httpcollection; 1155 if (!cinfo.httpdomain.empty()) httpcollection = "http://"; 1156 httpcollection += cinfo.httpdomain + cinfo.httpprefix + "/collect/" + collection; 1158 1157 disp.setmacro ("httpcollection", "Global", httpcollection); 1159 1158 } … … 1235 1234 if (!iconcollection.empty()) 1236 1235 { 1237 if (iconcollection[0]=='/') 1236 ColInfoResponse_t cinfo; 1237 comerror_t err; 1238 collectproto->get_collectinfo (collection, cinfo, err, logout); 1239 if (iconcollection[0]=='/' && !cinfo.httpdomain.empty()) 1238 1240 { 1239 1241 // local but with full path 1240 ColInfoResponse_t cinfo;1241 comerror_t err;1242 collectproto->get_collectinfo (collection, cinfo, err, logout);1243 1242 iconcollection = "http://" + cinfo.httpdomain + iconcollection; 1244 disp.setmacro("iconcollection", "Global",iconcollection);1243 disp.setmacro("iconcollection", "Global", iconcollection); 1245 1244 } 1246 1245 }
Note:
See TracChangeset
for help on using the changeset viewer.