You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2004/03/08 15:24:34 UTC
cvs commit: cocoon-lenya/src/webapp/lenya/xslt/search admin.xsl
michi 2004/03/08 06:24:34
Modified: src/webapp/lenya admin.xmap
Added: src/webapp/lenya/xslt/search admin.xsl
Log:
search configuration within admin
Revision Changes Path
1.27 +12 -0 cocoon-lenya/src/webapp/lenya/admin.xmap
Index: admin.xmap
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/admin.xmap,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- admin.xmap 18 Feb 2004 11:00:07 -0000 1.26
+++ admin.xmap 8 Mar 2004 14:24:33 -0000 1.27
@@ -155,8 +155,20 @@
<!-- ============================================================ -->
<map:match pattern="internal/lucene.html">
+ <map:generate type="xpathdirectory" src="pubs/{page-envelope:publication-id}/config/search">
+ <map:parameter name="xpath" value="/crawler|/lucene"/>
+ <map:parameter name="xmlFiles" value="\.x.*$"/>
+ </map:generate>
+ <map:transform src="xslt/search/admin.xsl"/>
+ <map:serialize type="xhtml"/>
+ <!--<map:call resource="style-cms-page"/>-->
+
+
+<!-- TODO: Replace create-index.xsp -->
+<!--
<map:generate type="serverpages" src="content/search/create-index.xsp"/>
<map:call resource="style-cms-page"/>
+-->
</map:match>
<!-- ============================================================ -->
1.1 cocoon-lenya/src/webapp/lenya/xslt/search/admin.xsl
Index: admin.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dir="http://apache.org/cocoon/directory/2.0"
>
<xsl:template match="dir:directory">
<xsl:apply-templates select="dir:file/dir:xpath"/>
</xsl:template>
<xsl:template match="dir:xpath">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="crawler">
<h3>Crawler</h3>
Filename: <i><xsl:value-of select="../../@name"/></i>
<br/>
User-Agent: <i><xsl:value-of select="user-agent"/></i>
<br/>
Start crawling at: <i><xsl:value-of select="base-url/@href"/></i>
<br/>
Scope of crawling: <i><xsl:value-of select="scope-url/@href"/></i>
<br/>
Directory where documents will be dumped: <i><xsl:value-of select="htdocs-dump-dir/@src"/></i>
<br/>
List of all crawled URLs: <i><xsl:value-of select="uri-list/@src"/></i>
</xsl:template>
<xsl:template match="lucene">
<h3>Lucene</h3>
Filename: <i><xsl:value-of select="../../@name"/></i>
<br/>
Type of index update: <i><xsl:value-of select="update-index/@type"/></i>
<br/>
Directory of Documents to be indexed: <i><xsl:value-of select="htdocs-dump-dir/@src"/></i>
<br/>
Directory of Search Index: <i><xsl:value-of select="index-dir/@src"/></i>
<br/>
Indexer class: <i><xsl:value-of select="indexer/@class"/></i>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org