109 lines
4.4 KiB
XML
109 lines
4.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE stylesheet [<!ENTITY nbsp ' '>]>
|
|
|
|
<!--
|
|
Copyright: 2006, 2007, 2008 Sören Bernstein
|
|
|
|
This file is part of Mandalay.
|
|
|
|
Mandalay is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
Mandalay is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with Mandalay. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<!-- DE
|
|
Hier werden die Suchanfragen verarbeitet
|
|
-->
|
|
|
|
<!-- EN
|
|
Processing search queries
|
|
-->
|
|
|
|
<!-- Autor: Sören Bernstein -->
|
|
|
|
<xsl:stylesheet
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
|
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
|
xmlns:nav="http://ccm.redhat.com/navigation"
|
|
xmlns:search="http://rhea.redhat.com/search/1.0"
|
|
xmlns:mandalay="http://mandalay.quasiweb.de"
|
|
exclude-result-prefixes="xsl bebop cms nav mandalay"
|
|
version="1.0">
|
|
|
|
<!-- DE Zeige das Suchformular für die Admin-Oberfläche an -->
|
|
<!-- EN Show the search queries for the admin pages -->
|
|
<xsl:template match="search:query">
|
|
<xsl:param name="layoutTree" select="."/>
|
|
|
|
<xsl:variable name="setSearchFormInResultList">
|
|
<xsl:call-template name="mandalay:getSetting">
|
|
<xsl:with-param name="node" select="$layoutTree/setSearchFormInResultList"/>
|
|
<xsl:with-param name="module" select="'search'"/>
|
|
<xsl:with-param name="setting" select="'setSearchFormInResultList'"/>
|
|
<xsl:with-param name="default" select="'true'"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
<xsl:variable name="setAdditionFilter">
|
|
<xsl:call-template name="mandalay:getSetting">
|
|
<xsl:with-param name="node" select="$layoutTree/setAdditionFilter"/>
|
|
<xsl:with-param name="module" select="'search'"/>
|
|
<xsl:with-param name="setting" select="'setAdditionFilter'"/>
|
|
<xsl:with-param name="default" select="'true'"/>
|
|
</xsl:call-template>
|
|
</xsl:variable>
|
|
|
|
<style type="text/css" media="screen">
|
|
#resultList {display: table; }
|
|
#resultList .resultListHeader {display: table-row; background-color: #eee; width: 100%; color: #999; font-weight: bold; }
|
|
#resultList .resultListHeader span {display: table-cell; padding-top: 0.1em; padding-bottom: 0.1em;}
|
|
#resultList .result {display: table-row; }
|
|
#resultList .result span {display: table-cell; padding-bottom: 0.7em; padding-right: 1em; }
|
|
#resultList .result.even {background-color: #f6f6f6;}
|
|
<!--
|
|
#search {display: table;}
|
|
#search .query {display: table-cell; text-align: right; vertical-align: top; font-weight: bold; padding-right: 1em;}
|
|
#search fieldset {display: table-row;}
|
|
#search .terms {display: table-cell; padding-bottom: 1.2em;}
|
|
#search .filter {display: table-row;}
|
|
#search .filterName {display: table-cell; text-align: right; vertical-align: top; font-weight: bold; padding-right: 1em;}
|
|
#search .filterParam {display: table-cell; padding-bottom: 1.2em;}
|
|
-->
|
|
<xsl:choose>
|
|
<xsl:when test="'false'">
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</style>
|
|
<div id="search">
|
|
<!-- DE Nicht anzeigen, wenn bereits ein Suchergebnis vorliegt -->
|
|
<!-- EN Don't show, if there is already a search result -->
|
|
<xsl:if test="$setSearchFormInResultList = 'true' or not(../search:results)">
|
|
<xsl:apply-templates select="search:terms"/>
|
|
</xsl:if>
|
|
<xsl:if test="search:*[not(self::search:terms)] and $setAdditionFilter = 'true'">
|
|
<fieldset class="advancedSearch">
|
|
<legend onclick="javascript:parent.display('none');">
|
|
<xsl:call-template name="mandalay:getStaticText">
|
|
<xsl:with-param name="module" select="'search'"/>
|
|
<xsl:with-param name="id" select="'additionalFilters'"/>
|
|
</xsl:call-template>
|
|
</legend>
|
|
<xsl:apply-templates select="search:*[not(self::search:terms)]"/>
|
|
</fieldset>
|
|
</xsl:if>
|
|
</div>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|