Content-Centre search tab now works with Foundry
git-svn-id: https://svn.libreccm.org/ccm/trunk@3074 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
44c0fea98a
commit
9c4aba1434
|
|
@ -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>
|
||||||
|
|
@ -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 |
|
|
@ -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"/>
|
||||||
|
|
|
||||||
|
|
@ -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) > 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) > 0">
|
<xsl:when test="string-length(./@customName) > 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) > 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">
|
||||||
|
|
|
||||||
|
|
@ -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. -->
|
|
||||||
|
|
||||||
<!-- EN
|
|
||||||
Processing search results
|
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"/>
|
||||||
|
|
|
||||||
|
|
@ -3,66 +3,49 @@
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
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 Suchfilter verarbeitet
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- EN
|
|
||||||
Processing search filter
|
Processing search filter
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- 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"
|
||||||
|
xmlns:foundry="http://foundry.libreccm.org"
|
||||||
xmlns:nav="http://ccm.redhat.com/navigation"
|
xmlns:nav="http://ccm.redhat.com/navigation"
|
||||||
xmlns:search="http://rhea.redhat.com/search/1.0"
|
xmlns:search="http://rhea.redhat.com/search/1.0"
|
||||||
xmlns:mandalay="http://mandalay.quasiweb.de"
|
exclude-result-prefixes="xsl bebop cms foundry nav search"
|
||||||
exclude-result-prefixes="xsl bebop cms nav mandalay"
|
version="2.0">
|
||||||
version="1.0">
|
|
||||||
|
|
||||||
<!-- DE Suchfilter für Content Typ -->
|
<!-- Search filter for content type -->
|
||||||
<!-- EN Search filter for content type -->
|
|
||||||
<xsl:template match="search:filter[@type='contentType']">
|
<xsl:template match="search:filter[@type='contentType']">
|
||||||
<xsl:param name="layoutTree" select="."/>
|
<xsl:param name="layoutTree" select="."/>
|
||||||
|
|
||||||
<!-- DE Hole alle benötigten Einstellungen-->
|
<xsl:if test="foundry:boolean(foundry:get-setting('search',
|
||||||
<!-- EN Getting all needed setting-->
|
'filter/show-content-type-filter',
|
||||||
<xsl:variable name="setContentType">
|
'true'))">
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setContentType"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'filter/setContentType'"/>
|
|
||||||
<xsl:with-param name="default" select="'true'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
|
|
||||||
<xsl:if test="$setContentType = 'true'">
|
|
||||||
<div class="filter">
|
<div class="filter">
|
||||||
<span class="filterName">
|
<span class="filterName">
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search', 'searchfilter/types')"/>
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="id" select="'searchfilter/types'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</span>
|
</span>
|
||||||
<span class="filterParam">
|
<span class="filterParam">
|
||||||
<select size="10" name="{@param}" multiple="multiple">
|
<select size="10" name="{@param}" multiple="multiple">
|
||||||
|
|
@ -81,29 +64,16 @@
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Suchfilter für Object Typ -->
|
<!-- Search filter for object type -->
|
||||||
<!-- EN Search filter for object type -->
|
|
||||||
<xsl:template match="search:filter[@type='objectType']">
|
<xsl:template match="search:filter[@type='objectType']">
|
||||||
<xsl:param name="layoutTree" select="."/>
|
<xsl:param name="layoutTree" select="."/>
|
||||||
|
|
||||||
<!-- DE Hole alle benötigten Einstellungen-->
|
<xsl:if test="foundry:boolean(foundry:get-setting('search',
|
||||||
<!-- EN Getting all needed setting-->
|
'filter/show-object-type-filter',
|
||||||
<xsl:variable name="setObjectType">
|
'true'))">
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setObjectType"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'filter/setObjectType'"/>
|
|
||||||
<xsl:with-param name="default" select="'true'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
|
|
||||||
<xsl:if test="$setObjectType = 'true'">
|
|
||||||
<div class="filter">
|
<div class="filter">
|
||||||
<span class="filterName">
|
<span class="filterName">
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search', 'searchfilter/types')"/>
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="id" select="'searchfilter/types'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</span>
|
</span>
|
||||||
<span class="filterParam">
|
<span class="filterParam">
|
||||||
<select size="10" name="{@param}" multiple="multiple">
|
<select size="10" name="{@param}" multiple="multiple">
|
||||||
|
|
@ -122,29 +92,17 @@
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Suchfilter für Host -->
|
<!-- Search filter for host -->
|
||||||
<!-- EN Search filter for host -->
|
|
||||||
<xsl:template match="search:filter[@type='host']">
|
<xsl:template match="search:filter[@type='host']">
|
||||||
<xsl:param name="layoutTree" select="."/>
|
<xsl:param name="layoutTree" select="."/>
|
||||||
|
|
||||||
<!-- DE Hole alle benötigten Einstellungen-->
|
<xsl:if test="foundry:boolean(foundry:get-setting('search',
|
||||||
<!-- EN Getting all needed setting-->
|
'filter/show-host-filter',
|
||||||
<xsl:variable name="setHost">
|
'true'))">
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setHost"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'filter/setHost'"/>
|
|
||||||
<xsl:with-param name="default" select="'true'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
|
|
||||||
<xsl:if test="$setHost = 'true'">
|
|
||||||
<div class="filter">
|
<div class="filter">
|
||||||
<span class="filterName">
|
<span class="filterName">
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
'searchfilter/sites')"/>
|
||||||
<xsl:with-param name="id" select="'searchfilter/sites'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</span>
|
</span>
|
||||||
<span class="filterParam">
|
<span class="filterParam">
|
||||||
<select size="10" name="{@param}" multiple="multiple">
|
<select size="10" name="{@param}" multiple="multiple">
|
||||||
|
|
@ -162,29 +120,17 @@
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Suchfilter für Kategorie -->
|
<!-- Search filter for category -->
|
||||||
<!-- EN Search filter for category -->
|
|
||||||
<xsl:template match="search:filter[@type='category']">
|
<xsl:template match="search:filter[@type='category']">
|
||||||
<xsl:param name="layoutTree" select="."/>
|
<xsl:param name="layoutTree" select="."/>
|
||||||
|
|
||||||
<!-- DE Hole alle benötigten Einstellungen-->
|
<xsl:if test="foundry:boolean(foundry:get-setting('search',
|
||||||
<!-- EN Getting all needed setting-->
|
'filter/show-category-filter',
|
||||||
<xsl:variable name="setCategory">
|
'true'))">
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setCategory"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'filter/setCategory'"/>
|
|
||||||
<xsl:with-param name="default" select="'true'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
|
|
||||||
<xsl:if test="$setCategory = 'true'">
|
|
||||||
<div class="filter">
|
<div class="filter">
|
||||||
<span class="filterName">
|
<span class="filterName">
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
'searchfilter/categories')"/>
|
||||||
<xsl:with-param name="id" select="'searchfilter/categories'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</span>
|
</span>
|
||||||
<span class="filterParam">
|
<span class="filterParam">
|
||||||
<select size="10" name="{@param}" multiple="multiple">
|
<select size="10" name="{@param}" multiple="multiple">
|
||||||
|
|
@ -207,157 +153,94 @@
|
||||||
<xsl:attribute name="checked">checked</xsl:attribute>
|
<xsl:attribute name="checked">checked</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</input>
|
</input>
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
'searchfilter/searchRecursiv')"/>
|
||||||
<xsl:with-param name="id" select="'searchfilter/searchRecursiv'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Suchfilter für Autor -->
|
<!-- Search filter for author -->
|
||||||
<!-- EN Search filter for author -->
|
|
||||||
<xsl:template match="search:filter[@type='creationUser']">
|
<xsl:template match="search:filter[@type='creationUser']">
|
||||||
<xsl:param name="layoutTree" select="."/>
|
<xsl:param name="layoutTree" select="."/>
|
||||||
|
|
||||||
<!-- DE Hole alle benötigten Einstellungen-->
|
<xsl:if test="foundry:boolean(foundry:get-setting('search',
|
||||||
<!-- EN Getting all needed setting-->
|
'show-creation-user-filter',
|
||||||
<xsl:variable name="setCreationUser">
|
'true'))">
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setCreationUser"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'filter/setCreationUser'"/>
|
|
||||||
<xsl:with-param name="default" select="'true'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
|
|
||||||
<xsl:if test="$setCreationUser = 'true'">
|
|
||||||
<xsl:apply-templates select="search:partyText">
|
<xsl:apply-templates select="search:partyText">
|
||||||
<xsl:with-param name="filterName">
|
<xsl:with-param name="filterName">
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
'searchfilter/creationUser')"/>
|
||||||
<xsl:with-param name="id" select="'searchfilter/creationUser'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:with-param>
|
</xsl:with-param>
|
||||||
</xsl:apply-templates>
|
</xsl:apply-templates>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Suchfilter für letzten Editor -->
|
<!-- Search filter for last editor -->
|
||||||
<!-- EN Search filter for last dditor -->
|
|
||||||
<xsl:template match="search:filter[@type='lastModifiedUser']">
|
<xsl:template match="search:filter[@type='lastModifiedUser']">
|
||||||
<xsl:param name="layoutTree" select="."/>
|
<xsl:param name="layoutTree" select="."/>
|
||||||
|
|
||||||
<!-- DE Hole alle benötigten Einstellungen-->
|
<xsl:if test="foundry:boolean(foundry:get-setting('search',
|
||||||
<!-- EN Getting all needed setting-->
|
'show-last-editor-filter',
|
||||||
<xsl:variable name="setLastModifiedUser">
|
'true'))">
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setLastModifiedUser"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'filter/setLastModifiedUser'"/>
|
|
||||||
<xsl:with-param name="default" select="'true'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
|
|
||||||
<xsl:if test="$setLastModifiedUser = 'true'">
|
|
||||||
<xsl:apply-templates select="search:partyText">
|
<xsl:apply-templates select="search:partyText">
|
||||||
<xsl:with-param name="filterName">
|
<xsl:with-param name="filterName">
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
'searchfilter/lastModUser')"/>
|
||||||
<xsl:with-param name="id" select="'searchfilter/lastModUser'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:with-param>
|
</xsl:with-param>
|
||||||
</xsl:apply-templates>
|
</xsl:apply-templates>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Suchfilter für Veröffentlichungsdatum -->
|
<!-- Search filter for lauch date -->
|
||||||
<!-- EN Search filter for lauch date -->
|
|
||||||
<xsl:template match="search:filter[@type='launchDate']">
|
<xsl:template match="search:filter[@type='launchDate']">
|
||||||
<xsl:param name="layoutTree" select="."/>
|
<xsl:param name="layoutTree" select="."/>
|
||||||
|
|
||||||
<!-- DE Hole alle benötigten Einstellungen-->
|
<xsl:if test="foundry:boolean(foundry:get-setting('search' ,
|
||||||
<!-- EN Getting all needed setting-->
|
'filter/show-launch-date-filter',
|
||||||
<xsl:variable name="setLaunchDate">
|
'true'))">
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setLaunchDate"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'filter/setLaunchDate'"/>
|
|
||||||
<xsl:with-param name="default" select="'true'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
|
|
||||||
<xsl:if test="$setLaunchDate">
|
|
||||||
<xsl:call-template name="search:dateRangeFilter">
|
<xsl:call-template name="search:dateRangeFilter">
|
||||||
<xsl:with-param name="filterName">
|
<xsl:with-param name="filterName">
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
'searchfilter/lauchDate')"/>
|
||||||
<xsl:with-param name="id" select="'searchfilter/lauchDate'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:with-param>
|
</xsl:with-param>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Suchfilter für Datum der letzten Änderung -->
|
<!-- Search filter for last modified date -->
|
||||||
<!-- EN Search filter for last modified date -->
|
|
||||||
<xsl:template match="search:filter[@type='lastModifiedDate']">
|
<xsl:template match="search:filter[@type='lastModifiedDate']">
|
||||||
<xsl:param name="layoutTree" select="."/>
|
<xsl:param name="layoutTree" select="."/>
|
||||||
|
|
||||||
<!-- DE Hole alle benötigten Einstellungen-->
|
<xsl:if test="foundry:boolean(foundry:get-setting('search',
|
||||||
<!-- EN Getting all needed setting-->
|
'show-last-modified-date-filter',
|
||||||
<xsl:variable name="setLastModifiedDate">
|
'true'))">
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setLastModifiedDate"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'filter/setLastModifiedDate'"/>
|
|
||||||
<xsl:with-param name="default" select="'true'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
|
|
||||||
<xsl:if test="$setLastModifiedDate = 'true'">
|
|
||||||
<xsl:call-template name="search:dateRangeFilter">
|
<xsl:call-template name="search:dateRangeFilter">
|
||||||
<xsl:with-param name="filterName">
|
<xsl:with-param name="filterName">
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
'searchfilter/lastModDate')"/>
|
||||||
<xsl:with-param name="id" select="'searchfilter/lastModDate'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:with-param>
|
</xsl:with-param>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Suchfilter für Erzeugungsdatum -->
|
<!-- Search filter for creation date -->
|
||||||
<!-- EN Search filter for creation date -->
|
|
||||||
<xsl:template match="search:filter[@type='creationDate']">
|
<xsl:template match="search:filter[@type='creationDate']">
|
||||||
<xsl:param name="layoutTree" select="."/>
|
<xsl:param name="layoutTree" select="."/>
|
||||||
|
|
||||||
<!-- DE Hole alle benötigten Einstellungen-->
|
<xsl:if test="foundry:boolean(foundry:get-setting('search',
|
||||||
<!-- EN Getting all needed setting-->
|
'filter/show-creation-date-filter',
|
||||||
<xsl:variable name="setCreationDate">
|
'true'))">
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setCreationDate"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'filter/setCreationDate'"/>
|
|
||||||
<xsl:with-param name="default" select="'true'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
|
|
||||||
<xsl:if test="$setCreationDate = 'true'">
|
|
||||||
<xsl:call-template name="search:dateRangeFilter">
|
<xsl:call-template name="search:dateRangeFilter">
|
||||||
<xsl:with-param name="filterName">
|
<xsl:with-param name="filterName">
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
'searchFilter/creationDate')"/>
|
||||||
<xsl:with-param name="id" select="'searchfilter/creationDate'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:with-param>
|
</xsl:with-param>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Erzeuge Eingabefelder für ein Zeitraum-Filter -->
|
<!-- Create widgets for a date range filter -->
|
||||||
<!-- EN Create widgets for a date range filter -->
|
|
||||||
<xsl:template name="search:dateRangeFilter">
|
<xsl:template name="search:dateRangeFilter">
|
||||||
<xsl:param name="filterName"/>
|
<xsl:param name="filterName"/>
|
||||||
<div class="filter">
|
<div class="filter">
|
||||||
|
|
@ -373,8 +256,6 @@
|
||||||
<xsl:call-template name="search:oldStyleDateRangeFilter"/>
|
<xsl:call-template name="search:oldStyleDateRangeFilter"/>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
@ -393,30 +274,22 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td/>
|
<td/>
|
||||||
<th>
|
<th>
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
concat('searchfilter/dateRange/', $fragment1))"/>
|
||||||
<xsl:with-param name="id" select="concat('searchfilter/dateRange/', $fragment1)"/>
|
|
||||||
</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'"/>
|
concat('searchfilter/dateRange/', $fragment2))"/>
|
||||||
<xsl:with-param name="id" select="concat('searchfilter/dateRange/', $fragment2)"/>
|
|
||||||
</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'"/>
|
concat('searchfilter/dateRange/', $fragment3))"/>
|
||||||
<xsl:with-param name="id" select="concat('searchfilter/dateRange/', $fragment3)"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th align="right">
|
<th align="right">
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
'searchfilter/dateRange/from')"/>
|
||||||
<xsl:with-param name="id" select="'searchfilter/dateRange/from'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</th>
|
</th>
|
||||||
<xsl:call-template name="search:dateRangeFragment">
|
<xsl:call-template name="search:dateRangeFragment">
|
||||||
<xsl:with-param name="fragment" select="$fragment1"/>
|
<xsl:with-param name="fragment" select="$fragment1"/>
|
||||||
|
|
@ -433,10 +306,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th align="right">
|
<th align="right">
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
'searchfilter/dateRange/to')"/>
|
||||||
<xsl:with-param name="id" select="'searchfilter/dateRange/to'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</th>
|
</th>
|
||||||
<xsl:call-template name="search:dateRangeFragment">
|
<xsl:call-template name="search:dateRangeFragment">
|
||||||
<xsl:with-param name="fragment" select="$fragment1"/>
|
<xsl:with-param name="fragment" select="$fragment1"/>
|
||||||
|
|
@ -466,12 +337,12 @@
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$mode = 'start' and search:day/@startDay">
|
<xsl:when test="$mode = 'start' and search:day/@startDay">
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="value">
|
||||||
<xsl:value-of select="@search:day/@startDay"/>
|
<xsl:value-of select="./search:day/@startDay"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="$mode = 'end' and search:day/@endDay">
|
<xsl:when test="$mode = 'end' and search:day/@endDay">
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="value">
|
||||||
<xsl:value-of select="@search:day/@endDay"/>
|
<xsl:value-of select="./search:day/@endDay"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise/>
|
<xsl:otherwise/>
|
||||||
|
|
@ -531,36 +402,28 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td/>
|
<td/>
|
||||||
<th>
|
<th>
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
'searchfilter/dateRange/day')"/>
|
||||||
<xsl:with-param name="id" select="'searchfilter/dateRange/day'"/>
|
|
||||||
</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'"/>
|
'searchfilter/dateRange/month')"/>
|
||||||
<xsl:with-param name="id" select="'searchfilter/dateRange/month'"/>
|
|
||||||
</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'"/>
|
'searchfilter/dateRange/year')"/>
|
||||||
<xsl:with-param name="id" select="'searchfilter/dateRange/year'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th align="right">
|
<th align="right">
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
'searchfilter/dateRange/from')"/>
|
||||||
<xsl:with-param name="id" select="'searchfilter/dateRange/from'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<input size="2" type="text" name="{@param}.start.day">
|
<input size="2" type="text" name="{@param}.start.day">
|
||||||
<xsl:if test="search:day/@startDay">
|
<xsl:if test="search:day/@startDay">
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="value">
|
||||||
<xsl:value-of select="@search:day/@startDay"/>
|
<xsl:value-of select="./search:day/@startDay"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</input>
|
</input>
|
||||||
|
|
@ -592,16 +455,14 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th align="right">
|
<th align="right">
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
'searchfilter/dateRange/to')"/>
|
||||||
<xsl:with-param name="id" select="'searchfilter/dateRange/to'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<input size="2" type="text" name="{@param}.end.day">
|
<input size="2" type="text" name="{@param}.end.day">
|
||||||
<xsl:if test="search:day/@endDay">
|
<xsl:if test="search:day/@endDay">
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="value">
|
||||||
<xsl:value-of select="@search:day/@endDay"/>
|
<xsl:value-of select="./search:day/@endDay"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</input>
|
</input>
|
||||||
|
|
|
||||||
|
|
@ -3,230 +3,93 @@
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
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
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- EN
|
|
||||||
Processing
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- 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: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"
|
||||||
|
xmlns:foundry="http://foundry.libreccm.org"
|
||||||
xmlns:nav="http://ccm.redhat.com/navigation"
|
xmlns:nav="http://ccm.redhat.com/navigation"
|
||||||
xmlns:search="http://rhea.redhat.com/search/1.0"
|
xmlns:search="http://rhea.redhat.com/search/1.0"
|
||||||
xmlns:mandalay="http://mandalay.quasiweb.de"
|
exclude-result-prefixes="xsl bebop cms foundry nav search"
|
||||||
exclude-result-prefixes="xsl bebop cms nav mandalay"
|
version="2.0">
|
||||||
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-->
|
|
||||||
<!-- EN Getting all needed setting-->
|
|
||||||
<xsl:variable name="setScore">
|
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setScore"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'setScore'"/>
|
|
||||||
<xsl:with-param name="default" select="'true'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
<xsl:variable name="setGraphicScore">
|
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setGraphicScore"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'setGraphicScore'"/>
|
|
||||||
<xsl:with-param name="default" select="'true'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
<xsl:variable name="setGraphicScoreWidth">
|
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setGraphicScoreWidth"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'setGraphicScoreWidth'"/>
|
|
||||||
<xsl:with-param name="default" select="'50'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
<xsl:variable name="setGraphicScoreHeight">
|
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setGraphicScoreHeight"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'setGraphicScoreHeight'"/>
|
|
||||||
<xsl:with-param name="default" select="'10'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
<xsl:variable name="setGraphicScoreEmptyImage">
|
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="setGraphicScoreEmptyImage"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'setGraphicScoreEmptyImage'"/>
|
|
||||||
<xsl:with-param name="default" select="'images/search/scoreEmpty.gif'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
<xsl:variable name="setGraphicScoreFullImage">
|
|
||||||
<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="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>
|
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<span class="re">
|
<span class="re">
|
||||||
<xsl:if test="$setScore = 'true'">
|
<xsl:if test="foundry:boolean(foundry:get-setting('search', 'show-score', 'true'))">
|
||||||
<div class="score">
|
<div class="score">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$setGraphicScore = 'true'">
|
<xsl:when test="foundry:boolean(foundry:get-setting('search',
|
||||||
<xsl:attribute name="style">
|
'show-graphic-score',
|
||||||
<xsl:text>background-image: url(</xsl:text>
|
'true'))">
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
<xsl:attribute name="style"
|
||||||
<xsl:with-param name="link" select="$setGraphicScoreEmptyImage"/>
|
select="concat('background-image: ', foundry:gen-path('images/search/score-empty.gif', 'internal'), '; ',
|
||||||
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
'background-repeat: no-repeat; ',
|
||||||
</xsl:call-template>
|
'width: ', foundry:get-setting('search', 'graphic-score-width', '50'), 'px; ')"/>
|
||||||
<xsl:text>); background-repeat: no-repeat; width: </xsl:text>
|
|
||||||
<xsl:value-of select="$setGraphicScoreWidth"/>
|
|
||||||
<xsl:text>px;</xsl:text>
|
|
||||||
</xsl:attribute>
|
|
||||||
<div class="imgFull">
|
<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>
|
<xsl:attribute name="style"
|
||||||
|
select="concat('font-size: 0px; overflow: hidden; width: ', ./@score, '; height: ', foundry:get-setting('search', 'graphic-score-height', '10'), 'px; ')"/>
|
||||||
<img>
|
<img>
|
||||||
<xsl:attribute name="src">
|
<xsl:attribute name="src"
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
select="foundry:gen-path('images/search/score-full.gif', 'internal')"/>
|
||||||
<xsl:with-param name="link" select="$setGraphicScoreFullImage"/>
|
<xsl:attribute name="alt">
|
||||||
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
<xsl:value-of select="./@score"/>%</xsl:attribute>
|
||||||
</xsl:call-template>
|
<xsl:attribute name="title">
|
||||||
</xsl:attribute>
|
<xsl:value-of select="./@score"/>%</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>
|
</img>
|
||||||
</div>
|
</div>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:value-of select="@score"/>%
|
<xsl:value-of select="./@score"/>%
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</div>
|
</div>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<span>
|
<span>
|
||||||
<a href="{@url}"><xsl:value-of select="@title"/></a>
|
<a href="{./@url}">
|
||||||
|
<xsl:value-of select="./@title"/>
|
||||||
|
</a>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<xsl:if test="$setSummary = 'true'">
|
<xsl:if test="foundry:boolean(foundry:get-setting('search', 'show-summary', 'true'))">
|
||||||
<br />
|
<br />
|
||||||
<span class="summary">
|
<span class="summary">
|
||||||
<xsl:value-of select="@summary" disable-output-escaping="yes"/>
|
<xsl:value-of select="./@summary" disable-output-escaping="yes"/>
|
||||||
</span>
|
</span>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</li>
|
</li>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Zeige die Suchergebnisse in der Admin-Oberfläche an. Die braucht noch Tabellen,
|
<!--
|
||||||
daher eine gesonderte Behandlung. -->
|
Show search results for admin pages. These a still using tables, so there is a
|
||||||
<!-- EN Show search results for admin pages. These a still using tables, so there is a
|
special processing for the results.
|
||||||
special processing for the results. -->
|
-->
|
||||||
<xsl:template match="search:object" mode="admin">
|
<xsl:template match="search:object" mode="admin">
|
||||||
<xsl:param name="layoutTree" select="."/>
|
<xsl:param name="layoutTree" select="."/>
|
||||||
|
|
||||||
<!-- DE Hole alle benötigten Einstellungen-->
|
|
||||||
<!-- EN Getting all needed setting-->
|
|
||||||
<xsl:variable name="setScore">
|
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setScore"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'setScore'"/>
|
|
||||||
<xsl:with-param name="default" select="'true'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
<xsl:variable name="setGraphicScore">
|
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setGraphicScore"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'setGraphicScore'"/>
|
|
||||||
<xsl:with-param name="default" select="'true'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
<xsl:variable name="setGraphicScoreWidth">
|
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setGraphicScoreWidth"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'setGraphicScoreWidth'"/>
|
|
||||||
<xsl:with-param name="default" select="'50'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
<xsl:variable name="setGraphicScoreHeight">
|
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setGraphicScoreHeight"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'setGraphicScoreheight'"/>
|
|
||||||
<xsl:with-param name="default" select="'10'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
<xsl:variable name="setGraphicScoreEmptyImage">
|
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setGraphicScoreEmptyImage"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'setGraphicScoreEmptyImage'"/>
|
|
||||||
<xsl:with-param name="default" select="'images/search/scoreEmpty.gif'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
<xsl:variable name="setGraphicScoreFullImage">
|
|
||||||
<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">
|
<div class="searchResults">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="position() mod 2 = 0">
|
<xsl:when test="position() mod 2 = 0">
|
||||||
|
|
@ -236,78 +99,66 @@
|
||||||
<xsl:attribute name="class">result odd</xsl:attribute>
|
<xsl:attribute name="class">result odd</xsl:attribute>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
<xsl:if test="$setScore = 'true'">
|
<xsl:if test="foundry:boolean(foundry:get-setting('search', 'show-score', 'true'))">
|
||||||
<span class="score">
|
<span class="score">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$setGraphicScore = 'true'">
|
<xsl:when test="foundry:boolean(foundry:get-setting('search',
|
||||||
|
'show-graphic-score',
|
||||||
|
'true'))">
|
||||||
<div class="score">
|
<div class="score">
|
||||||
<xsl:attribute name="style">
|
<xsl:attribute name="style"
|
||||||
<xsl:text>background-image: url(</xsl:text>
|
select="concat('background-image: ', foundry:gen-path('images/search/score-empty.gif', 'internal'), '; ',
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
'background-repeat: no-repeat; ',
|
||||||
<xsl:with-param name="link" select="$setGraphicScoreEmptyImage"/>
|
'width: ', foundry:get-setting('search', 'graphic-score-width', '50'), 'px; ')"/>
|
||||||
<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">
|
<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>
|
<xsl:attribute name="style"
|
||||||
|
select="concat('font-size: 0px; overflow: hidden; width: ', ./@score, '; height: ', foundry:get-setting('search', 'graphic-score-height', '10'), 'px; ')"/>
|
||||||
<img>
|
<img>
|
||||||
<xsl:attribute name="src">
|
<xsl:attribute name="src"
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
select="foundry:gen-path('images/search/score-full.gif', 'internal')"/>
|
||||||
<xsl:with-param name="link" select="$setGraphicScoreFullImage"/>
|
<xsl:attribute name="alt">
|
||||||
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
<xsl:value-of select="./@score"/>%</xsl:attribute>
|
||||||
</xsl:call-template>
|
<xsl:attribute name="title">
|
||||||
</xsl:attribute>
|
<xsl:value-of select="./@score"/>%</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>
|
</img>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:value-of select="@score"/>%
|
<xsl:value-of select="./@score"/>%
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</span>
|
</span>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<span>
|
<span>
|
||||||
<a href="{@url}&context=draft">
|
<a href="{./@url}&context=draft">
|
||||||
<xsl:value-of select="concat(@title, ' (', @locale, ')')"/>
|
<xsl:value-of select="concat(@title, ' (', ./@locale, ')')"/>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<xsl:if test="$setSummary = 'true'">
|
<xsl:if test="foundry:boolean(foundry:get-setting('search', 'show-summary', 'true'))">
|
||||||
<span><em><xsl:value-of select="@summary"/></em></span>
|
<span>
|
||||||
|
<em>
|
||||||
|
<xsl:value-of select="@summary"/>
|
||||||
|
</em>
|
||||||
|
</span>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:if test="@class='jsButton' or @class='radioButton'">
|
<xsl:if test="./@class='jsButton' or ./@class='radioButton'">
|
||||||
<span>
|
<span>
|
||||||
<xsl:value-of disable-output-escaping="yes" select="search:jsAction"/>
|
<xsl:value-of disable-output-escaping="yes" select="search:jsAction"/>
|
||||||
<a onClick="{search:jsAction/@name}" href="javascript:{search:jsAction/@name}">
|
<a onClick="{search:jsAction/@name}" href="javascript:{search:jsAction/@name}">
|
||||||
<img>
|
<img>
|
||||||
<xsl:attribute name="src">
|
<xsl:attribute name="src"
|
||||||
<xsl:call-template name="mandalay:linkParser">
|
select="foundry:gen-path('images/search/action.png',
|
||||||
<xsl:with-param name="link" select="$setActionImage"/>
|
'internal')"/>
|
||||||
<xsl:with-param name="prefix" select="$theme-prefix"/>
|
<xsl:attribute name="alt"
|
||||||
</xsl:call-template>
|
select="foundry:get-static-text('search',
|
||||||
</xsl:attribute>
|
'resultList/select')"/>
|
||||||
<xsl:attribute name="alt">
|
<xsl:attribute name="title"
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
'resultlist/select')"/>
|
||||||
<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>
|
</img>
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
'resultlist/select')"/>
|
||||||
<xsl:with-param name="id" select="'resultlist/select'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
|
||||||
|
|
@ -3,60 +3,46 @@
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
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
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- EN
|
<!--
|
||||||
Processing search party text
|
Processing search party text
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- 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"
|
||||||
|
xmlns:foundry="http://foundry.libreccm.org"
|
||||||
xmlns:nav="http://ccm.redhat.com/navigation"
|
xmlns:nav="http://ccm.redhat.com/navigation"
|
||||||
xmlns:search="http://rhea.redhat.com/search/1.0"
|
xmlns:search="http://rhea.redhat.com/search/1.0"
|
||||||
xmlns:mandalay="http://mandalay.quasiweb.de"
|
exclude-result-prefixes="xsl bebop cms foundry nav search"
|
||||||
exclude-result-prefixes="xsl bebop cms nav mandalay"
|
version="2.0">
|
||||||
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-->
|
|
||||||
<!-- EN Getting all needed setting-->
|
|
||||||
<xsl:variable name="showPartyText">
|
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/showPartyText"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'filter/showPartyText'"/>
|
|
||||||
<xsl:with-param name="default" select="'true'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
|
|
||||||
<xsl:if test="$filterName = 'true'">
|
<xsl:if test="$filterName = 'true'">
|
||||||
<div class="filter">
|
<div class="filter">
|
||||||
<span class="filterName">
|
<span class="filterName">
|
||||||
|
|
@ -64,8 +50,12 @@
|
||||||
</span>
|
</span>
|
||||||
<span class="filterParam">
|
<span class="filterParam">
|
||||||
<input size="30">
|
<input size="30">
|
||||||
<xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
|
<xsl:attribute name="name">
|
||||||
<xsl:attribute name="value"><xsl:value-of select="@value"/></xsl:attribute>
|
<xsl:value-of select="@name"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:attribute name="value">
|
||||||
|
<xsl:value-of select="@value"/>
|
||||||
|
</xsl:attribute>
|
||||||
</input>
|
</input>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -3,65 +3,45 @@
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
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"
|
||||||
|
|
||||||
<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"
|
||||||
|
xmlns:foundry="http://foundry.libreccm.org"
|
||||||
xmlns:nav="http://ccm.redhat.com/navigation"
|
xmlns:nav="http://ccm.redhat.com/navigation"
|
||||||
xmlns:search="http://rhea.redhat.com/search/1.0"
|
xmlns:search="http://rhea.redhat.com/search/1.0"
|
||||||
xmlns:mandalay="http://mandalay.quasiweb.de"
|
exclude-result-prefixes="xsl bebop cms foundry nav search"
|
||||||
exclude-result-prefixes="xsl bebop cms nav mandalay"
|
|
||||||
version="1.0">
|
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">
|
|
||||||
<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">
|
<style type="text/css" media="screen">
|
||||||
#resultList {display: table; }
|
#resultList {display: table; }
|
||||||
#resultList .resultListHeader {display: table-row; background-color: #eee; width: 100%; color: #999; font-weight: bold; }
|
#resultList .resultListHeader {display: table-row; background-color: #eee; width: 100%; color: #999; font-weight: bold; }
|
||||||
|
|
@ -69,7 +49,7 @@
|
||||||
#resultList .result {display: table-row; }
|
#resultList .result {display: table-row; }
|
||||||
#resultList .result span {display: table-cell; padding-bottom: 0.7em; padding-right: 1em; }
|
#resultList .result span {display: table-cell; padding-bottom: 0.7em; padding-right: 1em; }
|
||||||
#resultList .result.even {background-color: #f6f6f6;}
|
#resultList .result.even {background-color: #f6f6f6;}
|
||||||
<!--
|
<!--
|
||||||
#search {display: table;}
|
#search {display: table;}
|
||||||
#search .query {display: table-cell; text-align: right; vertical-align: top; font-weight: bold; padding-right: 1em;}
|
#search .query {display: table-cell; text-align: right; vertical-align: top; font-weight: bold; padding-right: 1em;}
|
||||||
#search fieldset {display: table-row;}
|
#search fieldset {display: table-row;}
|
||||||
|
|
@ -77,7 +57,7 @@
|
||||||
#search .filter {display: table-row;}
|
#search .filter {display: table-row;}
|
||||||
#search .filterName {display: table-cell; text-align: right; vertical-align: top; font-weight: bold; padding-right: 1em;}
|
#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;}
|
#search .filterParam {display: table-cell; padding-bottom: 1.2em;}
|
||||||
-->
|
-->
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="'false'">
|
<xsl:when test="'false'">
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
|
@ -86,18 +66,21 @@
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</style>
|
</style>
|
||||||
<div id="search">
|
<div id="search">
|
||||||
<!-- DE Nicht anzeigen, wenn bereits ein Suchergebnis vorliegt -->
|
<!-- Don't show, if there is already a search result -->
|
||||||
<!-- EN Don't show, if there is already a search result -->
|
<xsl:if test="foundry:boolean(foundry:get-setting('search',
|
||||||
<xsl:if test="$setSearchFormInResultList = 'true' or not(../search:results)">
|
'show-search-form-in-result-list',
|
||||||
|
'true'))
|
||||||
|
or not(../search:results)">
|
||||||
<xsl:apply-templates select="search:terms"/>
|
<xsl:apply-templates select="search:terms"/>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:if test="search:*[not(self::search:terms)] and $setAdditionFilter = 'true'">
|
<xsl:if test="search:*[not(self::search:terms)]
|
||||||
|
and foundry:boolean(foundry:get-setting('search',
|
||||||
|
'show-addition-filter',
|
||||||
|
'true'))">
|
||||||
<fieldset class="advancedSearch">
|
<fieldset class="advancedSearch">
|
||||||
<legend onclick="javascript:parent.display('none');">
|
<legend onclick="javascript:parent.display('none');">
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search',
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
'additionalFilters')"/>
|
||||||
<xsl:with-param name="id" select="'additionalFilters'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</legend>
|
</legend>
|
||||||
<xsl:apply-templates select="search:*[not(self::search:terms)]"/>
|
<xsl:apply-templates select="search:*[not(self::search:terms)]"/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
||||||
|
|
@ -3,45 +3,41 @@
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
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"
|
||||||
|
|
||||||
<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"
|
||||||
|
xmlns:foundry="http://foundry.libreccm.org"
|
||||||
xmlns:nav="http://ccm.redhat.com/navigation"
|
xmlns:nav="http://ccm.redhat.com/navigation"
|
||||||
xmlns:search="http://rhea.redhat.com/search/1.0"
|
xmlns:search="http://rhea.redhat.com/search/1.0"
|
||||||
xmlns:mandalay="http://mandalay.quasiweb.de"
|
exclude-result-prefixes="xsl bebop cms foundry nav search"
|
||||||
exclude-result-prefixes="xsl bebop cms nav mandalay"
|
version="2.0">
|
||||||
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']">
|
||||||
|
|
|
||||||
|
|
@ -3,69 +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 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"
|
||||||
|
|
||||||
<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"
|
||||||
|
xmlns:foundry="http://foundry.libreccm.org"
|
||||||
xmlns:nav="http://ccm.redhat.com/navigation"
|
xmlns:nav="http://ccm.redhat.com/navigation"
|
||||||
xmlns:search="http://rhea.redhat.com/search/1.0"
|
xmlns:search="http://rhea.redhat.com/search/1.0"
|
||||||
xmlns:mandalay="http://mandalay.quasiweb.de"
|
exclude-result-prefixes="xsl bebop cms foundry nav search"
|
||||||
exclude-result-prefixes="xsl bebop cms nav mandalay"
|
version="2.0">
|
||||||
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="."/>
|
||||||
|
|
||||||
<!-- DE Hole alle benötigten Einstellungen-->
|
<xsl:if test="foundry:boolean(foundry:get-setting('search', 'show-query-prefix', 'true'))">
|
||||||
<!-- EN Getting all needed setting-->
|
|
||||||
<xsl:variable name="setQueryPrefix">
|
|
||||||
<xsl:call-template name="mandalay:getSetting">
|
|
||||||
<xsl:with-param name="node" select="$layoutTree/setQueryPrefix"/>
|
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="setting" select="'setQueryPrefix'"/>
|
|
||||||
<xsl:with-param name="default" select="'true'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
|
|
||||||
<xsl:if test="$setQueryPrefix = 'true'">
|
|
||||||
<span class="query">
|
<span class="query">
|
||||||
<xsl:call-template name="mandalay:getStaticText">
|
<xsl:value-of select="foundry:get-static-text('search', 'query')"/>
|
||||||
<xsl:with-param name="module" select="'search'"/>
|
|
||||||
<xsl:with-param name="id" select="'query'"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</span>
|
</span>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<span class="terms">
|
<span class="terms">
|
||||||
<input size="30" type="text" name="{@param}" value="{@value}" title="Enter one or more search terms"/>
|
<input size="30"
|
||||||
|
type="text"
|
||||||
|
name="{@param}"
|
||||||
|
value="{@value}"
|
||||||
|
title="Enter one or more search terms"/>
|
||||||
<xsl:apply-templates select="../bebop:formWidget"/>
|
<xsl:apply-templates select="../bebop:formWidget"/>
|
||||||
</span>
|
</span>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
Loading…
Reference in New Issue