Changeset 1556
- Timestamp:
- 2000-09-20T17:18:31+12:00 (24 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/macros/english.dm
r1540 r1556 110 110 _pages_ {pages} 111 111 _of_ { of } 112 _vol_ {Vol ume}113 _num_ {N umber}112 _vol_ {Vol.} 113 _num_ {No.} 114 114 115 115 _textmonth00_ {} -
trunk/niupepa/etc/collect.cfg
r1552 r1556 34 34 format CL2DateList "<td valign=top>{If}{[abstract],<a href=_httpdocument_&cl=_cgiargcl_&d=[abstract]>_document:iconabstract_}[link][icon][/link]</td><td>[Series]: [Title]</td><td>[Date]</td>" 35 35 36 format DocumentHeading "<h3>{If}{[parent(Top):Title],[parent(Top):Title],[Title]}<br>{If}{[parent(Top):Date],[parent(Top):Date],[Date]}" 36 format DocumentHeading "<h3>_headerextra__toplink_{If}{[parent(Top):Title],[parent(Top):Title],[Title]}<br>{If}{[parent(Top):Date],[parent(Top):Date],[Date]}_endtoplink_" 37 38 format DocumentText "<center><table width=_pagewidth_><tr><td>[Text]</td></tr></table></center>" 37 39 38 40 receptionist /fast-cgi-bin/niupepalibrary?a=p&p=about&c=niupepa&l=mi&nw=u -
trunk/niupepa/macros/npepa.dm
r1521 r1556 21 21 _commentary_ [c=niupepa,l=mi] {Kupu Whakataki} 22 22 23 _abstract_ [c=niupepa] { Abstract:}24 25 _abstract_ [c=niupepa,l=mi] { R_amn_popoto reo P_amn_keh_amn_:}23 _abstract_ [c=niupepa] {<i>Abstract</i><br>} 24 25 _abstract_ [c=niupepa,l=mi] {<i>R_amn_popoto reo P_amn_keh_amn_</i><br>} 26 26 27 27 ####################################################################### -
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.