Changeset 1521 for trunk/niupepa


Ignore:
Timestamp:
2000-09-08T15:17:08+12:00 (24 years ago)
Author:
nzdl
Message:

updated niupepa collection

Location:
trunk/niupepa
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/niupepa/etc/collect.cfg

    r1026 r1521  
    3535format                 DocumentHeading "<h3>{If}{[parent(Top):Title],[parent(Top):Title],[Title]}<br>{If}{[parent(Top):Date],[parent(Top):Date],[Date]}"
    3636
    37 receptionist           /fast-cgi-bin/niupepalibrary?a=p&p=about&c=niupepa&l=mi
     37receptionist           /fast-cgi-bin/niupepalibrary?a=p&p=about&c=niupepa&l=mi&nw=u
    3838
    3939collectionmeta         collectionname      "Niupepa: M&auml;ori Newspapers"
  • trunk/niupepa/macros/npepa.dm

    r1488 r1521  
    4848_httpthiscommentary_ [c=niupepa] {}
    4949_httpiconthispaper_ [c=niupepa] {}
    50 _thispapericonwidth_ [c=niupepa] {0}
    51 _thispapericonheight_ [c=niupepa] {0}
    5250
    5351_httppageabexpl_ [c=niupepa] {_httppagex_(abexpl)}
    54 
    55 
    56 _01width_ {314}
    57 _01height_ {126}
    58 _03width_ {320}
    59 _03height_ {205}
    60 _04width_ {322}
    61 _04height_ {195}
    62 _05width_ {320}
    63 _05height_ {210}
    64 _06awidth_ {320}
    65 _06aheight_ {80}
    66 _08width_ {330}
    67 _08height_ {139}
    68 _09width_ {330}
    69 _09height_ {76}
    70 _10width_ {320}
    71 _10height_ {43}
    72 _12width_ {330}
    73 _12height_ {95}
    74 _13width_ {310}
    75 _13height_ {316}
    76 _14width_ {330}
    77 _14height_ {81}
    78 _15width_ {320}
    79 _15height_ {110}
    80 _18width_ {310}
    81 _18height_ {120}
    82 _19width_ {333}
    83 _19height_ {230}
    84 _25width_ {312}
    85 _25height_ {56}
    86 _36awidth_ {327}
    87 _36aheight_ {153}
    88 _39width_ {320}
    89 _39height_ {102}
    90 _40width_ {298}
    91 _40height_ {153}
    9252
    9353
     
    12080_iconabstractintro_[c=niupepa,v=1] {_texticonabstractintro_}
    12181
    122 _iconthispaper_ [c=niupepa] {<img name="commentary" src="_httpiconthispaper_of.gif"
    123 width="_thispapericonwidth_" height="_thispapericonheight_" border="0" alt="_texticoncommentary_">}
     82_iconthispaper_ [c=niupepa] {<img name="commentary" src="_httpiconthispaper_of.gif" border="0" alt="_texticoncommentary_">}
    12483
    12584# can't use _gsimage_ macro for detach button as we need to include target
     
    146105
    147106# this occurs when we're at a commentary page - (no alt text, no link)
    148 _nolinkthispaper_ [c=niupepa] {<img src="_httpiconthispaper_on.gif" width="_thispapericonwidth_"
    149 height="_thispapericonheight_" border="0">}
     107_nolinkthispaper_ [c=niupepa] {<img src="_httpiconthispaper_on.gif" border="0">}
    150108
    151109
  • trunk/niupepa/src/recpt/Makefile.in

    r1077 r1521  
    3131AR = ar
    3232CC = @CC@
    33 CCFLAGS = @CFLAGS@ -Wall -Wunused -pedantic -W -Woverloaded-virtual
     33CCFLAGS = @CFLAGS@
    3434DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER @DEFS@
    3535
     
    142142    $(MAINCOLSERVRDIR)/browsefilter.o \
    143143    $(MAINCOLSERVRDIR)/queryfilter.o \
     144    $(MAINCOLSERVRDIR)/mgqueryfilter.o \
    144145    $(MAINCOLSERVRDIR)/phrasequeryfilter.o \
    145146    $(MAINCOLSERVRDIR)/phrasesearch.o \
    146147    $(MAINCOLSERVRDIR)/mggdbmsource.o \
     148    $(MAINCOLSERVRDIR)/search.o \
    147149    $(MAINCOLSERVRDIR)/mgsearch.o \
    148150    $(GD)/lib/gsdllib.a  \
    149151    $(GD)/packages/mg/src/text/libtextin.a \
    150     $(GD)/packages/mg/lib/libmg.a
     152    $(GD)/packages/mg/lib/libmg.a \
     153    $(GD)/src/mgpp/text/libtextin.a \
     154    $(GD)/src/mgpp/lib/libmg.a
    151155
    152156ifneq ($(USE_FASTCGI), 1)
  • trunk/niupepa/src/recpt/niupepadocaction.cpp

    r1023 r1521  
    2828/*
    2929   $Log$
    30    Revision 1.1  2000/03/08 20:44:50  sjboddie
    31    Initial revision
     30   Revision 1.2  2000/09/08 03:17:08  nzdl
     31   updated niupepa collection
     32
     33   Revision 1.1.1.1  2000/03/08 20:44:50  sjboddie
     34   added niupepa to CVS
    3235
    3336   Revision 1.2  1999/09/07 22:19:50  sjboddie
     
    122125  // _httpiconthispaper_    the http address of the cover image
    123126 
    124   // _thispapericonwidth_   the width and height of the cover image
    125   // _thispapericonheight_
    126 
    127 
    128127  documentaction::define_internal_macros (disp, args, protos, logout);
    129128
     
    151150    // _httpiconthispaper_
    152151    disp.setmacro ("httpiconthispaper", "document", "_httpcollimg_/" + series + "/cover");
    153 
    154     // _thispapericonwidth_ and _thispapericonheight_
    155     disp.setmacro ("thispapericonwidth", "document", "_" + series + "width_");
    156     disp.setmacro ("thispapericonheight", "document", "_" + series + "height_");
    157152  }
    158153}
  • trunk/niupepa/src/recpt/niupepahlistbrowserclass.cpp

    r1045 r1521  
    2828/*
    2929   $Log$
     30   Revision 1.3  2000/09/08 03:17:08  nzdl
     31   updated niupepa collection
     32
    3033   Revision 1.2  2000/03/22 02:00:13  nzdl
    3134   updated niupepa collection
     
    5255// should probably do this in a more general way some time
    5356int niupepahlistbrowserclass::output_section_group (ResultDocInfo_t &section, cgiargsclass &args,
    54                             const text_t &/*collection*/, int colnumber,
     57                            const text_t &collection, int colnumber,
    5558                            format_t *formatlistptr, bool use_table,
    5659                            text_tset &metadata, bool &getParents,
     
    9396    bool highlight = false;
    9497    textout << "<td";
    95     if (scount != 3 && scount != 5 && scount != 6 &&
    96     scount != 7 && scount != 8 && scount != 9 &&
    97     scount != 10 && scount != 12 && scount != 13)
     98    if (!((scount >= 3 && scount <= 8) || (scount >= 10 && scount <= 18) ||
     99    (scount >= 22 && scount <= 26) || (scount >= 28 && scount <= 29))) {
     100      // xxxx-xxxx year ranges require colspan=2
    98101      textout << " colspan=2";
     102    }
    99103    textout << ">";
    100104
     
    113117
    114118    textout << outconvert << disp
    115         << get_formatted_string (*tsibling, formatlistptr, link, icon, highlight);
     119        << get_formatted_string (collection, collectproto, *tsibling, formatlistptr,
     120                     link, icon, highlight, logout);
    116121
    117122    textout << "</td>\n";
    118     if (scount == 10 || scount == 18)
     123    //    if (scount == 10 || scount == 18)
     124    if (scount == 12 || scount == 24 || scount == 34)
    119125      textout << "</tr><tr>\n";
    120126
  • trunk/niupepa/src/recpt/niupepalibrarymain.cpp

    r1023 r1521  
    2828/*
    2929   $Log$
    30    Revision 1.1  2000/03/08 20:44:49  sjboddie
    31    Initial revision
     30   Revision 1.2  2000/09/08 03:17:08  nzdl
     31   updated niupepa collection
     32
     33   Revision 1.1.1.1  2000/03/08 20:44:49  sjboddie
     34   added niupepa to CVS
    3235
    3336   Revision 1.2  1999/09/07 22:19:50  sjboddie
     
    4548#include "filter.h"
    4649#include "browsefilter.h"
    47 #include "queryfilter.h"
     50#include "mgqueryfilter.h"
    4851#include "infodbclass.h"
    4952#include "mgsearch.h"
     
    6063#include "authenaction.h"
    6164#include "usersaction.h"
    62 #include "authenaction.h"
     65#include "delhistoryaction.h"
    6366
    6467#include "browserclass.h"
     
    9093  while (thiscol != endcol) {
    9194
    92     // this memory is created but never destroyed
    93     // we're also not doing any error checking to make sure we didn't
    94     // run out of memory
    9595    collectserver *cserver = new collectserver();
    9696    gdbmclass *gdbmhandler = new gdbmclass();
     
    107107   
    108108    // add a query filter
    109     queryfilterclass *queryfilter = new queryfilterclass();
     109    mgqueryfilterclass *queryfilter = new mgqueryfilterclass();
    110110    queryfilter->set_gdbmptr (gdbmhandler);
    111111    queryfilter->set_mgsearchptr (mgsearch);
     
    121121    // collection name
    122122    cserver->configure ("collection", *thiscol);
    123    
     123
     124    // configure receptionist's collectinfo structure
     125    text_tarray colinfo;
     126    colinfo.push_back (*thiscol);
     127    colinfo.push_back (gsdlhome);
     128    colinfo.push_back (gsdlhome);
     129    recpt.configure ("collectinfo", colinfo);
     130     
    124131    nproto.add_collectserver (cserver);
    125132    thiscol ++;
     
    134141  recpt.add_converter ("u", &utf8inconvert, &utf8outconvert);
    135142
    136   if (!gsdlhome.empty()) {
    137     mapinconvertclass gbinconvert;
    138     gbinconvert.setmapfile (gsdlhome, "gbku", 0x25a1);
    139     mapoutconvertclass gboutconvert;
    140     gboutconvert.setmapfile (gsdlhome, "ugbk", 0xa1f5);
    141     recpt.add_converter ("g", &gbinconvert, &gboutconvert);
    142   }
     143  mapinconvertclass gbinconvert;
     144  gbinconvert.setmapfile (gsdlhome, "gbku", 0x25a1);
     145  mapoutconvertclass gboutconvert;
     146  gboutconvert.setmapfile (gsdlhome, "ugbk", 0xa1f5);
     147  recpt.add_converter ("g", &gbinconvert, &gboutconvert);
     148
     149  text_t armapfile = filename_cat (gsdlhome, "unicode", "MAPPINGS");
     150  armapfile = filename_cat (armapfile, "WINDOWS", "1256.TXT");
     151  simplemapinconvertclass arinconvert;
     152  arinconvert.setmapfile (armapfile);
     153  simplemapoutconvertclass aroutconvert;
     154  aroutconvert.setmapfile (armapfile);
     155  recpt.add_converter ("a", &arinconvert, &aroutconvert); 
    143156
    144157  // the list of actions. Note: these actions will become invalid
     
    149162
    150163  pageaction apageaction;
     164  apageaction.set_receptionist (&recpt);
    151165  recpt.add_action (&apageaction);
    152166
     
    155169
    156170  queryaction aqueryaction;
     171  aqueryaction.set_receptionist (&recpt);
    157172  recpt.add_action (&aqueryaction);
    158173
    159174  niupepadocaction adocumentaction;
     175  adocumentaction.set_receptionist (&recpt);
    160176  recpt.add_action (&adocumentaction);
    161177
     
    166182  aauthenaction.set_receptionist(&recpt);
    167183  recpt.add_action (&aauthenaction);
     184
     185  delhistoryaction adelhistoryaction;
     186  recpt.add_action(&adelhistoryaction);
     187
    168188
    169189  // list of browsers
Note: See TracChangeset for help on using the changeset viewer.