Changeset 1556


Ignore:
Timestamp:
2000-09-20T17:18:31+12:00 (24 years ago)
Author:
nzdl
Message:

* empty log message *

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/macros/english.dm

    r1540 r1556  
    110110_pages_ {pages}
    111111_of_ { of }
    112 _vol_ {Volume}
    113 _num_ {Number}
     112_vol_ {Vol.}
     113_num_ {No.}
    114114
    115115_textmonth00_ {}
  • trunk/niupepa/etc/collect.cfg

    r1552 r1556  
    3434format                 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>"
    3535
    36 format                 DocumentHeading "<h3>{If}{[parent(Top):Title],[parent(Top):Title],[Title]}<br>{If}{[parent(Top):Date],[parent(Top):Date],[Date]}"
     36format                 DocumentHeading "<h3>_headerextra__toplink_{If}{[parent(Top):Title],[parent(Top):Title],[Title]}<br>{If}{[parent(Top):Date],[parent(Top):Date],[Date]}_endtoplink_"
     37
     38format DocumentText "<center><table width=_pagewidth_><tr><td>[Text]</td></tr></table></center>"
    3739
    3840receptionist           /fast-cgi-bin/niupepalibrary?a=p&p=about&c=niupepa&l=mi&nw=u
  • trunk/niupepa/macros/npepa.dm

    r1521 r1556  
    2121_commentary_ [c=niupepa,l=mi] {Kupu Whakataki}
    2222
    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>}
    2626
    2727#######################################################################
  • trunk/niupepa/src/recpt/niupepadocaction.cpp

    r1521 r1556  
    2828/*
    2929   $Log$
     30   Revision 1.3  2000/09/20 05:18:31  nzdl
     31   *** empty log message ***
     32
    3033   Revision 1.2  2000/09/08 03:17:08  nzdl
    3134   updated niupepa collection
     
    4750#include "niupepabrowsetools.h"
    4851#include "OIDtools.h"
     52#include "gsdltools.h"
    4953#include "querytools.h"
    5054#include "unitool.h"
     
    124128
    125129  // _httpiconthispaper_    the http address of the cover image
     130
     131  // _headerextra_          set to _abstract_ if current document is an abstract
    126132 
     133  // _toplink_ _endtoplink_ link to the first page of the current document
     134
    127135  documentaction::define_internal_macros (disp, args, protos, logout);
    128136
     
    131139  text_tset metadata;
    132140  FilterResponse_t response;
     141  text_t toplink, endtoplink;
    133142
    134143  recptproto *collectproto = protos->getrecptproto (collection, logout);
     
    150159    // _httpiconthispaper_
    151160    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);
    152180  }
    153181}
Note: See TracChangeset for help on using the changeset viewer.