Changeset 11152 for trunk/gsdl/src/recpt/documentaction.cpp
- Timestamp:
- 2006-01-27T17:15:18+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/documentaction.cpp
r11144 r11152 882 882 bool unknown = false; 883 883 884 // test the _iconXXXpage_ macro to see if image macros are 885 // defined for this type of classification - if not we'll 886 // just display the text 884 // test if we have macros defined for this classification's 885 // metadata name - if not we'll just display the name 887 886 text_t tmp; 888 text_t macroname="_ icon" + title + "page_";889 disp.expandstring (" document", macroname, tmp);887 text_t macroname="_label" + title + "_"; 888 disp.expandstring ("Global", macroname, tmp); 890 889 if (tmp == macroname) unknown = true; // it wasn't expanded 891 890 892 891 if (unknown) { 893 892 disp.setmacro ("pagetitle", "document", title); 894 disp.setmacro ("imagethispage", "document", "<h2>" + title + "</h2>");893 disp.setmacro ("imagethispage", "document", title); 895 894 } else { 896 disp.setmacro ("pagetitle", "document", "_text" + title + "page_");897 disp.setmacro ("imagethispage", "document", "_icon" + title + "page_");895 disp.setmacro ("pagetitle", "document", macroname); 896 disp.setmacro ("imagethispage", "document", macroname); 898 897 } 899 898
Note:
See TracChangeset
for help on using the changeset viewer.