[daisy] Default Fulltext Search in Daisy Wiki
Rolf Sigg
rolf.sigg at ergon.ch
Wed Jun 11 15:40:20 CEST 2008
Tim David schrieb:
> The default Fulltext Search available from the Daisy Wiki only includes documents in the current site's collection, but the user can select a radio button in the search options to include all documents in the search.
> Is there a way to change the default search to always include all documents instead of just the documents in the current site's collection?
Hi Tim
We changed the skin such that the fulltext search field issues a search with
lucene syntax by default. It should be possible to implement your requirement
the same way.
Have a look at layout.xsl of your skin. Then search for the part with a line
reading <form action="{$basePath}/search">. I included our code below.
Hope that helps
Rolf
<!-- Fulltext search box -->
<xsl:if test="$inSite = 'true'">
<div id="search">
<form action="{$basePath}/search">
<input type="text" name="query" id="searchInput"/>
<input type="hidden" name="queryType" value="luceneQuery"/>
<input type="hidden" name="branchId" value="1"/>
<input type="hidden" name="languageId" value="2"/>
<input type="hidden" name="offset" value="1"/>
<input type="hidden" name="scope" value="currentSiteCollection"/>
<input type="hidden" name="searchName" value="true"/>
<input type="hidden" name="searchContent" value="true"/>
<input type="hidden" name="searchFields" value="true"/>
<xsl:text> </xsl:text>
<input type="submit" value="skin:layout.search" id="searchButton"
i18n:attr="value"/>
</form>
</div>
</xsl:if>
--
rolf.sigg at ergon.ch, +41 44 268 89 00 http://www.ergon.ch
Ergon Informatik AG, Kleinstrasse 15, 8008 Zurich, Switzerland
______________________________________________________________
e r g o n smart people - smart software
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3275 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.cocoondev.org/pipermail/daisy/attachments/20080611/b7acc2d3/smime.bin
More information about the daisy
mailing list