You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ds...@apache.org on 2022/01/05 11:31:35 UTC

svn commit: r1896702 - /subversion/site/staging/mailing-lists.html

Author: dsahlberg
Date: Wed Jan  5 11:31:35 2022
New Revision: 1896702

URL: http://svn.apache.org/viewvc?rev=1896702&view=rev
Log:
In site/staging:

* mailing-lists.html
  First attempt at making a lists.apache.org compatible search form.


Modified:
    subversion/site/staging/mailing-lists.html

Modified: subversion/site/staging/mailing-lists.html
URL: http://svn.apache.org/viewvc/subversion/site/staging/mailing-lists.html?rev=1896702&r1=1896701&r2=1896702&view=diff
==============================================================================
--- subversion/site/staging/mailing-lists.html (original)
+++ subversion/site/staging/mailing-lists.html Wed Jan  5 11:31:35 2022
@@ -13,7 +13,7 @@
 <meta name="theme-color" content="#98b0d4">
 </head>
 
-<body onload="document.getElementById('q').value = document.getElementById('q').value.replace(/inurl:subversion /gi, '');">
+<body>
 <!--#include virtual="/site-banner.html" -->
 <!--#include virtual="/site-nav.html" -->
 <div id="site-content">
@@ -34,32 +34,24 @@
 </p>
 
 <p>If you cannot find the answer in the Subversion book,
-   please search the archives:</p>
-  <!-- SiteSearch Google -->
-  <form method="get" action="https://www.google.com/custom">
+   please search the archives<noscript> (the search form links to
+   <a href="https://lists.apache.org">lists.apache.org</a>, a site requiring
+   JavaScript. If your browser doesn't support JavaScript, please check
+   another archive linked <a href="#list-list">below</a>!)</noscript>:</p>
+  <!-- Search in lists.apache.org -->
+  <form method="get" action="https://lists.apache.org/list" id="f">
   <p>
-  <input type="hidden" name="domains" value="mail-archives.apache.org" />
-  <input type="hidden" name="sitesearch" value="mail-archives.apache.org" />
-  <input type="hidden" name="client" value="pub-9313125053076989" />
-  <input type="hidden" name="forid" value="1" />
-  <input type="hidden" name="channel" value="8989477434" />
-  <input type="hidden" name="ie" value="ISO-8859-1" />
-  <input type="hidden" name="oe" value="ISO-8859-1" />
-  <input type="hidden" name="cof" value="GALT:#0066CC;GL:1;DIV:#999999;VLC:336633;AH:center;BGC:FFFFFF;LBGC:FF9900;ALC:0066CC;LC:0066CC;T:000000;GFNT:666666;GIMP:666666;FORID:1;" />
-  <input type="hidden" name="hl" value="en" />
   <!-- 
-    The value inurl:subversion is because Google sitesearch doesn't provide
-    a way to search just a subdirectory of a site, and we don't want matches 
-    in other mailing lists at mail-archives.a.o.
-    For browsers without javascript the default value is there as a help.
-    For browsers with javascript the value is removed in body.onload and added
-    on submit to decrease clutter for the users.
+    The URL is not documented anywhere but it seems to consist of three parts separated by colon:
+    - The list name (users@subversion.apache.org etc.). It seems it can also be *@subversion.apache.org, which is probably reasonable for the search widget.
+    - The time period. If empty it defaults to the last month. Ask for all mails at least 0 days old.
+    - The search keyword(s).
   -->
-  <input type="text" name="q" size="31" maxlength="255" value="inurl:subversion " id="q"/>
-  <input type="submit" name="sa" value="Search the archives" onclick="if (!document.getElementById('q').value.includes('inurl:subversion ')) { document.getElementById('q').value = 'inurl:subversion '+document.getElementById('q').value; }"/>
+  <input type="text" name="" size="31" maxlength="255" id="q"/>
+  <input type="submit" name="" value="Search the archives" onclick="document.location='https://lists.apache.org/list?*@subversion.apache.org:gte=0d:'+document.getElementById('q').value; return false;">
   </p>
   </form>
-  <!-- SiteSearch Google -->
+  <!-- End of search in lists.apache.org -->
 <p>
   &nbsp;
 </p>