- More tags for publication types
    - JavaScript for Double Click Protection in the Content Centre was missing


git-svn-id: https://svn.libreccm.org/ccm/trunk@3358 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2015-04-24 16:20:30 +00:00
parent de785f7e47
commit 93bf5882cc
5 changed files with 102 additions and 7 deletions

View File

@ -417,7 +417,9 @@
<xsl:variable name="category" select="foundry:read-current-category()"/>
<xsl:variable name="content-type"
select="$contentitem-tree/nav:attribute[@name = 'objectType']"/>
select="if ($contentitem-tree/nav:attribute[@name = 'objectType'])
then $contentitem-tree/nav:attribute[@name = 'objectType']
else $contentitem-tree/objectType"/>
<xsl:variable name="style">
<xsl:choose>

View File

@ -108,7 +108,7 @@
<xsl:value-of select="concat(./@before, $publisher/publisherName, ./@after)"/>
</xsl:template>
<xsl:template match="content-item-layout//scipublications//publisher//place">
<xsl:template match="content-item-layout//scipublications//publisher//publisher-place">
<xsl:param name="publisher" tunnel="yes"/>
<xsl:value-of select="concat(./@before, $publisher/place, ./@after)"/>
@ -198,7 +198,7 @@
</xsl:if>
</xsl:template>
<xsl:template match="content-item-layout//scipublications//series">
<xsl:template match="content-item-layout//scipublications//publication-series">
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:if test="$contentitem-tree/series">
@ -210,7 +210,7 @@
</xsl:if>
</xsl:template>
<xsl:template match="content-item-layout//scipublications//series//series">
<xsl:template match="content-item-layout//scipublications//publication-series//series">
<xsl:param name="series" tunnel="yes"/>
<xsl:variable name="layout-tree" select="./*"/>
@ -227,13 +227,13 @@
</xsl:for-each>
</xsl:template>
<xsl:template match="content-item-layout//scipublications//series//series//series-name">
<xsl:template match="content-item-layout//scipublications//publication-series//series//series-name">
<xsl:param name="series-obj" tunnel="yes"/>
<xsl:value-of select="$series-obj/title"/>
</xsl:template>
<xsl:template match="content-item-layout//scipublications//series//series//series-volume">
<xsl:template match="content-item-layout//scipublications//publication-series//series//series-volume">
<xsl:param name="series-obj" tunnel="yes"/>
<xsl:value-of select="$series-obj/@volume"/>
@ -620,7 +620,11 @@
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:if test="$contentitem-tree/collectedVolume">
<xsl:apply-templates/>
<xsl:apply-templates>
<xsl:with-param name="contentitem-tree"
tunnel="yes"
select="$contentitem-tree/collectedVolume"/>
</xsl:apply-templates>
</xsl:if>
</xsl:template>
@ -638,4 +642,57 @@
<xsl:value-of select="$contentitem-tree/chapter"/>
</xsl:template>
<xsl:template match="content-item-layout//scipublications//if-name-of-conference">
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:if test="$contentitem-tree/nameOfConference">
<xsl:apply-templates/>
</xsl:if>
</xsl:template>
<xsl:template match="content-item-layout//scipublications//name-of-conference">
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:value-of select="$contentitem-tree/nameOfConference"/>
</xsl:template>
<xsl:template match="content-item-layout//scipublications//if-place-of-conference">
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:if test="$contentitem-tree/placeOfConference">
<xsl:apply-templates/>
</xsl:if>
</xsl:template>
<xsl:template match="content-item-layout//scipublications//place-of-conference">
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:value-of select="$contentitem-tree/placeOfConference"/>
</xsl:template>
<xsl:template match="content-item-layout//scipublications//date-from-conference">
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:value-of select="$contentitem-tree/dateFromOfConference"/>
</xsl:template>
<xsl:template match="content-item-layout//scipublications//date-to-conference">
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:value-of select="$contentitem-tree/dateToOfConference"/>
</xsl:template>
<xsl:template match="content-item-layout//scipublications//if-proceedings">
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:if test="$contentitem-tree/proceedings">
<xsl:apply-templates>
<xsl:with-param name="contentitem-tree"
tunnel="yes"
select="$contentitem-tree/proceedings"/>
</xsl:apply-templates>
</xsl:if>
</xsl:template>
</xsl:stylesheet>

View File

@ -118,4 +118,8 @@
<xsl:value-of select="'&#x20;'"/>
</xsl:template>
<xsl:template match="show-characters">
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>

View File

@ -0,0 +1,31 @@
function doubleClickProtect(element) {
if (element.nodeName == "INPUT") {
// change button label
elementClone = element.cloneNode(true);
elementClone.value = "Bitte warten...";
// set cloned button and hide the original one
element.parentNode.insertBefore(elementClone, element);
element.style.display = "none";
// disable all submit buttons in this form
formElements = element.form.elements;
for (i = 0; i < formElements.length; i++) {
if (formElements[i].tagName == "INPUT" &&
formElements[i].type == "submit" &&
formElements[i] != element)
formElements[i].setAttribute("disabled", "disabled");
}
} else {
// disable link
link = element.getAttribute("href");
element.text = "Bitte warten...";
element.removeAttribute("href");
location.href = link;
}
}

View File

@ -9,6 +9,7 @@
<load-css-files/>
<load-jquery/>
<script src="scripts/category-step.js" origin="internal"/>
<script src="scripts/dcp.js" origin="internal"/>
</head>
<body id="cms-page">
<div id="cms-header" class="header-height">