Update of /cvsroot/mhonarc/mharc/lib
In directory subversions:/tmp/cvs-serv27411/lib
Modified Files:
common.mrc.in.dist
Log Message:
* bin/web-archive
. Added definition of $NMZ-SUBJECT-QUERY$ resource variable. It
expands to a namazu query string that will find all messages with
the same subject as the current message.
This variable is referenced in the updated lib/common.mrc.in.dist
resource for use with the new [More on this subject...] link
at the end of the message body.
* lib/common.mrc.in.dist:
. Added "[More on this subject...]" to message page layout that
will provide a list of archive messages with the same subject as
the current message. This is an alternative navigational aid
to discussion threads since it is not limited to the current
period as thread listings are.
. Some restructuring to support localization. For an example on how
localization can be done for a language, see
lib/mrc/_lang_en.mrc.in.dist.
* lib/mrc/_lang_en.mrc.in.dist
. NEW: Includable resource file for English localization
(defaults in common.mrc.in.dist are already in English, so this
file mainly serves as a template for creating resource files
for other languages).
* lib/mrc/_logo.mrc.in.dist
. NEW: Includable resource file to allow for the addition of
a logo, or small image, at the top of archive pages.
* lib/mrc/_nosearch.mrc.in.dist
. NEW: Includable resource file for archives with searching disabled.
* lib/mrc/_nospam.mrc.in.dist
. NEW: Includable resource file for those who want to deter
address harvesters.
Index: common.mrc.in.dist
===================================================================
RCS file: /cvsroot/mhonarc/mharc/lib/common.mrc.in.dist,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** common.mrc.in.dist 3 Sep 2002 16:30:47 -0000 1.20
--- common.mrc.in.dist 8 Sep 2002 04:39:35 -0000 1.21
***************
*** 1,5 ****
<!-- $Id$ -->
<!-- ================================================================== -->
! <!-- MHonArc Resource File for Mail Archives -->
<!-- Description:
This is the main resource file for the mail archives.
--- 1,5 ----
<!-- $Id$ -->
<!-- ================================================================== -->
! <!-- MHonArc resource file for mharc mail archives -->
<!-- Description:
This is the main resource file for the mail archives.
***************
*** 27,32 ****
-->
! <!-- Variables representing period links for index pages.
-->
<DefineVar chop>
PREV-PERIOD-LABEL
--- 27,43 ----
-->
! <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
! <!-- Custom Text Variables -->
! <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
! <!-- The following variable can be redefined to allow for
! language variations.
-->
+ <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
+
+ <!-- Variable for defining any <meta http-equiv> tags. -->
+ <DefineVar chop>
+ HTTP-EQUIV
+ </DefineVar>
+
<DefineVar chop>
PREV-PERIOD-LABEL
***************
*** 40,43 ****
--- 51,163 ----
<DefineVar chop>
+ ADV-SEARCH-LABEL
+ Advanced
+ </DefineVar>
+
+ <DefineVar chop>
+ THREAD-IDX-LABEL
+ Thread Index
+ </DefineVar>
+
+ <DefineVar chop>
+ DATE-IDX-LABEL
+ Date Index
+ </DefineVar>
+
+ <DefineVar chop>
+ TOP-LINK-LABEL
+ Top
+ </DefineVar>
+
+ <DefineVar chop>
+ ALL-LISTS-LABEL
+ All Lists
+ </DefineVar>
+
+ <DefineVar chop>
+ PREV-MSG-BUTTON-LABEL
+ <prev
+ </DefineVar>
+
+ <DefineVar chop>
+ NEXT-MSG-BUTTON-LABEL
+ next>
+ </DefineVar>
+
+ <DefineVar chop>
+ DATE-IDX-BUTTON-LABEL
+ Date
+ </DefineVar>
+
+ <DefineVar chop>
+ THREAD-IDX-BUTTON-LABEL
+ Thread
+ </DefineVar>
+
+ <DefineVar chop>
+ ORIGINAL-MSG-LINK-LABEL
+ Original
+ </DefineVar>
+
+ <DefineVar chop>
+ BOOKMARK-LINK-LABEL
+ Bookmark Link
+ </DefineVar>
+
+ <DefineVar chop>
+ PREV-IN-THREAD-LABEL
+ <Prev in Thread
+ </DefineVar>
+
+ <DefineVar chop>
+ NEXT-IN-THREAD-LABEL
+ Next in Thread>
+ </DefineVar>
+
+ <DefineVar chop>
+ CURRENT-THREAD-LABEL
+ Current Thread
+ </DefineVar>
+
+ <DefineVar chop>
+ MORE-SUBJECT-LABEL
+ More with this subject...
+ </DefineVar>
+
+ <DefineVar chop>
+ PREV-BY-DATE-LABEL
+ Previous by Date
+ </DefineVar>
+
+ <DefineVar chop>
+ NEXT-BY-DATE-LABEL
+ Next by Date
+ </DefineVar>
+
+ <DefineVar chop>
+ PREV-BY-THREAD-LABEL
+ Previous by Thread
+ </DefineVar>
+
+ <DefineVar chop>
+ NEXT-BY-THREAD-LABEL
+ Next by Thread
+ </DefineVar>
+
+ <DefineVar chop>
+ INDEXES-LABEL
+ Indexes
+ </DefineVar>
+
+ <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
+ <!-- Links and Buttons -->
+ <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
+
+ <DefineVar chop>
+ STYLESHEET-LINK
+ <link rel="stylesheet" type="text/css" href="@@HTML_URL@@/stylesheet.css">
+ </DefineVar>
+
+ <DefineVar chop>
PREV-PERIOD-LINK
<<a href="$PNAV-CGI$?a=$LIST-NAME$&m=$CUR-PERIOD$&d=prev">$PREV-PERIOD-LABEL$</a>]
***************
*** 79,143 ****
</DefineVar>
- <!-- Variable representing markup of search form.
- -->
- <DefineVar>
- SEARCH-FORM
- <form method="get" action="$SEARCH-CGI$"
- ><nobr><input type="text" name="query" size="20"
- ><input type="submit" name="submit" value="Search"
- ></nobr><input type="hidden" name="idxname" value="$LIST-NAME$">
- <small><nobr>[<a href="$SEARCH-CGI$?idxname=$LIST-NAME$">Advanced</a>]</nobr></small></form>
- </DefineVar>
-
<DefineVar chop>
THREAD-IDX-LINK
! [<b><a href="$TIDXFNAME$">Thread Index</a></b>]
</DefineVar>
<DefineVar chop>
DATE-IDX-LINK
! [<b><a href="$IDXFNAME$">Date Index</a></b>]
</DefineVar>
! <!-- Main index page nav links if MULTIPG is ever used.
! This variable could be reference by list-specific resource files
! if MULTIPG is activated.
! -->
<DefineVar>
! MAIN-PAGE-LINKS
! <hr size=1 noshade>
! <table width="100%" border=0 cellpadding=0 cellspacing=0>
! <tr align="center">
! <th colspan=4><small>Page $PAGENUM$ of $NUMOFPAGES$</small></th>
! <tr>
! <td align="left"
! ><small>[<a href="$PG(FIRST)$">First Page</a>]</small></td>
! <td align="right"><small>$PGLINK(PREV)$</small></td>
! <td align="left"><small>$PGLINK(NEXT)$</small></td>
! <td align="right"><small>[<a href="$PG(LAST)$">Last Page</a>]</small></td>
! </tr>
! </table>
! <hr size=1 noshade>
! </DefineVar>
!
! <!-- Thread index page nav links if MULTIPG ever used.
! This variable could be reference by list-specific resource files
! if MULTIPG is activated.
! -->
! <DefineVar>
! THREAD-PAGE-LINKS
! <hr size=1 noshade>
! <table width="100%" border=0 cellpadding=0 cellspacing=0>
! <tr align="center">
! <th colspan=4><small>Page $PAGENUM$ of $NUMOFPAGES$</small></th>
! <tr>
! <td align="left"
! ><small>[<a href="$PG(TFIRST)$">First Page</a>]</small></td>
! <td align="right"><small>$PGLINK(TPREV)$</small></td>
! <td align="left"><small>$PGLINK(TNEXT)$</small></td>
! <td align="right"><small>[<a href="$PG(TLAST)$">Last Page</a>]</small></td>
! </tr>
! </table>
! <hr size=1 noshade>
</DefineVar>
--- 199,220 ----
</DefineVar>
<DefineVar chop>
THREAD-IDX-LINK
! [<b><a href="$TIDXFNAME$">$THREAD-IDX-LABEL$</a></b>]
</DefineVar>
<DefineVar chop>
DATE-IDX-LINK
! [<b><a href="$IDXFNAME$">$DATE-IDX-LABEL$</a></b>]
</DefineVar>
! <!-- Variable representing markup of search form. -->
<DefineVar>
! SEARCH-FORM
! <form method="get" action="$SEARCH-CGI$"
! ><nobr><input type="text" name="query" size="20"
! ><input type="submit" name="submit" value="Search"
! ></nobr><input type="hidden" name="idxname" value="$LIST-NAME$">
! <small><nobr>[<a href="$SEARCH-CGI$?idxname=$LIST-NAME$">$ADV-SEARCH-LABEL$</a>]</nobr></small></form>
</DefineVar>
***************
*** 248,253 ****
<html>
<head>
<title>$IDXTITLE$</title>
! <link rel="stylesheet" type="text/css" href="@@HTML_URL@@/stylesheet.css">
</head>
<body>
--- 325,331 ----
<html>
<head>
+ $HTTP-EQUIV$
<title>$IDXTITLE$</title>
! $STYLESHEET-LINK$
</head>
<body>
***************
*** 258,263 ****
<div class="metaIdxNav">
<nobr>$THREAD-IDX-LINK$<nobr>
! <nobr>[<a href="../">Top</a>]</nobr>
! <nobr>[<a href="$ALL-LISTS-URL$">All Lists</a>]</nobr>
</div>
</center>
--- 336,341 ----
<div class="metaIdxNav">
<nobr>$THREAD-IDX-LINK$<nobr>
! <nobr>[<a href="../">$TOP-LINK-LABEL$</a>]</nobr>
! <nobr>[<a href="$ALL-LISTS-URL$">$ALL-LISTS-LABEL$</a>]</nobr>
</div>
</center>
***************
*** 321,326 ****
<html>
<head>
<title>$TIDXTITLE$</title>
! <link rel="stylesheet" type="text/css" href="@@HTML_URL@@/stylesheet.css">
</head>
<body>
--- 399,405 ----
<html>
<head>
+ $HTTP-EQUIV$
<title>$TIDXTITLE$</title>
! $STYLESHEET-LINK$
</head>
<body>
***************
*** 331,336 ****
<div class="metaIdxNav">
<nobr>$DATE-IDX-LINK$<nobr>
! <nobr>[<a href="../">Top</a>]</nobr>
! <nobr>[<a href="$ALL-LISTS-URL$">All Lists</a>]</nobr>
</div>
</center>
--- 410,415 ----
<div class="metaIdxNav">
<nobr>$DATE-IDX-LINK$<nobr>
! <nobr>[<a href="../">$TOP-LINK-LABEL$</a>]</nobr>
! <nobr>[<a href="$ALL-LISTS-URL$">$ALL-LISTS-LABEL$</a>]</nobr>
</div>
</center>
***************
*** 392,397 ****
<html>
<head>
<title>$SUBJECTNA:72$</title>
! <link rel="stylesheet" type="text/css" href="@@HTML_URL@@/stylesheet.css">
<link rev="made" href="mailto:$FROMADDR$">
<link rel="start" href="../">
--- 471,477 ----
<html>
<head>
+ $HTTP-EQUIV$
<title>$SUBJECTNA:72$</title>
! $STYLESHEET-LINK$
<link rev="made" href="mailto:$FROMADDR$">
<link rel="start" href="../">
***************
*** 407,442 ****
</div>
<div class="metaIdxNav">
! <nobr>[<a href="../">Top</a>]</nobr>
! <nobr>[<a href="$ALL-LISTS-URL$">All Lists</a>]</nobr>
</div>
</center>
</MsgPgBegin>
! <!-- Top navigation.
! -->
<PrevButton chop>
! <a href="$MSG(PREV)$"><prev</a>
</PrevButton>
<NextButton chop>
! <a href="$MSG(NEXT)$">next></a>
</NextButton>
<TPrevButton chop>
! <a href="$MSG(TPREV)$"><prev</a>
</TPrevButton>
<TNextButton chop>
! <a href="$MSG(TNEXT)$">next></a>
</TNextButton>
<PrevButtonIA chop>
! <span class="iaText"><prev</span>
</PrevButtonIA>
<NextButtonIA chop>
! <span class="iaText">next></span>
</NextButtonIA>
<TPrevButtonIA chop>
! <span class="iaText"><prev</span>
</TPrevButtonIA>
<TNextButtonIA chop>
! <span class="iaText">next></span>
</TNextButtonIA>
--- 487,521 ----
</div>
<div class="metaIdxNav">
! <nobr>[<a href="../">$TOP-LINK-LABEL$</a>]</nobr>
! <nobr>[<a href="$ALL-LISTS-URL$">$ALL-LISTS-LABEL$</a>]</nobr>
</div>
</center>
</MsgPgBegin>
! <!-- Top navigation. -->
<PrevButton chop>
! <a href="$MSG(PREV)$">$PREV-MSG-BUTTON-LABEL$</a>
</PrevButton>
<NextButton chop>
! <a href="$MSG(NEXT)$">$NEXT-MSG-BUTTON-LABEL$</a>
</NextButton>
<TPrevButton chop>
! <a href="$MSG(TPREV)$">$PREV-MSG-BUTTON-LABEL$</a>
</TPrevButton>
<TNextButton chop>
! <a href="$MSG(TNEXT)$">$NEXT-MSG-BUTTON-LABEL$</a>
</TNextButton>
<PrevButtonIA chop>
! <span class="iaText">$PREV-MSG-BUTTON-LABEL$</span>
</PrevButtonIA>
<NextButtonIA chop>
! <span class="iaText">$NEXT-MSG-BUTTON-LABEL$</span>
</NextButtonIA>
<TPrevButtonIA chop>
! <span class="iaText">$PREV-MSG-BUTTON-LABEL$</span>
</TPrevButtonIA>
<TNextButtonIA chop>
! <span class="iaText">$NEXT-MSG-BUTTON-LABEL$</span>
</TNextButtonIA>
***************
*** 448,452 ****
TOP-DATE-NAV
<span class="topDateNav"><nobr>$BUTTON(PREV)$ <strong
! >[<a href="$IDXFNAME$#$MSGNUM$">Date</a>]</strong
> $BUTTON(NEXT)$</nobr></span>
</DefineVar>
--- 527,531 ----
TOP-DATE-NAV
<span class="topDateNav"><nobr>$BUTTON(PREV)$ <strong
! >[<a href="$IDXFNAME$#$MSGNUM$">$DATE-IDX-BUTTON-LABEL$</a>]</strong
> $BUTTON(NEXT)$</nobr></span>
</DefineVar>
***************
*** 455,459 ****
TOP-THREAD-NAV
<span class="topThreadNav"><nobr>$BUTTON(TPREV)$ <strong
! >[<a href="$TIDXFNAME$#$MSGNUM$">Thread</a>]</strong
> $BUTTON(TNEXT)$</nobr></span>
</DefineVar>
--- 534,538 ----
TOP-THREAD-NAV
<span class="topThreadNav"><nobr>$BUTTON(TPREV)$ <strong
! >[<a href="$TIDXFNAME$#$MSGNUM$">$THREAD-IDX-BUTTON-LABEL$</a>]</strong
> $BUTTON(TNEXT)$</nobr></span>
</DefineVar>
***************
*** 463,467 ****
<span class="orgLink"
>[<a href="$EXTRACT-CGI$?a=$LIST-NAME:U$&m=$CUR-PERIOD$&i=$MSGID:U$"
! >Original</a>]</span>
</DefineVar>
--- 542,546 ----
<span class="orgLink"
>[<a href="$EXTRACT-CGI$?a=$LIST-NAME:U$&m=$CUR-PERIOD$&i=$MSGID:U$"
! >$ORIGINAL-MSG-LINK-LABEL$</a>]</span>
</DefineVar>
***************
*** 470,474 ****
<span class="bookmarkLink"
>[<a href="$MESG-CGI$?a=$LIST-NAME:U$&i=$MSGID:U$"
! >Bookmark Link</a>]</span>
</DefineVar>
--- 549,553 ----
<span class="bookmarkLink"
>[<a href="$MESG-CGI$?a=$LIST-NAME:U$&i=$MSGID:U$"
! >$BOOKMARK-LINK-LABEL$</a>]</span>
</DefineVar>
***************
*** 606,620 ****
<TPrevInButton chop>
! <<a href="$MSG(TPREVIN)$"><strong>Prev in Thread</strong></a>]
</TPrevInButton>
<TNextInButton>
! [<a href="$MSG(TNEXTIN)$"><strong>Next in Thread</strong></a>>
</TNextInButton>
<TPrevInButtonIA chop>
! <span class="iaText"><<strong>Prev in Thread</strong>]</span>
</TPrevInButtonIA>
<TNextInButtonIA chop>
! <span class="iaText">[<strong>Next in Thread</strong>></span>
</TNextInButtonIA>
--- 685,699 ----
<TPrevInButton chop>
! <a href="$MSG(TPREVIN)$"><strong>$PREV-IN-THREAD-LABEL$</strong></a>]
</TPrevInButton>
<TNextInButton>
! [<a href="$MSG(TNEXTIN)$"><strong>$NEXT-IN-THREAD-LABEL$</strong></a>
</TNextInButton>
<TPrevInButtonIA chop>
! <span class="iaText"><strong>$PREV-IN-THREAD-LABEL$</strong>]</span>
</TPrevInButtonIA>
<TNextInButtonIA chop>
! <span class="iaText">[<strong>$NEXT-IN-THREAD-LABEL$</strong></span>
</TNextInButtonIA>
***************
*** 630,634 ****
<tr valign="baseline">
<td align="left">$BUTTON(TPREVIN)$</td>
! <th align="center" width="100%"><b>Current Thread</b></th>
<td align="right">$BUTTON(TNEXTIN)$</td></tr>
<tr class="tSliceList"><td colspan="3">
--- 709,713 ----
<tr valign="baseline">
<td align="left">$BUTTON(TPREVIN)$</td>
! <th align="center" width="100%"><strong>$CURRENT-THREAD-LABEL$</strong></th>
<td align="right">$BUTTON(TNEXTIN)$</td></tr>
<tr class="tSliceList"><td colspan="3">
***************
*** 638,641 ****
--- 717,726 ----
</DefineVar>
+ <DefineVar chop>
+ SUBJECT-LINK
+ <span class="subjectLink">[<a href="$SEARCH-CGI$?query=$NMZ-SUBJECT-QUERY:U$&idxname=$LIST-NAME$&sort=date%3Alate"
+ >$MORE-SUBJECT-LABEL$</a>]</span>
+ </DefineVar>
+
<!-- Modify end of message body to include thread slice. We also
include convenient next/prev-in-thread links since scanning
***************
*** 645,648 ****
--- 730,739 ----
</td></tr></table>
</div>
+ <div class="msgLinks">
+ <table width="100%">
+ <tr valign="baseline">
+ <td align="center">$SUBJECT-LINK$</td>
+ </tr></table>
+ </div>
$TSLICE-LISTING$
</MsgBodyEnd>
***************
*** 654,659 ****
<DefineVar chop>
BOTTOM-IDX-LINKS
! [<a href="$IDXFNAME$#$MSGNUM$"><strong>Date</strong></a>]
! [<a href="$TIDXFNAME$#$MSGNUM$"><strong>Thread</strong></a>]
</DefineVar>
--- 745,750 ----
<DefineVar chop>
BOTTOM-IDX-LINKS
! [<a href="$IDXFNAME$#$MSGNUM$"><strong>$DATE-IDX-BUTTON-LABEL$</strong></a>]
! [<a href="$TIDXFNAME$#$MSGNUM$"><strong>$THREAD-IDX-BUTTON-LABEL$</strong></a>]
</DefineVar>
***************
*** 662,666 ****
<PrevLink chop>
<tr valign="baseline">
! <th align="right">Previous by Date: </th>
<td width="100%"><strong><a href="$MSG(PREV)$">$SUBJECT(PREV)$</a></strong>, <em>$FROMNAME(PREV)$</em></td>
</tr>
--- 753,757 ----
<PrevLink chop>
<tr valign="baseline">
! <th align="right">$PREV-BY-DATE-LABEL$: </th>
<td width="100%"><strong><a href="$MSG(PREV)$">$SUBJECT(PREV)$</a></strong>, <em>$FROMNAME(PREV)$</em></td>
</tr>
***************
*** 669,673 ****
<NextLink chop>
<tr valign="baseline">
! <th align="right">Next by Date: </th>
<td width="100%"><strong><a href="$MSG(NEXT)$">$SUBJECT(NEXT)$</a></strong>, <em>$FROMNAME(NEXT)$</em></td>
</tr>
--- 760,764 ----
<NextLink chop>
<tr valign="baseline">
! <th align="right">$NEXT-BY-DATE-LABEL$: </th>
<td width="100%"><strong><a href="$MSG(NEXT)$">$SUBJECT(NEXT)$</a></strong>, <em>$FROMNAME(NEXT)$</em></td>
</tr>
***************
*** 676,680 ****
<TPrevLink chop>
<tr valign="baseline">
! <th align="right">Previous by Thread: </th>
<td width="100%"><strong><a href="$MSG(TPREV)$">$SUBJECT(TPREV)$</a></strong>, <em>$FROMNAME(TPREV)$</em></td>
</tr>
--- 767,771 ----
<TPrevLink chop>
<tr valign="baseline">
! <th align="right">$PREV-BY-THREAD-LABEL$: </th>
<td width="100%"><strong><a href="$MSG(TPREV)$">$SUBJECT(TPREV)$</a></strong>, <em>$FROMNAME(TPREV)$</em></td>
</tr>
***************
*** 683,687 ****
<TNextLink chop>
<tr valign="baseline">
! <th align="right">Next by Thread: </th>
<td width="100%"><strong><a href="$MSG(TNEXT)$">$SUBJECT(TNEXT)$</a></strong>, <em>$FROMNAME(TNEXT)$</em></td>
</tr>
--- 774,778 ----
<TNextLink chop>
<tr valign="baseline">
! <th align="right">$NEXT-BY-THREAD-LABEL$: </th>
<td width="100%"><strong><a href="$MSG(TNEXT)$">$SUBJECT(TNEXT)$</a></strong>, <em>$FROMNAME(TNEXT)$</em></td>
</tr>
***************
*** 696,703 ****
$LINK(TNEXT)$
<tr valign="baseline">
! <th align="right">Indexes: </th>
<td>$BOTTOM-IDX-LINKS$
! [<a href="../"><strong>Top</strong></a>]
! [<a href="$ALL-LISTS-URL$"><strong>All Lists</strong></a>]</td>
</tr>
</table>
--- 787,794 ----
$LINK(TNEXT)$
<tr valign="baseline">
! <th align="right">$INDEXES-LABEL$: </th>
<td>$BOTTOM-IDX-LINKS$
! [<a href="../"><strong>$TOP-LINK-LABEL$</strong></a>]
! [<a href="$ALL-LISTS-URL$"><strong>$ALL-LISTS-LABEL$</strong></a>]</td>
</tr>
</table>
---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV