Content-Centre search tab now works with Foundry

git-svn-id: https://svn.libreccm.org/ccm/trunk@3074 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2015-01-15 10:49:48 +00:00
parent 44c0fea98a
commit 9c4aba1434
15 changed files with 1075 additions and 1162 deletions

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<foundry:configuration xmlns:foundry="http://foundry.libreccm.org">
<setting id="graphic-score-width">50</setting>
<setting id="graphic-score-height">10</setting>
<setting id="filter/show-category-filter">yes</setting>
<setting id="filter/show-creation-date-filter">yes</setting>
<setting id="filter/show-creation-user-filter">yes</setting>
<setting id="filter/show-content-type-filter">yes</setting>
<setting id="filter/show-host-filter">yes</setting>
<setting id="filter/show-last-editor-filter">yes</setting>
<setting id="filter/show-last-modified-date-filter">yes</setting>
<setting id="filter/show-launch-date-filter">yes</setting>
<setting id="filter/show-object-type-filter">yes</setting>
<setting id="show-addition-filter">yes</setting>
<setting id="show-graphic-score">yes</setting>
<setting id="show-query-prefix">yes</setting>
<setting id="show-score">yes</setting>
<setting id="show-search-form-in-result-list">yes</setting>
<setting id="show-summary">yes</setting>
</foundry:configuration>

View File

@ -0,0 +1,119 @@
<?xml version="1.0" encoding="utf-8" ?>
<foundry:static-texts xmlns:foundry="http://foundry.libreccm.org">
<text id="query">
<translation lang="de">Suche:</translation>
<translation lang="en">Search:</translation>
</text>
<text id="additionalFilters">
<translation lang="de">Zusätzliche Kriterien:</translation>
<translation lang="en">Additional Filters:</translation>
</text>
<text id="listheader/score">
<translation lang="de">Wertung</translation>
<translation lang="en">Evaluation</translation>
</text>
<text id="listheader/title">
<translation lang="de">Titel</translation>
<translation lang="en">Title</translation>
</text>
<text id="listheader/summary">
<translation lang="de">Zusammenfassung</translation>
<translation lang="en">Abstract</translation>
</text>
<text id="listheader/addlink">
<translation lang="de"> </translation>
<translation lang="en"> </translation>
</text>
<text id="resultlist/header">
<translation lang="de"> Suchergebnis</translation>
<translation lang="en"> Search result</translation>
</text>
<text id="resultlist/select">
<translation lang="de"> Auswählen</translation>
<translation lang="en"> Choose</translation>
</text>
<text id="searchfilter/types">
<translation lang="de">Typ:</translation>
<translation lang="en">Type:</translation>
</text>
<text id="searchfilter/sites">
<translation lang="de">Server:</translation>
<translation lang="en">Server:</translation>
</text>
<text id="searchfilter/categories">
<translation lang="de">Kategorien:</translation>
<translation lang="en">Categories:</translation>
</text>
<text id="searchfilter/searchRecursiv">
<translation lang="de">Unterkategorien durchsuchen</translation>
<translation lang="en">Search subcategories</translation>
</text>
<text id="searchFilter/creationDate">
<translation lang="de">Erstellt am:</translation>
<translation lang="en">Created:</translation>
</text>
<text id="searchfilter/creationUser">
<translation lang="de">Erstellt von:</translation>
<translation lang="en">Created by:</translation>
</text>
<text id="searchfilter/lastModUser">
<translation lang="de">Geändert von:</translation>
<translation lang="en">Edited by:</translation>
</text>
<text id="searchfilter/launchDate">
<translation lang="de">Publiziert am:</translation>
<translation lang="en">Published at:</translation>
</text>
<text id="searchfilter/lastModDate">
<translation lang="de">Geändert am:</translation>
<translation lang="en">Edited at:</translation>
</text>
<text id="searchfilter/creationDate">
<translation lang="de">Erstellt am:</translation>
<translation lang="en">Created at</translation>
</text>
<text id="searchfilter/dateRange/day">
<translation lang="de">Tag</translation>
<translation lang="en">Day</translation>
</text>
<text id="searchfilter/dateRange/month">
<translation lang="de">Monat</translation>
<translation lang="en">Month</translation>
</text>
<text id="searchfilter/dateRange/year">
<translation lang="de">Jahr</translation>
<translation lang="en">Year</translation>
</text>
<text id="searchfilter/dateRange/from">
<translation lang="de">Von:</translation>
<translation lang="en">From:</translation>
</text>
<text id="searchfilter/dateRange/to">
<translation lang="de">Bis:</translation>
<translation lang="en">To:</translation>
</text>
</foundry:static-texts>

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 B

View File

@ -26,7 +26,7 @@
<xsl:import href="lib/bebop.xsl"/> <xsl:import href="lib/bebop.xsl"/>
<!--<xsl:import href="lib/portlets.xsl"/>--> <!--<xsl:import href="lib/portlets.xsl"/>-->
<xsl:import href="lib/global-vars.xsl"/> <xsl:import href="lib/global-vars.xsl"/>
<!--<xsl:import href="lib/search.xsl"/>--> <xsl:import href="lib/search.xsl"/>
<xsl:import href="lib/template-parser.xsl"/> <xsl:import href="lib/template-parser.xsl"/>
<xsl:import href="lib/template-tags.xsl"/> <xsl:import href="lib/template-tags.xsl"/>
<xsl:import href="lib/utils.xsl"/> <xsl:import href="lib/utils.xsl"/>

View File

