Changeset 1556 for trunk/niupepa/src/recpt/niupepadocaction.cpp
- Timestamp:
- 2000-09-20T17:18:31+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/niupepa/src/recpt/niupepadocaction.cpp
r1521 r1556 28 28 /* 29 29 $Log$ 30 Revision 1.3 2000/09/20 05:18:31 nzdl 31 *** empty log message *** 32 30 33 Revision 1.2 2000/09/08 03:17:08 nzdl 31 34 updated niupepa collection … … 47 50 #include "niupepabrowsetools.h" 48 51 #include "OIDtools.h" 52 #include "gsdltools.h" 49 53 #include "querytools.h" 50 54 #include "unitool.h" … … 124 128 125 129 // _httpiconthispaper_ the http address of the cover image 130 131 // _headerextra_ set to _abstract_ if current document is an abstract 126 132 133 // _toplink_ _endtoplink_ link to the first page of the current document 134 127 135 documentaction::define_internal_macros (disp, args, protos, logout); 128 136 … … 131 139 text_tset metadata; 132 140 FilterResponse_t response; 141 text_t toplink, endtoplink; 133 142 134 143 recptproto *collectproto = protos->getrecptproto (collection, logout); … … 150 159 // _httpiconthispaper_ 151 160 disp.setmacro ("httpiconthispaper", "document", "_httpcollimg_/" + series + "/cover"); 161 162 // _headerextra_, _toplink_, _endtoplink_ 163 metadata.insert ("doctype"); 164 text_t headerextra; 165 if (get_info (arg_d, collection, metadata, false, collectproto, response, logout)) { 166 if (response.docInfo[0].metadata["doctype"].values[0] == "Description") { 167 headerextra = "_abstract_"; 168 toplink = substr (arg_d.begin(), arg_d.end()-8); 169 toplink = "<a href=\"_httpdocument_&gg=prev&cl=_cgiargcl_&d=" + dm_safe (toplink) + "\">"; 170 endtoplink = "</a>"; 171 } else if (response.docInfo[0].metadata["doctype"].values[0] != "Commentary") { 172 get_top (arg_d, toplink); 173 toplink = "<a href=\"_httpdocument_&gg=prev&cl=_cgiargcl_&d=" + dm_safe (toplink) + "\">"; 174 endtoplink = "</a>"; 175 } 176 } 177 disp.setmacro ("headerextra", "Global", headerextra); 178 disp.setmacro ("toplink", "Global", toplink); 179 disp.setmacro ("endtoplink", "Global", endtoplink); 152 180 } 153 181 }
Note:
See TracChangeset
for help on using the changeset viewer.