Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/main/resources/toc-layouts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@
</level>
</toc-layout>

<toc-layout id="podcasts_by_volume" field="mir.toc.ancestor">
<label>Bandbezeichnung > Titel, Autor, Jahr (Podcasts)</label>
<level field="mir.toc.series.volume.top" order="desc" expanded="first">
<publications>
<sortBy field="mods.yearIssued" order="desc"/>
</publications>
</level>
</toc-layout>

<toc-layout id="blog" field="parent">
<label>Blog (gruppiert nach Erscheinungsjahr), Artikel mit Datum</label>
<level field="mods.yearIssued" order="desc" expanded="first">
Expand Down
36 changes: 36 additions & 0 deletions src/main/resources/xsl/toc/custom-toc-layouts.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,39 @@
</xsl:if>
</xsl:template>

<!-- ====================
Podcasts_by_volume:
- - - - - - - - - -
->vol
title (year)
authors
==================== -->

<xsl:template match="toc[@layout='podcasts_by_volume']//publications/doc" priority="2">
<div class="row">
<div class="col-8">
<xsl:call-template name="toc.title">
<xsl:with-param name="class">col-10</xsl:with-param>
<xsl:with-param name="titlePrefix" select="false()"/>
</xsl:call-template>
</div>
<div class="col-4">
<xsl:for-each select="field[@name='mods.yearIssued']">
<xsl:text> (</xsl:text>
<xsl:value-of select="text()"/>
<xsl:text>)</xsl:text>
</xsl:for-each>
</div>
</div>
<div class="row">
<div class="col-8">
<xsl:call-template name="toc.authors">
<xsl:with-param name="class">col-12</xsl:with-param>
</xsl:call-template>
</div>
</div>
</xsl:template>

<!-- ====================
blog article:
- - - - - - - - - -
Expand All @@ -226,6 +259,7 @@

<xsl:template name="toc.title">
<xsl:param name="class" select="''"/>
<xsl:param name="titlePrefix" select="true()"/>

<h4>
<xsl:attribute name="class">
Expand All @@ -234,6 +268,7 @@
<xsl:value-of select="concat(' ', $class)"/>
</xsl:if>
</xsl:attribute>
<xsl:if test="$titlePrefix">
<xsl:choose>
<xsl:when test="field[@name='mir.toc.series.volume.top']">
<xsl:value-of select="i18n:translate('mir.details.volume.series')"/>
Expand All @@ -251,6 +286,7 @@
<xsl:value-of select="concat('#',field[@name='mir.toc.host.articleNumber.top'],': ')"/>
</xsl:when>
</xsl:choose>
</xsl:if>
<a href="{$WebApplicationBaseURL}receive/{@id}">
<xsl:value-of select="field[@name='mir.toc.title']"/>
</a>
Expand Down