@ -35,15 +35,8 @@
name="foundry:filter-controls"> name="foundry:filter-controls">
<form action="."> <form action=".">
<xsl:attribute name="accept-charset">UTF-8</xsl:attribute> <xsl:attribute name="accept-charset">UTF-8</xsl:attribute>
<xsl:if test="string-length(./@show) &gt; 0">
<input type="hidden" name="show">
<xsl:attribute name="value">
<xsl:value-of select="./@show"/>
</xsl:attribute>
</input>
</xsl:if>
<xsl:choose> <xsl:choose>
<xsl:when test="string-length=(./@customName) &gt; 0"> <xsl:when test="string-length(./@customName) &gt; 0">
<xsl:attribute name="class" <xsl:attribute name="class"
select="concat('filter-controls ', select="concat('filter-controls ',
./@customName, ./@customName,
@ -53,9 +46,17 @@
<xsl:attribute name="class" select="'filter-controls'"/> <xsl:attribute name="class" select="'filter-controls'"/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<xsl:if test="string-length(./@show) &gt; 0">
<input type="hidden" name="show">
<xsl:attribute name="value">
<xsl:value-of select="./@show"/>
</xsl:attribute>
</input>
</xsl:if>
<xsl:variable name="sort-and-filter-list-text" <xsl:variable name="sort-and-filter-list-text"
select="foundry:get-static-text('filter-controls', select="foundry:get-static-text('filter-controls',
concat(./@customName, 'sortAndFilterList')"/> concat(./@customName, 'sortAndFilterList'))"/>
<xsl:choose> <xsl:choose>
<xsl:when test="string-length($sort-and-filter-list-text) > 0"> <xsl:when test="string-length($sort-and-filter-list-text) > 0">
<fieldset> <fieldset>
@ -99,7 +100,7 @@
<fieldset> <fieldset>
<legend> <legend>
<xsl:value-of select="foundry:get-static-text('filter-controls', <xsl:value-of select="foundry:get-static-text('filter-controls',
concat(./@customName, 'sortList')"/> concat(./@customName, 'sortList'))"/>
</legend> </legend>
<xsl:call-template name="filterControlsSortFields"/> <xsl:call-template name="filterControlsSortFields"/>
<input type="submit" class="submit"> <input type="submit" class="submit">

View File

@ -3,31 +3,30 @@
<!-- <!--
Copyright: 2006, 2007, 2008 Sören Bernstein Copyright: 2006, 2007, 2008 Sören Bernstein
Copyright: 2015 Jens Pelzetter
This file is part of Mandalay. This file is part of the Foundry Theme Engine for LibreCCM. This file
was taken from the Mandalay theme engine at has been modified to work
with Foundry.
Mandalay is free software: you can redistribute it and/or modify Foundry is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or the Free Software Foundation, either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
Mandalay is distributed in the hope that it will be useful, Foundry is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with Mandalay. If not, see <http://www.gnu.org/licenses/>. along with Foundry If not, see <http://www.gnu.org/licenses/>.
--> -->
<!--
<!-- This file was copied from Mandalay and edited to work with Foundry. --> Processing search results
<!-- EN
Processing search results
--> -->
<!-- Autor: Sören Bernstein -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0" xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
xmlns:cms="http://www.arsdigita.com/cms/1.0" xmlns:cms="http://www.arsdigita.com/cms/1.0"
@ -37,8 +36,7 @@
exclude-result-prefixes="xsl bebop cms foundry nav" exclude-result-prefixes="xsl bebop cms foundry nav"
version="2.0"> version="2.0">
<!-- DE Suchergebisse für die Webseiten werden als UL dargestellt --> <!-- Search result for webpages are translated to a ul -->
<!-- EN Search result for webpages are translated to a ul -->
<xsl:template match="search:documents"> <xsl:template match="search:documents">
<xsl:param name="layout-tree" select="."/> <xsl:param name="layout-tree" select="."/>
@ -49,13 +47,11 @@
</ul> </ul>
</xsl:template> </xsl:template>
<!-- DE Zeige das Suchergebis für die Admin-Oberfläche an --> <!-- Show search result for the admin pages -->
<!-- EN Show search result for the admin pages -->
<xsl:template match="search:documents" mode="admin"> <xsl:template match="search:documents" mode="admin">
<xsl:param name="layout-tree" select="."/> <xsl:param name="layout-tree" select="."/>
<!-- DE Hole alle benötigten Einstellungen--> <!-- Getting all needed setting-->
<!-- EN Getting all needed setting-->
<xsl:variable name="show-summary" <xsl:variable name="show-summary"
select="foundry:get-setting('search', select="foundry:get-setting('search',
'show-summary', 'show-summary',
@ -68,35 +64,26 @@
<xsl:choose> <xsl:choose>
<xsl:when test="$admin-result-mode = 'table'"> <xsl:when test="$admin-result-mode = 'table'">
<!-- DE Erzeuge Tabellenkopf für die Suchergebnisse --> <!-- Create table header for search results -->
<!-- EN Create table header for search results -->
<table id="result-list"> <table id="result-list">
<tr class="result-list-header"> <tr class="result-list-header">
<th> <th>
<xsl:call-template name="mandalay:getStaticText"> <xsl:value-of select="foundry:get-static-text('search',
<xsl:with-param name="module" select="'search'"/> 'listheader/score')"/>
<xsl:with-param name="id" select="'listheader/score'"/>
</xsl:call-template>
</th> </th>
<th> <th>
<xsl:call-template name="mandalay:getStaticText"> <xsl:value-of select="foundry:get-static-text('search',
<xsl:with-param name="module" select="'search'"/> 'listheader/title')"/>
<xsl:with-param name="id" select="'listheader/title'"/>
</xsl:call-template>
</th> </th>
<xsl:if test="$show-summary = 'true'"> <xsl:if test="$show-summary = 'true'">
<th class="summary"> <th class="summary">
<xsl:call-template name="mandalay:getStaticText"> <xsl:value-of select="foundry:get-static-text('search',
<xsl:with-param name="module" select="'search'"/> 'listheader/summary')"/>
<xsl:with-param name="id" select="'listheader/summary'"/>
</xsl:call-template>
</th> </th>
</xsl:if> </xsl:if>
<th style="width: 10em;"> <th style="width: 10em;">
<xsl:call-template name="mandalay:getStaticText"> <xsl:value-of select="foundry:get-static-text('search',
<xsl:with-param name="module" select="'search'"/> 'listheader/addlink')"/>
<xsl:with-param name="id" select="'listheader/addlink'"/>
</xsl:call-template>
</th> </th>
</tr> </tr>
<xsl:apply-templates mode="admin"/> <xsl:apply-templates mode="admin"/>
@ -135,10 +122,8 @@
<xsl:when test="$admin-result-mode = 'list'"> <xsl:when test="$admin-result-mode = 'list'">
<div id="result-list"> <div id="result-list">
<div class="result-list-header"> <div class="result-list-header">
<xsl:call-template name="mandalay:getStaticText"> <xsl:value-of select="foundry:get-static-text('search',
<xsl:with-param name="module" select="'search'"/> 'resultlist/header')"/>
<xsl:with-param name="id" select="'resultlist/header'"/>
</xsl:call-template>
</div> </div>
<ul> <ul>
<xsl:apply-templates mode="admin"/> <xsl:apply-templates mode="admin"/>

