Foundry support for journal-search-widget
parent
a2545e9751
commit
ec94a9e1f7
|
|
@ -1 +1,110 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2019 LibreCCM Foundation.
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||||
|
* MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
Processes the journal search widget.
|
||||||
|
|
||||||
|
Author: Jens Pelzetter, jens.pelzetter@googlemail.com
|
||||||
|
-->
|
||||||
|
<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:foundry="http://foundry.libreccm.org"
|
||||||
|
xmlns:nav="http://ccm.redhat.com/navigation"
|
||||||
|
exclude-result-prefixes="xsl bebop cms foundry nav"
|
||||||
|
version="2.0">
|
||||||
|
|
||||||
|
<xsl:template match="cms:journal-search-widget">
|
||||||
|
|
||||||
|
<div class="journal-search-widget">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="./cms:selected-journal">
|
||||||
|
<p>
|
||||||
|
<xsl:value-of select="./cms:selected-journal/@name" />
|
||||||
|
</p>
|
||||||
|
<input type="hidden"
|
||||||
|
id="{./@name}"
|
||||||
|
value="{./selected-journal/@journalId}" />
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<p id="{concat(./@name, '-selected')">
|
||||||
|
<strong>
|
||||||
|
<xsl:value-of select="foundry:get-internal-static-text('cms', 'journal-search-widget/no-journal-selected')" />
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
<button id="{concat(./@name, 'select-journal-button')}"
|
||||||
|
type="button"
|
||||||
|
class="select-journal-button"
|
||||||
|
data-dialogId="{concat(./@name, '-dialog')}"
|
||||||
|
data-target="{./@name}">
|
||||||
|
<xsl:value-of select="foundry:get-internal-static-text('cms', 'journal-search-widget/select-journal-button')" />
|
||||||
|
</button>
|
||||||
|
<dialog id="{concat(./@name, '-dialog')}"
|
||||||
|
class="journal-search-widget-dialog"
|
||||||
|
data-dispatcherPrefix="{$dispatcher-prefix}"
|
||||||
|
data-targetId="{./@name}">
|
||||||
|
<h3 class="titlebar">
|
||||||
|
<xsl:value-of select="foundry:get-internal-static-text('cms', 'journal-search-widget/titlebar')" />
|
||||||
|
<button type="button"
|
||||||
|
class="close-button"
|
||||||
|
data-dialogId="{concat(./@name, '-dialog')}">
|
||||||
|
<span>
|
||||||
|
<xsl:value-of select="foundry:get-internal-static-text('cms', 'journal-search-widget/titlebar/close')" />
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
</h3>
|
||||||
|
<div class="controls">
|
||||||
|
<input type="hidden" id="{concat(./@name, '-last-focus')}" />
|
||||||
|
<label for="{concat(./@name, 'journal-filter')}">
|
||||||
|
<xsl:value-of select="foundry:get-internal-static-text('cms', 'journal-search-widget/filter-list')" />
|
||||||
|
</label>
|
||||||
|
<input type="text" id="{concat(./@name, '-dialog-journal-filter')}" />
|
||||||
|
<button type="button"
|
||||||
|
class="apply-filter"
|
||||||
|
data-dialogId="{concat(./@name, '-dialog')}">
|
||||||
|
<xsl:value-of select="foundry:get-internal-static-text('cms', 'journal-search-widget/filter-list/apply')" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="selectable-journals">
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
<xsl:value-of select="foundry:get-internal-static-text('cms', 'journal-search-widget/table/header/name')" />
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
</table>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>$name</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</div>
|
||||||
|
</dialog>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
</xsl:stylesheet>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1,49 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2019 LibreCCM Foundation.
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||||
|
* MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
Processes the publisher search widget.
|
||||||
|
|
||||||
|
Author: Jens Pelzetter, jens.pelzetter@googlemail.com
|
||||||
|
-->
|
||||||
|
<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:foundry="http://foundry.libreccm.org"
|
||||||
|
xmlns:nav="http://ccm.redhat.com/navigation"
|
||||||
|
exclude-result-prefixes="xsl bebop cms foundry nav"
|
||||||
|
version="2.0">
|
||||||
|
|
||||||
|
<xsl:template match="cms:series-search-widget">
|
||||||
|
|
||||||
|
<div class="series-search-widget">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="./cms:selected-series">
|
||||||
|
<p>
|
||||||
|
<xsl:value-of select="
|
||||||
|
</p>
|
||||||
|
</xsl:when>
|
||||||
|
</xsl:choose>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
</xsl:stylesheet>
|
||||||
|
|
|
||||||
|
|
@ -447,7 +447,7 @@ function setSelectedSeries(seriesId, seriesName, targetId, dialogId) {
|
||||||
toggleSelectSeriesDialog('hide', dialogId);
|
toggleSelectSeriesDialog('hide', dialogId);
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleSelectSeriesDialog(dialogId) {
|
function toggleSelectSeriesDialog(mode, dialogId) {
|
||||||
var dialog = document.querySelector("#" + dialogId);
|
var dialog = document.querySelector("#" + dialogId);
|
||||||
|
|
||||||
if ('show' === mode) {
|
if ('show' === mode) {
|
||||||
|
|
|
||||||
|
|
@ -122,6 +122,43 @@
|
||||||
<translation lang="en">Close</translation>
|
<translation lang="en">Close</translation>
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
|
<text id="journal-search-widget/filter-list">
|
||||||
|
<translation lang="de">Filtern nach</translation>
|
||||||
|
<translation lang="en">Filter using</translation>
|
||||||
|
</text>
|
||||||
|
<text id="journal-search-widget/filter-list/apply">
|
||||||
|
<translation lang="de">Anwenden</translation>
|
||||||
|
<translation lang="en">Apply</translation>
|
||||||
|
</text>
|
||||||
|
<text id="journal-search-widget/no-journal-selected">
|
||||||
|
<translation lang="de">Keine Zeitschrift ausgewählt</translation>
|
||||||
|
<translation lang="en">No journal selected</translation>
|
||||||
|
</text>
|
||||||
|
<text id="journal-search-widget/selected-journal">
|
||||||
|
<translation lang="de">Ausgewählte Zeitschrift</translation>
|
||||||
|
<translation lang="en">Selected journal</translation>
|
||||||
|
</text>
|
||||||
|
<text id="journal-search-widget/selected-journal-name">
|
||||||
|
<translation lang="de">Name</translation>
|
||||||
|
<translation lang="en">Name</translation>
|
||||||
|
</text>
|
||||||
|
<text id="journal-search-widget/select-journal-button">
|
||||||
|
<translation lang="de">Zeitschrift auswählen</translation>
|
||||||
|
<translation lang="en">Select journal</translation>
|
||||||
|
</text>
|
||||||
|
<text id="journal-search-widget/table/header/name">
|
||||||
|
<translation lang="de">Name</translation>
|
||||||
|
<translation lang="en">Name</translation>
|
||||||
|
</text>
|
||||||
|
<text id="journal-search-widget/titlebar">
|
||||||
|
<translation lang="de">Wählen Sie die zu verwendende Zeitschrift aus</translation>
|
||||||
|
<translation lang="en">Select the journal to use</translation>
|
||||||
|
</text>
|
||||||
|
<text id="journal-search-widget/titlebar/close">
|
||||||
|
<translation lang="de">Ohne Auswahl schließen</translation>
|
||||||
|
<translation lang="en">Close without selecting an journal</translation>
|
||||||
|
</text>
|
||||||
|
|
||||||
<text id="publisher-search-widget/filter-list">
|
<text id="publisher-search-widget/filter-list">
|
||||||
<translation lang="de">Filtern nach</translation>
|
<translation lang="de">Filtern nach</translation>
|
||||||
<translation lang="en">Filter using</translation>
|
<translation lang="en">Filter using</translation>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue