Changeset 7432 for trunk/gsdl/src/recpt/pageaction.cpp
- Timestamp:
- 2004-05-25T16:31:41+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/pageaction.cpp
r7149 r7432 220 220 text_t collectionname = *collist_here; 221 221 222 if (get_info ("collection", *collist_here, metadata, false,222 if (get_info ("collection", *collist_here, "", metadata, false, 223 223 (*rprotolist_here).p, response, logout)) { 224 224 if (!lang.empty() && !response.docInfo[0].metadata["collectionname:"+lang].values[0].empty()) { … … 349 349 text_t alt = collectionname; 350 350 351 if (get_info ("collection", *collist_here, metadata, false,351 if (get_info ("collection", *collist_here, "", metadata, false, 352 352 (*rprotolist_here).p, response, logout)) { 353 353 // get the "collectionname" … … 501 501 text_t collectionname = *collist_here; 502 502 503 if (get_info ("collection", *collist_here, metadata, false,503 if (get_info ("collection", *collist_here, "", metadata, false, 504 504 (*rprotolist_here).p, response, logout)) { 505 505 if (!response.docInfo[0].metadata["collectionname"].values[0].empty()) { … … 760 760 cinfo = recpt->get_collectinfo_ptr (collectproto, arg_c, logout); 761 761 762 disp.setmacro ("numdocs", "Global", cinfo->numDocs);762 disp.setmacro ("numdocs", displayclass::defaultpackage, cinfo->numDocs); 763 763 unsigned long current_time = time(NULL); 764 764 unsigned long builddate = (current_time - cinfo->buildDate) / 86400; 765 disp.setmacro ("builddate", "Global", builddate);765 disp.setmacro ("builddate", displayclass::defaultpackage, builddate); 766 766 767 767 text_t numbytes; … … 773 773 numbytes = (text_t)cinfo->numBytes + " bytes"; 774 774 } 775 disp.setmacro("numbytes", "Global", numbytes);775 disp.setmacro("numbytes", displayclass::defaultpackage, numbytes); 776 776 } 777 777 … … 780 780 if (arg_p == "about") { 781 781 if (cinfo == NULL) { 782 disp.setmacro("cvariable", "Global", arg_c);782 disp.setmacro("cvariable", displayclass::defaultpackage, arg_c); 783 783 disp.setmacro("content", arg_p, "<p>_textbadcollection_<p>"); 784 784 return; … … 795 795 check = cinfo->format.find("Usability"); 796 796 if(check != cinfo->format.end()){ 797 disp.setmacro("usability", "Global","_imageusab_");798 disp.setmacro("usabinterface", "Global",("_usab"+(*check).second+"_"));799 disp.setmacro("usabilityscript", "Global", "_usabshowscript_");797 disp.setmacro("usability", displayclass::defaultpackage, "_imageusab_"); 798 disp.setmacro("usabinterface", displayclass::defaultpackage, ("_usab"+(*check).second+"_")); 799 disp.setmacro("usabilityscript", displayclass::defaultpackage, "_usabshowscript_"); 800 800 } 801 801 } … … 821 821 822 822 if (cinfo == NULL) { 823 disp.setmacro("cvariable", "Global", arg_c);823 disp.setmacro("cvariable", displayclass::defaultpackage, arg_c); 824 824 disp.setmacro("content", arg_p, "<p>_textbadcollection_<p>"); 825 825 return; … … 894 894 //**************** 895 895 bool getParents = false; 896 get_children ("", args["c"], metadata, getParents, collectproto, response, logout);896 get_children ("", args["c"], args["l"], metadata, getParents, collectproto, response, logout); 897 897 898 898 int numbrowseoptions = response.docInfo.size();
Note:
See TracChangeset
for help on using the changeset viewer.