File diff suppressed because it is too large Load Diff

View File

@ -3,315 +3,166 @@
<!-- <!--
Copyright: 2006, 2007, 2008 Sören Bernstein Copyright: 2006, 2007, 2008 Sören Bernstein
Copyright: 2015 Jens Pelzetter
This file is part of Mandalay. This file is part of the Foundry Theme Engine for LibreCCM. This file
was taken from the Mandalay theme engine at has been modified to work
with Foundry.
Mandalay is free software: you can redistribute it and/or modify Foundry is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or the Free Software Foundation, either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
Mandalay is distributed in the hope that it will be useful, Foundry is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with Mandalay. If not, see <http://www.gnu.org/licenses/>. along with Foundry If not, see <http://www.gnu.org/licenses/>.
--> -->
<!-- DE <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
Hier werden die verarbeitet xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
--> xmlns:cms="http://www.arsdigita.com/cms/1.0"
xmlns:foundry="http://foundry.libreccm.org"
<!-- EN xmlns:nav="http://ccm.redhat.com/navigation"
Processing xmlns:search="http://rhea.redhat.com/search/1.0"
--> exclude-result-prefixes="xsl bebop cms foundry nav search"
version="2.0">
<!-- 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 die Suchergebnisse an --> <!-- Show the search results -->
<!-- EN Show the search results --> <xsl:template match="search:object">
<xsl:template match="search:object"> <xsl:param name="layoutTree" select="."/>
<xsl:param name="layoutTree" select="."/>
<!-- DE Hole alle benötigten Einstellungen--> <li>
<!-- EN Getting all needed setting--> <span class="re">
<xsl:variable name="setScore"> <xsl:if test="foundry:boolean(foundry:get-setting('search', 'show-score', 'true'))">
<xsl:call-template name="mandalay:getSetting"> <div class="score">
<xsl:with-param name="node" select="$layoutTree/setScore"/> <xsl:choose>
<xsl:with-param name="module" select="'search'"/> <xsl:when test="foundry:boolean(foundry:get-setting('search',
<xsl:with-param name="setting" select="'setScore'"/> 'show-graphic-score',
<xsl:with-param name="default" select="'true'"/> 'true'))">
</xsl:call-template> <xsl:attribute name="style"
</xsl:variable> select="concat('background-image: ', foundry:gen-path('images/search/score-empty.gif', 'internal'), '; ',
<xsl:variable name="setGraphicScore"> 'background-repeat: no-repeat; ',
<xsl:call-template name="mandalay:getSetting"> 'width: ', foundry:get-setting('search', 'graphic-score-width', '50'), 'px; ')"/>
<xsl:with-param name="node" select="$layoutTree/setGraphicScore"/> <div class="imgFull">
<xsl:with-param name="module" select="'search'"/> <xsl:attribute name="style"
<xsl:with-param name="setting" select="'setGraphicScore'"/> select="concat('font-size: 0px; overflow: hidden; width: ', ./@score, '; height: ', foundry:get-setting('search', 'graphic-score-height', '10'), 'px; ')"/>
<xsl:with-param name="default" select="'true'"/> <img>
</xsl:call-template> <xsl:attribute name="src"
</xsl:variable> select="foundry:gen-path('images/search/score-full.gif', 'internal')"/>
<xsl:variable name="setGraphicScoreWidth"> <xsl:attribute name="alt">
<xsl:call-template name="mandalay:getSetting"> <xsl:value-of select="./@score"/>%</xsl:attribute>
<xsl:with-param name="node" select="$layoutTree/setGraphicScoreWidth"/> <xsl:attribute name="title">
<xsl:with-param name="module" select="'search'"/> <xsl:value-of select="./@score"/>%</xsl:attribute>
<xsl:with-param name="setting" select="'setGraphicScoreWidth'"/> </img>
<xsl:with-param name="default" select="'50'"/> </div>
</xsl:call-template> </xsl:when>
</xsl:variable> <xsl:otherwise>
<xsl:variable name="setGraphicScoreHeight"> <xsl:value-of select="./@score"/>%&nbsp;
<xsl:call-template name="mandalay:getSetting"> </xsl:otherwise>
<xsl:with-param name="node" select="$layoutTree/setGraphicScoreHeight"/> </xsl:choose>
<xsl:with-param name="module" select="'search'"/> </div>
<xsl:with-param name="setting" select="'setGraphicScoreHeight'"/> </xsl:if>
<xsl:with-param name="default" select="'10'"/> <span>
</xsl:call-template> <a href="{./@url}">
</xsl:variable> <xsl:value-of select="./@title"/>
<xsl:variable name="setGraphicScoreEmptyImage"> </a>
<xsl:call-template name="mandalay:getSetting"> </span>
<xsl:with-param name="node" select="setGraphicScoreEmptyImage"/> </span>
<xsl:with-param name="module" select="'search'"/> <xsl:if test="foundry:boolean(foundry:get-setting('search', 'show-summary', 'true'))">
<xsl:with-param name="setting" select="'setGraphicScoreEmptyImage'"/> <br />
<xsl:with-param name="default" select="'images/search/scoreEmpty.gif'"/> <span class="summary">
</xsl:call-template> <xsl:value-of select="./@summary" disable-output-escaping="yes"/>
</xsl:variable> </span>
<xsl:variable name="setGraphicScoreFullImage"> </xsl:if>
<xsl:call-template name="mandalay:getSetting"> </li>
<xsl:with-param name="node" select="$layoutTree/setGraphicScoreFullImage"/> </xsl:template>
<xsl:with-param name="module" select="'search'"/>
<xsl:with-param name="setting" select="'setGraphicScoreFullImage'"/> <!--
<xsl:with-param name="default" select="'images/search/scoreFull.gif'"/> Show search results for admin pages. These a still using tables, so there is a
</xsl:call-template> special processing for the results.
</xsl:variable> -->
<xsl:variable name="setSummary"> <xsl:template match="search:object" mode="admin">
<xsl:call-template name="mandalay:getSetting"> <xsl:param name="layoutTree" select="."/>
<xsl:with-param name="node" select="$layoutTree/setSummary"/>
<xsl:with-param name="module" select="'search'"/> <div class="searchResults">
<xsl:with-param name="setting" select="'setSummary'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<li>
<span class="re">
<xsl:if test="$setScore = 'true'">
<div class="score">
<xsl:choose> <xsl:choose>
<xsl:when test="$setGraphicScore = 'true'"> <xsl:when test="position() mod 2 = 0">
<xsl:attribute name="style"> <xsl:attribute name="class">result even</xsl:attribute>
<xsl:text>background-image: url(</xsl:text> </xsl:when>
<xsl:call-template name="mandalay:linkParser"> <xsl:otherwise>
<xsl:with-param name="link" select="$setGraphicScoreEmptyImage"/> <xsl:attribute name="class">result odd</xsl:attribute>
<xsl:with-param name="prefix" select="$theme-prefix"/> </xsl:otherwise>
</xsl:call-template>
<xsl:text>); background-repeat: no-repeat; width: </xsl:text>
<xsl:value-of select="$setGraphicScoreWidth"/>
<xsl:text>px;</xsl:text>
</xsl:attribute>
<div class="imgFull">
<xsl:attribute name="style">font-size: 0px; overflow: hidden; width: <xsl:value-of select="@score"/>%; height: <xsl:value-of select="$setGraphicScoreHeight"/>px;</xsl:attribute>
<img>
<xsl:attribute name="src">
<xsl:call-template name="mandalay:linkParser">
<xsl:with-param name="link" select="$setGraphicScoreFullImage"/>
<xsl:with-param name="prefix" select="$theme-prefix"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="@score"/>%</xsl:attribute>
<xsl:attribute name="title"><xsl:value-of select="@score"/>%</xsl:attribute>
</img>
</div>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@score"/>%&nbsp;
</xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> <xsl:if test="foundry:boolean(foundry:get-setting('search', 'show-score', 'true'))">
</xsl:if> <span class="score">
<span> <xsl:choose>
<a href="{@url}"><xsl:value-of select="@title"/></a> <xsl:when test="foundry:boolean(foundry:get-setting('search',
</span> 'show-graphic-score',
</span> 'true'))">
<xsl:if test="$setSummary = 'true'"> <div class="score">
<br /> <xsl:attribute name="style"
<span class="summary"> select="concat('background-image: ', foundry:gen-path('images/search/score-empty.gif', 'internal'), '; ',
<xsl:value-of select="@summary" disable-output-escaping="yes"/> 'background-repeat: no-repeat; ',
</span> 'width: ', foundry:get-setting('search', 'graphic-score-width', '50'), 'px; ')"/>
</xsl:if> <div class="imgFull">
</li> <xsl:attribute name="style"
</xsl:template> select="concat('font-size: 0px; overflow: hidden; width: ', ./@score, '; height: ', foundry:get-setting('search', 'graphic-score-height', '10'), 'px; ')"/>
<img>
<!-- DE Zeige die Suchergebnisse in der Admin-Oberfläche an. Die braucht noch Tabellen, <xsl:attribute name="src"
daher eine gesonderte Behandlung. --> select="foundry:gen-path('images/search/score-full.gif', 'internal')"/>
<!-- EN Show search results for admin pages. These a still using tables, so there is a <xsl:attribute name="alt">
special processing for the results. --> <xsl:value-of select="./@score"/>%</xsl:attribute>
<xsl:template match="search:object" mode="admin"> <xsl:attribute name="title">
<xsl:param name="layoutTree" select="."/> <xsl:value-of select="./@score"/>%</xsl:attribute>
</img>
<!-- DE Hole alle benötigten Einstellungen--> </div>
<!-- EN Getting all needed setting--> </div>
<xsl:variable name="setScore"> </xsl:when>
<xsl:call-template name="mandalay:getSetting"> <xsl:otherwise>
<xsl:with-param name="node" select="$layoutTree/setScore"/> <xsl:value-of select="./@score"/>%
<xsl:with-param name="module" select="'search'"/> </xsl:otherwise>
<xsl:with-param name="setting" select="'setScore'"/> </xsl:choose>
<xsl:with-param name="default" select="'true'"/> </span>
</xsl:call-template> </xsl:if>
</xsl:variable> <span>
<xsl:variable name="setGraphicScore"> <a href="{./@url}&amp;context=draft">
<xsl:call-template name="mandalay:getSetting"> <xsl:value-of select="concat(@title, ' (', ./@locale, ')')"/>
<xsl:with-param name="node" select="$layoutTree/setGraphicScore"/> </a>
<xsl:with-param name="module" select="'search'"/> </span>
<xsl:with-param name="setting" select="'setGraphicScore'"/> <xsl:if test="foundry:boolean(foundry:get-setting('search', 'show-summary', 'true'))">
<xsl:with-param name="default" select="'true'"/> <span>
</xsl:call-template> <em>
</xsl:variable> <xsl:value-of select="@summary"/>
<xsl:variable name="setGraphicScoreWidth"> </em>
<xsl:call-template name="mandalay:getSetting"> </span>
<xsl:with-param name="node" select="$layoutTree/setGraphicScoreWidth"/> </xsl:if>
<xsl:with-param name="module" select="'search'"/> <xsl:if test="./@class='jsButton' or ./@class='radioButton'">
<xsl:with-param name="setting" select="'setGraphicScoreWidth'"/> <span>
<xsl:with-param name="default" select="'50'"/> <xsl:value-of disable-output-escaping="yes" select="search:jsAction"/>
</xsl:call-template> <a onClick="{search:jsAction/@name}" href="javascript:{search:jsAction/@name}">
</xsl:variable> <img>
<xsl:variable name="setGraphicScoreHeight"> <xsl:attribute name="src"
<xsl:call-template name="mandalay:getSetting"> select="foundry:gen-path('images/search/action.png',
<xsl:with-param name="node" select="$layoutTree/setGraphicScoreHeight"/> 'internal')"/>
<xsl:with-param name="module" select="'search'"/> <xsl:attribute name="alt"
<xsl:with-param name="setting" select="'setGraphicScoreheight'"/> select="foundry:get-static-text('search',
<xsl:with-param name="default" select="'10'"/> 'resultList/select')"/>
</xsl:call-template> <xsl:attribute name="title"
</xsl:variable> select="foundry:get-static-text('search',
<xsl:variable name="setGraphicScoreEmptyImage"> 'resultlist/select')"/>
<xsl:call-template name="mandalay:getSetting"> </img>
<xsl:with-param name="node" select="$layoutTree/setGraphicScoreEmptyImage"/> <xsl:value-of select="foundry:get-static-text('search',
<xsl:with-param name="module" select="'search'"/> 'resultlist/select')"/>
<xsl:with-param name="setting" select="'setGraphicScoreEmptyImage'"/> </a>
<xsl:with-param name="default" select="'images/search/scoreEmpty.gif'"/> </span>
</xsl:call-template> </xsl:if>
</xsl:variable> </div>
<xsl:variable name="setGraphicScoreFullImage"> </xsl:template>
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="node" select="$layoutTree/setGraphicScoreFullImage"/>
<xsl:with-param name="module" select="'search'"/>
<xsl:with-param name="setting" select="'setGraphicScoreFullImage'"/>
<xsl:with-param name="default" select="'images/search/scoreFull.gif'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setActionImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="node" select="$layoutTree/setActionImage"/>
<xsl:with-param name="module" select="'search'"/>
<xsl:with-param name="setting" select="'setActionImage'"/>
<xsl:with-param name="default" select="'images/search/action.png'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setSummary">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="node" select="$layoutTree/setSummary"/>
<xsl:with-param name="module" select="'search'"/>
<xsl:with-param name="setting" select="'setSummary'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<div class="searchResults">
<xsl:choose>
<xsl:when test="position() mod 2 = 0">
<xsl:attribute name="class">result even</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="class">result odd</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$setScore = 'true'">
<span class="score">
<xsl:choose>
<xsl:when test="$setGraphicScore = 'true'">
<div class="score">
<xsl:attribute name="style">
<xsl:text>background-image: url(</xsl:text>
<xsl:call-template name="mandalay:linkParser">
<xsl:with-param name="link" select="$setGraphicScoreEmptyImage"/>
<xsl:with-param name="prefix" select="$theme-prefix"/>
</xsl:call-template>
<xsl:text>); background-repeat: no-repeat; width: </xsl:text>
<xsl:value-of select="$setGraphicScoreWidth"/>
<xsl:text>px;</xsl:text>
</xsl:attribute>
<div class="imgFull">
<xsl:attribute name="style">font-size: 0px; overflow: hidden; width: <xsl:value-of select="@score"/>%; height: <xsl:value-of select="$setGraphicScoreHeight"/>px;</xsl:attribute>
<img>
<xsl:attribute name="src">
<xsl:call-template name="mandalay:linkParser">
<xsl:with-param name="link" select="$setGraphicScoreFullImage"/>
<xsl:with-param name="prefix" select="$theme-prefix"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="@score"/>%</xsl:attribute>
<xsl:attribute name="title"><xsl:value-of select="@score"/>%</xsl:attribute>
</img>
</div>
</div>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@score"/>%
</xsl:otherwise>
</xsl:choose>
</span>
</xsl:if>
<span>
<a href="{@url}&amp;context=draft">
<xsl:value-of select="concat(@title, ' (', @locale, ')')"/>
</a>
</span>
<xsl:if test="$setSummary = 'true'">
<span><em><xsl:value-of select="@summary"/></em></span>
</xsl:if>
<xsl:if test="@class='jsButton' or @class='radioButton'">
<span>
<xsl:value-of disable-output-escaping="yes" select="search:jsAction"/>
<a onClick="{search:jsAction/@name}" href="javascript:{search:jsAction/@name}">
<img>
<xsl:attribute name="src">
<xsl:call-template name="mandalay:linkParser">
<xsl:with-param name="link" select="$setActionImage"/>
<xsl:with-param name="prefix" select="$theme-prefix"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'search'"/>
<xsl:with-param name="id" select="'resultlist/select'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'search'"/>
<xsl:with-param name="id" select="'resultlist/select'"/>
</xsl:call-template>
</xsl:attribute>
</img>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'search'"/>
<xsl:with-param name="id" select="'resultlist/select'"/>
</xsl:call-template>
</a>
</span>
</xsl:if>
</div>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -3,73 +3,63 @@
<!-- <!--
Copyright: 2006, 2007, 2008 Sören Bernstein Copyright: 2006, 2007, 2008 Sören Bernstein
Copyright: 2015 Jens Pelzetter
This file is part of Mandalay. This file is part of the Foundry Theme Engine for LibreCCM. This file
was taken from the Mandalay theme engine at has been modified to work
with Foundry.
Mandalay is free software: you can redistribute it and/or modify Foundry is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or the Free Software Foundation, either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
Mandalay is distributed in the hope that it will be useful, Foundry is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with Mandalay. If not, see <http://www.gnu.org/licenses/>. along with Foundry If not, see <http://www.gnu.org/licenses/>.
--> -->
<!-- DE
Hier wird die Anzeige der verwendeten Filter verarbeitet <!--
Processing search party text
--> -->
<!-- EN <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
Processing search party text xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
--> xmlns:cms="http://www.arsdigita.com/cms/1.0"
xmlns:foundry="http://foundry.libreccm.org"
<!-- Autor: Sören Bernstein --> xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:search="http://rhea.redhat.com/search/1.0"
<xsl:stylesheet exclude-result-prefixes="xsl bebop cms foundry nav search"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
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 die gesetzten Filter an --> <!-- Show all enabled filters -->
<!-- EN Show all enabled filters --> <xsl:template match="search:partyText">
<xsl:template match="search:partyText"> <xsl:param name="filterName"/>
<xsl:param name="filterName"/> <xsl:param name="layoutTree" select="."/>
<xsl:param name="layoutTree" select="."/>
<!-- DE Hole alle benötigten Einstellungen--> <xsl:if test="$filterName = 'true'">
<!-- EN Getting all needed setting--> <div class="filter">
<xsl:variable name="showPartyText"> <span class="filterName">
<xsl:call-template name="mandalay:getSetting"> <xsl:value-of select="$filterName"/>
<xsl:with-param name="node" select="$layoutTree/showPartyText"/> </span>
<xsl:with-param name="module" select="'search'"/> <span class="filterParam">
<xsl:with-param name="setting" select="'filter/showPartyText'"/> <input size="30">
<xsl:with-param name="default" select="'true'"/> <xsl:attribute name="name">
</xsl:call-template> <xsl:value-of select="@name"/>
</xsl:variable> </xsl:attribute>
<xsl:attribute name="value">
<xsl:if test="$filterName = 'true'"> <xsl:value-of select="@value"/>
<div class="filter"> </xsl:attribute>
<span class="filterName"> </input>
<xsl:value-of select="$filterName"/> </span>
</span> </div>
<span class="filterParam"> </xsl:if>
<input size="30"> </xsl:template>
<xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="@value"/></xsl:attribute>
</input>
</span>
</div>
</xsl:if>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -3,106 +3,89 @@
<!-- <!--
Copyright: 2006, 2007, 2008 Sören Bernstein Copyright: 2006, 2007, 2008 Sören Bernstein
Copyright: 2015 Jens Pelzetter
This file is part of Mandalay. This file is part of the Foundry Theme Engine for LibreCCM. This file
was taken from the Mandalay theme engine at has been modified to work
with Foundry.
Mandalay is free software: you can redistribute it and/or modify Foundry is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or the Free Software Foundation, either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
Mandalay is distributed in the hope that it will be useful, Foundry is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with Mandalay. If not, see <http://www.gnu.org/licenses/>. along with Foundry If not, see <http://www.gnu.org/licenses/>.
--> -->
<!-- DE
Hier werden die Suchanfragen verarbeitet
-->
<!-- EN <!--
Processing search queries 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"
<xsl:stylesheet xmlns:cms="http://www.arsdigita.com/cms/1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:foundry="http://foundry.libreccm.org"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0" xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:cms="http://www.arsdigita.com/cms/1.0" xmlns:search="http://rhea.redhat.com/search/1.0"
xmlns:nav="http://ccm.redhat.com/navigation" exclude-result-prefixes="xsl bebop cms foundry nav search"
xmlns:search="http://rhea.redhat.com/search/1.0" version="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 --> <!-- Show the search queries for the admin pages -->
<!-- EN Show the search queries for the admin pages --> <xsl:template match="search:query">
<xsl:template match="search:query"> <xsl:param name="layoutTree" select="."/>
<xsl:param name="layoutTree" select="."/>
<xsl:variable name="setSearchFormInResultList"> <style type="text/css" media="screen">
<xsl:call-template name="mandalay:getSetting"> #resultList {display: table; }
<xsl:with-param name="node" select="$layoutTree/setSearchFormInResultList"/> #resultList .resultListHeader {display: table-row; background-color: #eee; width: 100%; color: #999; font-weight: bold; }
<xsl:with-param name="module" select="'search'"/> #resultList .resultListHeader span {display: table-cell; padding-top: 0.1em; padding-bottom: 0.1em;}
<xsl:with-param name="setting" select="'setSearchFormInResultList'"/> #resultList .result {display: table-row; }
<xsl:with-param name="default" select="'true'"/> #resultList .result span {display: table-cell; padding-bottom: 0.7em; padding-right: 1em; }
</xsl:call-template> #resultList .result.even {background-color: #f6f6f6;}
</xsl:variable> <!--
<xsl:variable name="setAdditionFilter"> #search {display: table;}
<xsl:call-template name="mandalay:getSetting"> #search .query {display: table-cell; text-align: right; vertical-align: top; font-weight: bold; padding-right: 1em;}
<xsl:with-param name="node" select="$layoutTree/setAdditionFilter"/> #search fieldset {display: table-row;}
<xsl:with-param name="module" select="'search'"/> #search .terms {display: table-cell; padding-bottom: 1.2em;}
<xsl:with-param name="setting" select="'setAdditionFilter'"/> #search .filter {display: table-row;}
<xsl:with-param name="default" select="'true'"/> #search .filterName {display: table-cell; text-align: right; vertical-align: top; font-weight: bold; padding-right: 1em;}
</xsl:call-template> #search .filterParam {display: table-cell; padding-bottom: 1.2em;}
</xsl:variable> -->
<xsl:choose>
<style type="text/css" media="screen"> <xsl:when test="'false'">
#resultList {display: table; } </xsl:when>
#resultList .resultListHeader {display: table-row; background-color: #eee; width: 100%; color: #999; font-weight: bold; } <xsl:otherwise>
#resultList .resultListHeader span {display: table-cell; padding-top: 0.1em; padding-bottom: 0.1em;} </xsl:otherwise>
#resultList .result {display: table-row; } </xsl:choose>
#resultList .result span {display: table-cell; padding-bottom: 0.7em; padding-right: 1em; } </style>
#resultList .result.even {background-color: #f6f6f6;} <div id="search">
<!-- <!-- Don't show, if there is already a search result -->
#search {display: table;} <xsl:if test="foundry:boolean(foundry:get-setting('search',
#search .query {display: table-cell; text-align: right; vertical-align: top; font-weight: bold; padding-right: 1em;} 'show-search-form-in-result-list',
#search fieldset {display: table-row;} 'true'))
#search .terms {display: table-cell; padding-bottom: 1.2em;} or not(../search:results)">
#search .filter {display: table-row;} <xsl:apply-templates select="search:terms"/>
#search .filterName {display: table-cell; text-align: right; vertical-align: top; font-weight: bold; padding-right: 1em;} </xsl:if>
#search .filterParam {display: table-cell; padding-bottom: 1.2em;} <xsl:if test="search:*[not(self::search:terms)]
--> and foundry:boolean(foundry:get-setting('search',
<xsl:choose> 'show-addition-filter',
<xsl:when test="'false'"> 'true'))">
</xsl:when> <fieldset class="advancedSearch">
<xsl:otherwise> <legend onclick="javascript:parent.display('none');">
</xsl:otherwise> <xsl:value-of select="foundry:get-static-text('search',
</xsl:choose> 'additionalFilters')"/>
</style> </legend>
<div id="search"> <xsl:apply-templates select="search:*[not(self::search:terms)]"/>
<!-- DE Nicht anzeigen, wenn bereits ein Suchergebnis vorliegt --> </fieldset>
<!-- EN Don't show, if there is already a search result --> </xsl:if>
<xsl:if test="$setSearchFormInResultList = 'true' or not(../search:results)"> </div>
<xsl:apply-templates select="search:terms"/> </xsl:template>
</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> </xsl:stylesheet>

