Hi johannes,
Here is the sitemap fragment
<map:match pattern="search.html*">
<map:aggregate label="debug" element="page">
<map:part src="cocoon:/OCIHook" />
<map:part src="cocoon:/mainmenu" element="menu"/>
<map:part src="cocoon:/search.xml"/>
</map:aggregate>
<map:transform src="xsl/page2xhtml.xsl" >
<map:parameter name="contextPath"
value="{request:contextPath}/OCI" />
</map:transform>
<map:serialize type="html" />
</map:match>
<map:match pattern="search">
<map:redirect-to uri="cocoon:/search.html" />
</map:match>
The important search.xml comes from
<map:match pattern="search.xml">
<map:generate label="debug"
type="multisearch">
<map:parameter name="IndexFiles"
value="{global:RealPath}/data/DE/KatalogListe.xml" />
<map:parameter name="defaultPage"
value="8" />
</map:generate>
<map:transform label="debug1"
src="xsl/Sresult.xsl">
<map:parameter name="servletPath"
value="{request:servletPath}" />
<map:parameter name="sitemapURI"
value="{request:sitemapURI}"
/>
<map:parameter name="contextPath"
value="{request:contextPath}/OCI/DE" />
</map:transform>
<map:serialize type="xml" />
</map:match>
The multisearch generator is a based on lucene search generatore (only works
on multiple index-files)
It's seems that the problem only happens on url-paramters.
I have made a workeround with <form> and javascript, ist not nice ,but works
<form id="pageform" action="{$contextPath}/search.html">
<input type="hidden" name="queryString"
value="{../@query-string}"/>
<input type="hidden" name="pagelength"
value="{../@page-length}"/>
<input id="startIndex" type="hidden" name="startIndex"
value="{$offset}"/>
.......
<div id="nav-next">
<a
class="prevButton"
href="javascript:dopage([EMAIL PROTECTED])"/>
is the next set
Javascript-function:
function dopage(iStart)
{
var myform=document.getElementById("pageform");
if (myform != null)
{
var inp=document.getElementById("startIndex");
if (inp != null)
{
inp.setAttribute("value",iStart);
myform.submit();
}
}
};
Thanks in advance
Andreas
-----Original Message-----
From: Johannes Textor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 12, 2007 11:44 AM
To: [email protected]
Subject: Re: Need help Character Encoding :-((
Hi Andreas,
if something goes wrong with the encoding, it's almost certainly a generator
issue. Which generator are you using? Could you post the corresponding part
of sitemap.xmap so we can have a look at your pipeline?
Johannes
Andreas Busch wrote:
> Hello,
>
> I have a problem with search and paging,
>
> I do search with a post from form and then do pagination with the
> search-result.
> work's , but if there are some spezial charachters in the search like
> ü etc the paging makes problems.
>
> some codesnippets ..
>
> <HTML>
> <HEAD>
> <META http-equiv="Content-Type" content="text/html;
> charset=ISO-8859-1">
>
> ....form method="get" action="/openclass/OCI/DE/search.html">
> <input class="searchfield" name="queryString" type="text"
> value="drücker"><img src="images/link_pfeil.gif" alt=""
> height="7" width="10" border="0"><input type="submit" Value=""
> class="search_buttonsmall">
> </form>
>
> looks good but the paging links are broken
>
> div id="nav-next">
> <a
>
href="javascript:dolink('/openclass/OCI/DE/search.html?queryString=dr%C3%BCc
ker&pagelength=8&startIndex=8')"
> class="prevButton"></a>
> </div>
> there is a problem in queryString %C3%BC its createt in xsl with
>
> <xsl:variable name="baseurl"><xsl:value-of select="$contextPath"
> />/search.html?queryString=<xsl:value-of select="../@query-string"
> />&pagelength=<xsl:value-of select="../@page-length" />
>
> </xsl:variable>
>
> Serializers are changed to ISO-8859-1 encoding
>
> Need realy help for workaround or bugfixes
>
> Cocoon is version 2.1.9
>
>
>
> thanks in advance
>
> Andreas
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ILOGICS Informatik Service GmbH - Berduxstrasse 22 - 81245 Muenchen
> Tel: +49 89 896667-0
> Fax: +49 89 896667-29
> HRB 156342 AG Muenchen; USTDID: DE812478281
> GF: Andreas Busch, Karl Rappert, Ralf Moormann
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ILOGICS Informatik Service GmbH - Berduxstrasse 22 - 81245 Muenchen
Tel: +49 89 896667-0
Fax: +49 89 896667-29
HRB 156342 AG Muenchen; USTDID: DE812478281
GF: Andreas Busch, Karl Rappert, Ralf Moormann
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]