Changeset 7427
- Timestamp:
- 2004-05-25T13:32:36+12:00 (20 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/browseactiontools.cpp
r2905 r7427 28 28 #include <ctype.h> 29 29 30 void format_browsestring( text_torig, text_t& formatted, int and_or)30 void format_browsestring(const text_t& orig, text_t& formatted, int and_or) 31 31 { 32 32 33 33 34 text_t conj = "";34 text_t conj = g_EmptyText; 35 35 36 36 if(and_or == 0){ conj = " | "; } … … 58 58 // this stuff is all copied from the queryoptions code - don't ask how it all 59 59 // hangs in with the filters - those things are a mystery 60 void set_browsefilter_options(FilterRequest_t &request, text_t &browsestring,60 void set_browsefilter_options(FilterRequest_t &request, const text_t &browsestring, 61 61 cgiargsclass &args) 62 62 { … … 96 96 } 97 97 98 bool remove_no_meta_results( text_tmetaname, FilterResponse_t &response,99 outconvertclass outconvert)98 bool remove_no_meta_results(const text_t& metaname, FilterResponse_t &response, 99 outconvertclass &outconvert) 100 100 { 101 101 … … 108 108 //remove it. 109 109 text_t title = *((*check).metadata.find(metaname)->second).values.begin(); 110 if(title == "")110 if(title == g_EmptyText) 111 111 { 112 112 -
trunk/gsdl/src/recpt/browseactiontools.h
r2612 r7427 32 32 33 33 //this puts ands or ors into the querystring as necessary 34 void format_browsestring( text_torig, text_t& formatted, int and_or);34 void format_browsestring(const text_t& orig, text_t& formatted, int and_or); 35 35 36 36 //this thing sets up the search associated with a browse. It's programmed by 37 37 //witchcraft, so I don't really know how/why it works - I lifted the code from 38 38 //somewhere else. 39 void set_browsefilter_options(FilterRequest_t &request, text_t &browsestring,39 void set_browsefilter_options(FilterRequest_t &request, const text_t &browsestring, 40 40 cgiargsclass &args); 41 41 … … 43 43 //(whether it be for all documents or just the ones with specified terms) 44 44 //that don't have the required "metaname" metadata element. 45 bool remove_no_meta_results( text_tmetaname, FilterResponse_t &response,46 outconvertclass outconvert);45 bool remove_no_meta_results(const text_t &metaname, FilterResponse_t &response, 46 outconvertclass &outconvert); 47 47 48 48 #endif
Note:
See TracChangeset
for help on using the changeset viewer.