View File

@ -3,59 +3,55 @@
<!-- <!--
Copyright: 2006, 2007, 2008 Sören Bernstein Copyright: 2006, 2007, 2008 Sören Bernstein
Copyright: 2015 Jens Pelzetter
This file is part of Mandalay. This file is part of the Foundry Theme Engine for LibreCCM. This file
was taken from the Mandalay theme engine at has been modified to work
with Foundry.
Mandalay is free software: you can redistribute it and/or modify Foundry is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or the Free Software Foundation, either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
Mandalay is distributed in the hope that it will be useful, Foundry is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with Mandalay. If not, see <http://www.gnu.org/licenses/>. along with Foundry If not, see <http://www.gnu.org/licenses/>.
--> -->
<!-- DE <!--
Hier werden die Suchergebnisse verarbeitet
-->
<!-- EN
Processing search results Processing search results
--> -->
<!-- Autor: Sören Bernstein --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
<xsl:stylesheet xmlns:cms="http://www.arsdigita.com/cms/1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:foundry="http://foundry.libreccm.org"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0" xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:cms="http://www.arsdigita.com/cms/1.0" xmlns:search="http://rhea.redhat.com/search/1.0"
xmlns:nav="http://ccm.redhat.com/navigation" exclude-result-prefixes="xsl bebop cms foundry nav search"
xmlns:search="http://rhea.redhat.com/search/1.0" version="2.0">
xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav mandalay"
version="1.0">
<!-- DE Zeigt das Ergebnis in der Admin-Oberfläche an --> <!-- Show the result on admin pages -->
<!-- EN Show the result on admin pages --> <xsl:template match="search:results">
<xsl:template match="search:results"> <xsl:choose>
<xsl:choose> <xsl:when test="../search:query/bebop:formWidget[@name='draft_search']">
<xsl:when test="../search:query/bebop:formWidget[@name='draft_search']"> <xsl:apply-templates select="search:documents" mode="admin"/>
<xsl:apply-templates select="search:documents" mode="admin"/> </xsl:when>
</xsl:when> <xsl:otherwise>
<xsl:otherwise> <xsl:apply-templates select="search:documents | info"/>
<xsl:apply-templates select="search:documents | info"/> </xsl:otherwise>
</xsl:otherwise> </xsl:choose>
</xsl:choose> </xsl:template>
</xsl:template>
<xsl:template match="info"> <xsl:template match="info">
<div class="info"> <div class="info">
<xsl:value-of select="."/> <xsl:value-of select="."/>
</div> </div>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -3,71 +3,57 @@
<!-- <!--
Copyright: 2006, 2007, 2008 Sören Bernstein Copyright: 2006, 2007, 2008 Sören Bernstein
Copyright: 2015 Jens Pelzetter
This file is part of Mandalay. This file is part of the Foundry Theme Engine for LibreCCM. This file
was taken from the Mandalay theme engine at has been modified to work
with Foundry.
Mandalay is free software: you can redistribute it and/or modify Foundry is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or the Free Software Foundation, either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
Mandalay is distributed in the hope that it will be useful, Foundry is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with Mandalay. If not, see <http://www.gnu.org/licenses/>. along with Foundry If not, see <http://www.gnu.org/licenses/>.
--> -->
<!-- DE <!--
Hier werden die Suchwörter verarbeitet
-->
<!-- EN
Processing search terms Processing search terms
--> -->
<!-- Autor: Sören Bernstein --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
<xsl:stylesheet xmlns:cms="http://www.arsdigita.com/cms/1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:foundry="http://foundry.libreccm.org"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0" xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:cms="http://www.arsdigita.com/cms/1.0" xmlns:search="http://rhea.redhat.com/search/1.0"
xmlns:nav="http://ccm.redhat.com/navigation" exclude-result-prefixes="xsl bebop cms foundry nav search"
xmlns:search="http://rhea.redhat.com/search/1.0" version="2.0">
xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav mandalay"
version="1.0">
<!-- DE Erzeuge das Eingabefeld für die Suchwörter --> <!-- Create a widget for the search terms -->
<!-- EN Create a widget for the search terms --> <xsl:template match="search:terms">
<xsl:template match="search:terms"> <xsl:param name="layoutTree" select="."/>
<xsl:param name="layoutTree" select="."/>
<xsl:if test="foundry:boolean(foundry:get-setting('search', 'show-query-prefix', 'true'))">
<!-- DE Hole alle benötigten Einstellungen--> <span class="query">
<!-- EN Getting all needed setting--> <xsl:value-of select="foundry:get-static-text('search', 'query')"/>
<xsl:variable name="setQueryPrefix"> </span>
<xsl:call-template name="mandalay:getSetting"> </xsl:if>
<xsl:with-param name="node" select="$layoutTree/setQueryPrefix"/> <span class="terms">
<xsl:with-param name="module" select="'search'"/> <input size="30"
<xsl:with-param name="setting" select="'setQueryPrefix'"/> type="text"
<xsl:with-param name="default" select="'true'"/> name="{@param}"
</xsl:call-template> value="{@value}"
</xsl:variable> title="Enter one or more search terms"/>
<xsl:apply-templates select="../bebop:formWidget"/>
<xsl:if test="$setQueryPrefix = 'true'"> </span>
<span class="query"> </xsl:template>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'search'"/>
<xsl:with-param name="id" select="'query'"/>
</xsl:call-template>
</span>
</xsl:if>
<span class="terms">
<input size="30" type="text" name="{@param}" value="{@value}" title="Enter one or more search terms"/>
<xsl:apply-templates select="../bebop:formWidget"/>
</span>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -0,0 +1,119 @@
<?xml version="1.0" encoding="utf-8" ?>
<foundry:static-texts xmlns:foundry="http://foundry.libreccm.org">
<text id="query">
<translation lang="de">Suche:</translation>
<translation lang="en">Search:</translation>
</text>
<text id="additionalFilters">
<translation lang="de">Zusätzliche Kriterien:</translation>
<translation lang="en">Additional Filters:</translation>
</text>
<text id="listheader/score">
<translation lang="de">Wertung</translation>
<translation lang="en">Evaluation</translation>
</text>
<text id="listheader/title">
<translation lang="de">Titel</translation>
<translation lang="en">Title</translation>
</text>
<text id="listheader/summary">
<translation lang="de">Zusammenfassung</translation>
<translation lang="en">Abstract</translation>
</text>
<text id="listheader/addlink">
<translation lang="de"> </translation>
<translation lang="en"> </translation>
</text>
<text id="resultlist/header">
<translation lang="de"> Suchergebnis</translation>
<translation lang="en"> Search result</translation>
</text>
<text id="resultlist/select">
<translation lang="de"> Auswählen</translation>
<translation lang="en"> Choose</translation>
</text>
<text id="searchfilter/types">
<translation lang="de">Typ:</translation>
<translation lang="en">Type:</translation>
</text>
<text id="searchfilter/sites">
<translation lang="de">Server:</translation>
<translation lang="en">Server:</translation>
</text>
<text id="searchfilter/categories">
<translation lang="de">Kategorien:</translation>
<translation lang="en">Categories:</translation>
</text>
<text id="searchfilter/searchRecursiv">
<translation lang="de">Unterkategorien durchsuchen</translation>
<translation lang="en">Search subcategories</translation>
</text>
<text id="searchFilter/creationDate">
<translation lang="de">Erstellt am:</translation>
<translation lang="en">Created:</translation>
</text>
<text id="searchfilter/creationUser">
<translation lang="de">Erstellt von:</translation>
<translation lang="en">Created by:</translation>
</text>
<text id="searchfilter/lastModUser">
<translation lang="de">Geändert von:</translation>
<translation lang="en">Edited by:</translation>
</text>
<text id="searchfilter/launchDate">
<translation lang="de">Publiziert am:</translation>
<translation lang="en">Published at:</translation>
</text>
<text id="searchfilter/lastModDate">
<translation lang="de">Geändert am:</translation>
<translation lang="en">Edited at:</translation>
</text>
<text id="searchfilter/creationDate">
<translation lang="de">Erstellt am:</translation>
<translation lang="en">Created at</translation>
</text>
<text id="searchfilter/dateRange/day">
<translation lang="de">Tag</translation>
<translation lang="en">Day</translation>
</text>
<text id="searchfilter/dateRange/month">
<translation lang="de">Monat</translation>
<translation lang="en">Month</translation>
</text>
<text id="searchfilter/dateRange/year">
<translation lang="de">Jahr</translation>
<translation lang="en">Year</translation>
</text>
<text id="searchfilter/dateRange/from">
<translation lang="de">Von:</translation>
<translation lang="en">From:</translation>
</text>
<text id="searchfilter/dateRange/to">
<translation lang="de">Bis:</translation>
<translation lang="en">To:</translation>
</text>
</foundry:static-texts>