Skip to content
Permalink
ab03b313e1
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
1025 lines (996 sloc) 51.6 KB
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:eoa="http://www.edition-open-access.de/ns"
exclude-result-prefixes="xs tei"
version="2.0">
<xsl:output method="html" encoding="UTF-8"/>
<xsl:include href="tei2html_utils/html_rules.xsl"/>
<!-- use-character-maps="texreplacements"/>-->
<xsl:variable name="langid" select="//tei:langUsage/tei:language/@ident"/>
<xsl:variable name="transl" select="document('data/aux/translations.xml')"/>
<xsl:key name="en" match="translations/entry" use="@en"/>
<xsl:key name="de" match="translations/entry" use="@de"/>
<xsl:key name="fr" match="translations/entry" use="@fr"/>
<xsl:key name="it" match="translations/entry" use="@it"/>
<!-- index sorting, https://stackoverflow.com/questions/13763271 -->
<xsl:key name="kWith1stLetter" match="family" use="substring(.,1,1)"/>
<xsl:param name="verbosity" as="xs:integer" required="no" select="0"/>
<xsl:template match="/">
<xsl:message> domain: <xsl:value-of select="$domain"/> </xsl:message>
<xsl:call-template name="writeindexfile"/>
<xsl:call-template name="writechapterfiles"/>
</xsl:template>
<xsl:template name="writeindexfile">
<xsl:result-document method="html" encoding="UTF-8" include-content-type="yes" href="{concat('./', lower-case(//tei:seriesStmt/tei:title), '/', //tei:seriesStmt/tei:idno[@type='number'], '/index.html')}">
<xsl:element name="html">
<xsl:attribute name="lang">
<xsl:value-of select="//tei:profileDesc/tei:langUsage/tei:language/@ident"/>
</xsl:attribute>
<head>
<title>
<xsl:apply-templates select="//tei:titleStmt/tei:title[@type='main']"/>
</title>
<link rel="shortcut icon" href="../../static/assets/images/favicon.png"/>
<link href="../../static/ea0d7c9e162cd536e094.app.css" rel="stylesheet"/>
<xsl:call-template name="website_meta_tags">
<xsl:with-param name="citation_title">
<xsl:apply-templates select="//tei:titleStmt/tei:title[@type='main']"/>
</xsl:with-param>
<xsl:with-param name="citation_author">
<xsl:variable name="people" select="//tei:titleStmt/tei:author/@ref | //tei:titleStmt/tei:editor[@role='volumeeditor']/@ref"/>
<xsl:call-template name="format_persons">
<xsl:with-param name="people" select="$people"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="dc_title">
<xsl:apply-templates select="//tei:titleStmt/tei:title[@type='main']"/>
</xsl:with-param>
<xsl:with-param name="dc_publisher">
<xsl:value-of select="//tei:publicationStmt/tei:publisher/tei:orgName[@n='EOA']"/>
</xsl:with-param>
<xsl:with-param name="dc_creator">
<xsl:variable name="people" select="//tei:titleStmt/tei:author/@ref | //tei:titleStmt/tei:editor[@role='volumeeditor']/@ref"/>
<xsl:call-template name="format_persons">
<xsl:with-param name="people" select="$people"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</head>
<body>
<xsl:call-template name="website_body">
<xsl:with-param name="static_path" select="'../../static'"/>
<xsl:with-param name="breadcrumb_items">
<li class="breadcrumbs__item">
<xsl:element name="a">
<xsl:attribute name="class">
<xsl:text>breadcrumbs__link</xsl:text>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="concat('./publications.html/', lower-case(//tei:seriesStmt/tei:title))"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="//tei:seriesStmt/tei:title"/>
</xsl:attribute>
<xsl:value-of select="//tei:seriesStmt/tei:title"/>
</xsl:element>
</li>
<li class="breadcrumbs__item">
<xsl:element name="span">
<xsl:attribute name="class">
<xsl:text>breadcrumbs__link-current</xsl:text>
</xsl:attribute>
<xsl:attribute name="style">
<xsl:text>max-width: 800px;</xsl:text>
</xsl:attribute>
<xsl:apply-templates select="//tei:titleStmt/tei:title[@type='main']"/>
</xsl:element>
</li>
</xsl:with-param>
<xsl:with-param name="main">
<main class="main publications">
<div class="container">
<div class="main-content">
<section class="publications__teaser">
<div class="project-teaser">
<div class="project-teaser__image">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="//tei:front/tei:figure[@type='cover']/tei:graphic/@url"/>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="concat('Cover image of ', //tei:titleStmt/tei:title[@type='main'])"/>
</xsl:attribute>
<xsl:attribute name="data-object-fit">
<xsl:text>cover</xsl:text>
</xsl:attribute>
</xsl:element>
</div>
<div class="project-teaser-info">
<div class="project-teaser-info__category">
<xsl:value-of select="concat(//tei:seriesStmt/tei:title, ' ', //tei:seriesStmt/tei:idno[@type='number'])"/>
</div>
<h2 class="project-teaser-info__title">
<xsl:apply-templates select="//tei:titleStmt/tei:title[@type='main']"/>
</h2>
<xsl:variable name="people" select="//tei:titleStmt/tei:author/@ref | //tei:titleStmt/tei:editor[@role='volumeeditor']/@ref"/>
<xsl:element name="a">
<xsl:attribute name="class">
<xsl:text>project-teaser-info__author-link</xsl:text>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:text>#</xsl:text>
</xsl:attribute>
<xsl:call-template name="format_linked_persons">
<xsl:with-param name="people" select="$people"/>
</xsl:call-template>
</xsl:element>
<xsl:element name="span">
<xsl:attribute name="class">
<xsl:text>project-teaser-info__author-link</xsl:text>
</xsl:attribute>
<xsl:if test="//tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:editor[@role='volumeeditor']">
<xsl:choose>
<xsl:when test="count($people) = 1">
<xsl:variable name="keyterm" select="$transl//entry[@name='editor-abbr']"/>
<xsl:value-of select="concat(' (', $keyterm/@*[local-name() = $langid], ')')"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="keyterm" select="$transl//entry[@name='editors-abbr']"/>
<xsl:value-of select="concat(' (', $keyterm/@*[local-name() = $langid], ')')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:element>
<div class="project-teaser-info__buttons">
<xsl:element name="a">
<xsl:attribute name="class">
<xsl:text>link link--green</xsl:text>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:text>./1/index.html</xsl:text>
</xsl:attribute>
<span class="link__label">READ ONLINE</span>
</xsl:element>
<xsl:element name="a">
<xsl:attribute name="class">
<xsl:text>link ml-20</xsl:text>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:text>#</xsl:text>
</xsl:attribute>
<span class="link__label link__label--inner">PDF</span>
</xsl:element>
<xsl:element name="a">
<xsl:attribute name="class">
<xsl:text>link ml-20</xsl:text>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:text>#</xsl:text>
</xsl:attribute>
<span class="link__label link__label--inner">EBOOK</span>
</xsl:element>
</div>
<div class="project-teaser-info__subtext">
Click on the entries in the Table of Contents below to download individual chapters.
<br/>
This publication is licensed under a
<xsl:element name="a"><xsl:attribute name="href"><xsl:value-of select="//tei:availability/tei:licence/@target"/></xsl:attribute><xsl:attribute name="target"><xsl:text>_blank</xsl:text></xsl:attribute><xsl:value-of select="//tei:availability/tei:licence"/>
Licence
</xsl:element>
.</div>
</div>
</div>
<div class="publications-phone__additional-info">
<div class="publishing__buttons-block publishing__phone-btn">
<div class="more-block">
<button class="more-block__btn link" type="button" name="read" value="read">Read</button>
<div class="more-block__drop-down more-block__drop-down_small">
<xsl:element name="a"><xsl:attribute name="class"><xsl:text>arrow-link</xsl:text></xsl:attribute><xsl:attribute name="href"><xsl:text>./1/index.html</xsl:text></xsl:attribute>
Online
</xsl:element>
<xsl:element name="a"><xsl:attribute name="class"><xsl:text>arrow-link_down</xsl:text></xsl:attribute><xsl:attribute name="href"><xsl:text>#</xsl:text></xsl:attribute>
PDF
</xsl:element>
<xsl:element name="a"><xsl:attribute name="class"><xsl:text>arrow-link_down</xsl:text></xsl:attribute><xsl:attribute name="href"><xsl:text>#</xsl:text></xsl:attribute>
EBOOK
</xsl:element>
</div>
</div>
</div>
<div class="project-teaser-info__subtext">
This publication is licensed under a
<xsl:element name="a"><xsl:attribute name="href"><xsl:value-of select="//tei:availability/tei:licence/@target"/></xsl:attribute><xsl:attribute name="target"><xsl:text>_blank</xsl:text></xsl:attribute><xsl:value-of select="//tei:availability/tei:licence"/></xsl:element>
Licence.
</div>
</div>
</section>
<section>
<div class="publications-info">
<div class="accordion">
<div class="accordion__item accordion__item--border-top active">
<a class="accordion__title" href="#">
<h2>Information</h2>
</a>
<div class="accordion__content">
<div class="layout-col-3">
<div class="column">
<div class="row">
<h4>ISBN</h4>
<p>
<xsl:value-of select="//tei:publicationStmt/tei:idno[@type='isbn']"/>
</p>
<h4>Pages</h4>
<p>
<xsl:value-of select="//tei:fileDesc/tei:extent/tei:measure[@commodity='pages']/@quantity"/>
</p>
<h4>Publication Date</h4>
<p>
<xsl:variable name="pubdate" select="//tei:publicationStmt/tei:date/@when"/>
<xsl:value-of select="format-date($pubdate, '[MNn] [D1], [Y]')"/>
</p>
</div>
</div>
<div class="column">
<div class="row">
<h4>Print on Demand</h4>
<p>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="//tei:publicationStmt/tei:distributor/tei:orgName/@ref"/>
</xsl:attribute>
<xsl:value-of select="substring-before(//tei:publicationStmt/tei:distributor/tei:orgName, ' digital')"/>
</xsl:element>
</p>
<h4>Price</h4>
<p>
<xsl:value-of select="//tei:fileDesc/tei:extent/tei:measure[@type='price']/@quantity"/>
<xsl:if test="//tei:fileDesc/tei:extent/tei:measure[@type='price']/@unit='EUR'">
<xsl:text> &#x20AC;</xsl:text>
</xsl:if>
</p>
</div>
</div>
<div class="column">
<div class="row">
<h4>Submitted by</h4>
<p>
<xsl:variable name="submitter" select="//tei:titleStmt/tei:editor[@role='submitter']/@ref"/>
<xsl:call-template name="format_persons">
<xsl:with-param name="people" select="$submitter"/>
</xsl:call-template>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="publishing__block publication__tabs">
<div class="tabs">
<div class="tabs__head">
<ul class="tabs__items">
<li class="tabs__item">
<a class="tabs__label" href="#">DESCRIPTION</a>
</li>
<li class="tabs__item">
<a class="tabs__label" href="#">TABLE OF CONTENTS</a>
</li>
<xsl:if test="//tei:body//tei:index[@indexName='keyword']">
<li class="tabs__item">
<a class="tabs__label" href="#">INDEX</a>
</li>
</xsl:if>
<xsl:if test="//tei:body//tei:index[@indexName='location']">
<li class="tabs__item">
<a class="tabs__label" href="#">INDEX OF LOCATIONS</a>
</li>
</xsl:if>
<xsl:if test="//tei:body//tei:index[@indexName='person']">
<li class="tabs__item">
<a class="tabs__label" href="#">INDEX OF NAMES</a>
</li>
</xsl:if>
</ul>
</div>
<div class="tabs__content">
<div class="tabs__content-item">
<xsl:apply-templates select="//tei:profileDesc/tei:abstract[@n='detailed']/tei:p"/>
</div>
<div class="tabs__content-item">
<div class="publications__content">
<xsl:for-each select="//tei:body/tei:div[@type='part']/tei:head | //tei:body/tei:div[@type='chapter']/tei:head">
<xsl:choose>
<xsl:when test="../@type='part'">
<h4>
<xsl:value-of select="."/>
</h4>
<xsl:for-each select="../tei:div[@type='chapter']/tei:head">
<h5>
<xsl:if test="../@n != 'nonumber'">
<xsl:value-of select="concat(../@n, ' ')"/>
</xsl:if>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="concat('./', position(), '/index.html')"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="./tei:choice">
<xsl:apply-templates select="./tei:choice/tei:expan"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
<xsl:if test="../@resp">
<br/>
<xsl:variable name="people" select="../@resp"/>
<em>
<xsl:call-template name="format_string_authors">
<xsl:with-param name="authors" select="$people"/>
</xsl:call-template>
</em>
</xsl:if>
</h5>
</xsl:for-each>
</xsl:when>
<xsl:when test="../@type='chapter'">
<h5>
<xsl:if test="../@n != 'nonumber'">
<xsl:value-of select="concat(../@n, ' ')"/>
</xsl:if>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:text>#</xsl:text>
</xsl:attribute>
<xsl:choose>
<xsl:when test="./tei:choice">
<xsl:apply-templates select="./tei:choice/tei:expan"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
<xsl:if test="../@resp">
<br/>
<xsl:variable name="people" select="../@resp"/>
<em>
<xsl:call-template name="format_string_authors">
<xsl:with-param name="authors" select="$people"/>
</xsl:call-template>
</em>
</xsl:if>
</h5>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</div>
</div>
<xsl:if test="//tei:body//tei:index[@indexName='keyword']">
<div class="tabs__content-item">
<div class="publications__index-name">
<div class="accordion">
<a class="accordion__showall" href="#">Show All</a>
<xsl:call-template name="create_index">
<xsl:with-param name="indextype" select="'keyword'"/>
</xsl:call-template>
</div>
</div>
</div>
</xsl:if>
<xsl:if test="//tei:body//tei:index[@indexName='location']">
<div class="tabs__content-item">
<div class="publications__index-name">
<div class="accordion">
<a class="accordion__showall" href="#">Show All</a>
<xsl:call-template name="create_index">
<xsl:with-param name="indextype" select="'location'"/>
</xsl:call-template>
</div>
</div>
</div>
</xsl:if>
<xsl:if test="//tei:body//tei:index[@indexName='person']">
<div class="tabs__content-item">
<div class="publications__index-name">
<div class="accordion">
<a class="accordion__showall" href="#">Show All</a>
<xsl:call-template name="create_index">
<xsl:with-param name="indextype" select="'person'"/>
</xsl:call-template>
</div>
</div>
</div>
</xsl:if>
</div>
</div>
</div>
</section>
</div>
</div>
</main>
</xsl:with-param>
<xsl:with-param name="footer">
<footer class="footer">
<div class="footer__content">
<div class="footer-menu">
<a href="contact.html">Contact</a>
<a href="imprint.html">Imprint</a>
<a class="share" href="#">Share<span>this Page</span></a>
</div>
<div class="footer-logo">
<a class="footer-logo__link" href="http://edition-open-access.de" target="_blank">
<img class="logo logo--text" src="../../static/assets/images/logo-text.4ea3e4d587131f00ba9787321ce2be23.svg" alt="Edition Open Access"/>
</a>
</div>
</div>
</footer>
</xsl:with-param>
</xsl:call-template>
<script type="text/javascript" src="../../static/ea0d7c9e162cd536e094.app.js"/>
</body>
</xsl:element>
</xsl:result-document>
</xsl:template>
<xsl:template name="writechapterfiles">
<xsl:for-each select="//tei:div[@type='chapter']">
<xsl:variable name="chapter_nr" select="position()"/>
<xsl:result-document method="html" encoding="UTF-8" include-content-type="yes" href="{concat('./', $series, '/', $publication_number, '/', $chapter_nr, '/index.html')}">
<!-- <xsl:apply-templates select="*[position() > 1]"/> -->
<xsl:element name="html">
<xsl:attribute name="lang">
<xsl:value-of select="//tei:profileDesc/tei:langUsage/tei:language/@ident"/>
</xsl:attribute>
<head>
<title>
<xsl:value-of select="//tei:publicationStmt/tei:publisher/tei:orgName[@n='Press']/tei:choice/tei:abbr/text()"/>
<xsl:text> | </xsl:text>
<xsl:apply-templates select="//tei:titleStmt/tei:title[@type='main']"/>
<xsl:text> | </xsl:text>
<xsl:choose>
<xsl:when test="./tei:head/tei:choice">
<xsl:apply-templates select="./tei:head/tei:choice/tei:expan"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="./tei:head"/>
</xsl:otherwise>
</xsl:choose>
</title>
<link rel="shortcut icon" href="../../../static/assets/images/favicon.png"/>
<link href="../../../static/ea0d7c9e162cd536e094.app.css" rel="stylesheet"/>
<xsl:call-template name="website_meta_tags">
<xsl:with-param name="citation_title">
<xsl:choose>
<xsl:when test="./tei:head/tei:choice">
<xsl:apply-templates select="./tei:head/tei:choice/tei:expan"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="./tei:head"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="citation_author">
<xsl:choose>
<xsl:when test="@resp">
<xsl:variable name="people" select="@resp"/>
<xsl:call-template name="format_string_authors">
<xsl:with-param name="authors" select="$people"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="people" select="//tei:titleStmt/tei:author/@ref | //tei:titleStmt/tei:editor[@role='volumeeditor']/@ref"/>
<xsl:call-template name="format_persons">
<xsl:with-param name="people" select="$people"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="dc_title">
<xsl:choose>
<xsl:when test="./tei:head/tei:choice">
<xsl:apply-templates select="./tei:head/tei:choice/tei:expan"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="./tei:head"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="dc_publisher">
<xsl:value-of select="//tei:publicationStmt/tei:publisher/tei:orgName[@n='Press']/tei:choice/tei:expan/text()"/>
</xsl:with-param>
<xsl:with-param name="dc_creator">
<xsl:variable name="people" select="//tei:titleStmt/tei:author/@ref | //tei:titleStmt/tei:editor[@role='volumeeditor']/@ref"/>
<xsl:call-template name="format_persons">
<xsl:with-param name="people" select="$people"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</head>
<body>
<xsl:call-template name="website_body">
<xsl:with-param name="static_path" select="'../../../static'"/>
<xsl:with-param name="breadcrumb_items">
<li class="breadcrumbs__item">
<xsl:element name="a">
<xsl:attribute name="class">
<xsl:text>breadcrumbs__link</xsl:text>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="concat('./publications.html/', lower-case(//tei:seriesStmt/tei:title))"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="//tei:seriesStmt/tei:title"/>
</xsl:attribute>
<xsl:value-of select="//tei:seriesStmt/tei:title"/>
</xsl:element>
</li>
<li class="breadcrumbs__item">
<xsl:element name="a">
<xsl:attribute name="class">
<xsl:text>breadcrumbs__link</xsl:text>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="concat('../../', //tei:seriesStmt/tei:idno[@type='number'], '/index.html')"/>
</xsl:attribute>
<xsl:attribute name="style">
<xsl:text>max-width: 800px;</xsl:text>
</xsl:attribute>
<xsl:apply-templates select="//tei:titleStmt/tei:title[@type='main']"/>
</xsl:element>
</li>
<li class="breadcrumbs__item">
<xsl:element name="span">
<xsl:attribute name="class">
<xsl:text>breadcrumbs__link-current</xsl:text>
</xsl:attribute>
<xsl:attribute name="style">
<xsl:text>max-width: 800px;</xsl:text>
</xsl:attribute>
<xsl:choose>
<xsl:when test="./tei:head/tei:choice">
<xsl:apply-templates select="./tei:head/tei:choice/tei:expan"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="./tei:head"/>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</li>
</xsl:with-param>
<xsl:with-param name="main">
<main class="main publications publications2">
<div class="container">
<div class="main-content">
<section class="publications__overview">
<div class="accordion">
<div class="accordion__item accordion__item--border-top active">
<a class="accordion__title" href="#">
<h2>Overview</h2>
</a>
<div class="accordion__content">
<div class="publications__list">
<ul>
<xsl:for-each select="./tei:div[@type='section']">
<li>
<xsl:element name="a">
<xsl:attribute name="href" select="concat('#',@xml:id)"/>
<xsl:if test="../@n != 'nonumber'">
<xsl:value-of select="concat(../@n, '.', @n, ' ')"/>
</xsl:if>
<!-- build-toc mode is as yet unspecified, but it does the trick -->
<xsl:apply-templates select="./tei:head" mode="build-toc"/>
</xsl:element>
</li>
</xsl:for-each>
</ul>
</div>
</div>
</div>
</div>
<a class="link link--green" href="#">
<span class="link__label link__label--outer">Download Chapter</span>
</a>
</section>
<section class="publication-detail">
<div class="accordion">
<!-- publication title -->
<h2 class="publication-detail__title">
<xsl:if test="@n != 'nonumber'">
<xsl:value-of select="@n"/>
</xsl:if>
<xsl:text> </xsl:text>
<xsl:apply-templates select="./tei:head" mode="body"/>
</h2>
<xsl:if test="@resp">
<p>
<!-- <a href="/author/2.html">Jürgen Renn</a> -->
<xsl:variable name="people" select="@resp"/>
<xsl:call-template name="format_string_authors">
<xsl:with-param name="authors" select="$people"/>
</xsl:call-template>
</p>
</xsl:if>
<a class="accordion__showall show" href="#">Close All</a>
<!-- <xsl:call-template name="document-structure"/> -->
<xsl:apply-templates mode="body" select="*[not(name() = 'head')]"/>
<xsl:call-template name="footnotes"/>
<!-- closing elements go here -->
</div>
</section>
</div>
</div>
</main>
</xsl:with-param>
<xsl:with-param name="footer">
<footer class="footer">
<div class="footer__content">
<div class="footer-menu">
<a href="/imprint.html">Imprint &amp; Contact</a>
<a href="/technical.html">Technical Information</a>
</div>
<div class="footer-logo">
<a class="footer-logo__link" href="http://edition-open-access.de" target="_blank">
<img class="logo logo--text" src="../../../static/assets/images/logo-text.4ea3e4d587131f00ba9787321ce2be23.svg" alt="Edition Open Access"/>
</a>
</div>
</div>
</footer>
</xsl:with-param>
</xsl:call-template>
<script type="text/javascript" src="../../../static/ea0d7c9e162cd536e094.app.js"/>
<xsl:if test=".//tei:formula">
<xsl:message>putting in mathjax</xsl:message>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
});
</script>
<script type="text/javascript" src="../../../static/MathJax-2.7.5/MathJax.js"/>
</xsl:if>
</body>
</xsl:element>
</xsl:result-document>
</xsl:for-each>
</xsl:template>
<xsl:template name="footnotes">
<xsl:variable name="chapter" select="."/>
<xsl:if test="$chapter//tei:note[@place = 'bottom']">
<div class="accordion__item active">
<a class="accordion__title" href="#">
<h2> Footnotes </h2>
</a>
<div class="accordion__content">
<div class="publication-detail__footnotes">
<ol>
<xsl:for-each select="$chapter//tei:*[name() = $paragraph_elements]">
<xsl:variable name="paragraph" select="."/>
<xsl:variable name="paragraph_nr">
<xsl:number
count="tei:*[name() = $paragraph_elements]"
from="tei:div[@type = 'chapter']"
level="any"
/>
</xsl:variable>
<xsl:for-each select="$paragraph//tei:note[@place = 'bottom']">
<li id="fn{@n}">
<xsl:for-each select="tei:p">
<p><xsl:apply-templates mode="html"/></p>
</xsl:for-each>
<a href="#p{$paragraph_nr}">to paragraph</a>
</li>
</xsl:for-each>
</xsl:for-each>
</ol>
</div>
<!-- the link to close the accordeon: -->
<a class="accordion__pageup" href="#"></a> <a class="accordion__popap" href="#"></a>
<div class="accordion__popap-eye"></div>
</div>
</div>
</xsl:if>
</xsl:template>
<xsl:template name="website_meta_tags">
<xsl:param name="citation_title"/>
<xsl:param name="citation_author"/>
<xsl:param name="dc_title"/>
<xsl:param name="dc_publisher"/>
<xsl:param name="dc_creator"/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta http-equiv="pragma" content="no-cache"/>
<meta name="citation_title" content="{$citation_title}"/>
<meta name="citation_date" content="{//tei:publicationStmt/tei:date/@when}"/>
<meta name="citation_author" content="{$citation_author}"/>
<meta name="DC.title" content="{$dc_title}"/>
<meta name="DC.issued" content="{replace(//tei:publicationStmt/tei:date/@when, '-','/')}"/>
<meta name="DC.publisher" content="{$dc_publisher}"/>
<meta name="DC.type" content="Text"/>
<meta name="DC.creator" content="{$dc_creator}"/>
</xsl:template>
<xsl:template name="website_body">
<xsl:param name="breadcrumb_items"/>
<xsl:param name="main"/>
<xsl:param name="footer"/>
<xsl:param name="static_path"/>
<div class="page">
<div class="content">
<div class="mobile-header__background"/>
<header class="header">
<div class="header__content">
<div class="blocklogo container">
<div class="blocklogo__logo">
<a href="/index.html">
<img class="blocklogo__img" src="{concat($static_path,'/assets/images/mprl843x495_white.png')}" alt="logo" data-object-fit="cover"/>
</a>
</div>
</div>
<nav class="nav">
<a class="nav-toggle" href="#">
<span class="nav-toggle__item"/>
<span class="nav-toggle__item"/>
<span class="nav-toggle__item"/>
</a>
<div class="nav__wrapper">
<div class="container">
<ul class="nav__menu">
<!--
if we reactivate this, remove the space from '- -'
<li class="nav__item nav__item- -active"><a class="nav__link nav__link- -active" href="./publications.html">Publications</a></li>
<li class="nav__item"><a class="nav__link" href="/publishing-conditions.html">Publishing Conditions</a></li>
<li class="nav__item"><a class="nav__link" href="/author/index.html">Authors</a></li>
<li class="nav__item"><a class="nav__link" href="/editorial-board.html">Editorial Board</a></li>
<li class="nav__item"><a class="nav__link" href="/publication-policy.html">Publication Policy</a></li>
<li class="nav__item nav-search" id="nav-search">
<form class="nav-search-form">
<input class="nav-search__input" placeholder="Search" type="search" value="" name="search" id="search"/>
<input class="nav-search__submit" type="submit" value=""/>
</form>
</li>
-->
<li class="nav__item nav-footer">
<a class="nav__link nav-footer__link" href="/imprint.html">Imprint &amp; Contact</a>
<a class="nav__link nav-footer__link" href="/technical.html">Technical Information</a>
</li>
</ul>
</div>
</div>
</nav>
<nav class="breadcrumbs container">
<ul class="breadcrumbs__items">
<xsl:copy-of select="$breadcrumb_items"/>
</ul>
</nav>
</div>
</header>
<xsl:copy-of select="$main"/>
</div>
<xsl:copy-of select="$footer"/>
</div>
</xsl:template>
<xsl:template name="format_persons">
<xsl:param name="people"/>
<xsl:variable name="joined_people" select="string-join($people, '')"/>
<xsl:variable name="num_people" select="count($people)"/>
<xsl:choose>
<xsl:when test="$num_people = 1">
<xsl:for-each select="//tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:respStmt[contains($joined_people, @xml:id)]">
<xsl:variable name="formatted_author" select="concat(./tei:persName/tei:forename, ' ', ./tei:persName/tei:surname)"/>
<xsl:value-of select="$formatted_author"/>
</xsl:for-each>
</xsl:when>
<xsl:when test="$num_people = 2">
<xsl:for-each select="//tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:respStmt[contains($joined_people, @xml:id)]">
<xsl:variable name="formatted_author" select="concat(./tei:persName/tei:forename, ' ', ./tei:persName/tei:surname)"/>
<xsl:value-of select="$formatted_author"/>
<xsl:if test="position()!=last()">
<xsl:text> and </xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:when test="$num_people &gt; 2">
<xsl:for-each select="//tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:respStmt[contains($joined_people, @xml:id)]">
<xsl:value-of select="concat(./tei:persName/tei:forename, ' ', ./tei:persName/tei:surname)"/>
<xsl:choose>
<xsl:when test="position() &lt; $num_people - 1">
<xsl:text>, </xsl:text>
</xsl:when>
<xsl:when test="position()=$num_people - 1">
<xsl:text> and </xsl:text>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="eoa:debug(3, 'No book author. Exiting.', '')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="format_string_authors">
<xsl:param name="authors"/>
<xsl:variable name="num_authors" select="count(//tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:respStmt[contains($authors, @xml:id)])"/>
<xsl:choose>
<xsl:when test="$num_authors = 1">
<xsl:for-each select="//tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:respStmt[contains($authors, @xml:id)]">
<xsl:variable name="formatted_author" select="concat(./tei:persName/tei:forename, ' ', ./tei:persName/tei:surname)"/>
<xsl:value-of select="$formatted_author"/>
</xsl:for-each>
</xsl:when>
<xsl:when test="$num_authors = 2">
<xsl:for-each select="//tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:respStmt[contains($authors, @xml:id)]">
<xsl:variable name="formatted_author" select="concat(./tei:persName/tei:forename, ' ', ./tei:persName/tei:surname)"/>
<xsl:value-of select="$formatted_author"/>
<xsl:if test="position()!=last()">
<xsl:text> and </xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:when test="$num_authors &gt; 2">
<xsl:for-each select="//tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:respStmt[contains($authors, @xml:id)]">
<xsl:variable name="formatted_author" select="concat(./tei:persName/tei:forename, ' ', ./tei:persName/tei:surname)"/>
<xsl:value-of select="$formatted_author"/>
<xsl:choose>
<xsl:when test="position() &lt; $num_authors - 1">
<xsl:text>, </xsl:text>
</xsl:when>
<xsl:when test="position()=$num_authors - 1">
<xsl:text> and </xsl:text>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="eoa:debug(1, 'No chapter author: ', node())"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="format_linked_persons">
<xsl:param name="people"/>
<xsl:variable name="joined_people" select="string-join($people, '')"/>
<xsl:variable name="num_people" select="count($people)"/>
<xsl:choose>
<xsl:when test="$num_people = 1">
<xsl:for-each select="//tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:respStmt[contains($joined_people, @xml:id)]">
<!-- <a class="project-teaser-info__author-link" href="/author/2.html">Jürgen Renn</a> -->
<xsl:element name="a">
<xsl:attribute name="class">
<xsl:text>project-teaser-info__author-link</xsl:text>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:text>#</xsl:text>
</xsl:attribute>
<xsl:variable name="formatted_author" select="concat(./tei:persName/tei:forename, ' ', ./tei:persName/tei:surname)"/>
<xsl:value-of select="$formatted_author"/>
</xsl:element>
</xsl:for-each>
</xsl:when>
<xsl:when test="$num_people = 2">
<xsl:for-each select="//tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:respStmt[contains($joined_people, @xml:id)]">
<xsl:element name="a">
<xsl:attribute name="class">
<xsl:text>project-teaser-info__author-link</xsl:text>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:text>#</xsl:text>
</xsl:attribute>
<xsl:variable name="formatted_author" select="concat(./tei:persName/tei:forename, ' ', ./tei:persName/tei:surname)"/>
<xsl:value-of select="$formatted_author"/>
</xsl:element>
<xsl:if test="position()!=last()">
<xsl:element name="span">
<xsl:attribute name="class">
<xsl:text>project-teaser-info__author-link</xsl:text>
</xsl:attribute>
<xsl:text> and </xsl:text>
</xsl:element>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:when test="$num_people &gt; 2">
<xsl:for-each select="//tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:respStmt[contains($joined_people, @xml:id)]">
<xsl:element name="a">
<xsl:attribute name="class">
<xsl:text>project-teaser-info__author-link</xsl:text>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:text>#</xsl:text>
</xsl:attribute>
<xsl:variable name="formatted_author" select="concat(./tei:persName/tei:forename, ' ', ./tei:persName/tei:surname)"/>
<xsl:value-of select="$formatted_author"/>
</xsl:element>
<xsl:choose>
<xsl:when test="position() &lt; $num_people - 1">
<xsl:element name="span">
<xsl:attribute name="class">
<xsl:text>project-teaser-info__author-link</xsl:text>
</xsl:attribute>
<xsl:text>, </xsl:text>
</xsl:element>
</xsl:when>
<xsl:when test="position()=$num_people - 1">
<xsl:element name="span">
<xsl:attribute name="class">
<xsl:text>project-teaser-info__author-link</xsl:text>
</xsl:attribute>
<xsl:text> and </xsl:text>
</xsl:element>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="eoa:debug(3, 'No book author. Exiting.', '')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="create_index">
<xsl:param name="indextype"/>
<xsl:message>creating index...</xsl:message>
<!-- all index elements starting with the same letter: -->
<xsl:for-each-group select="//tei:index[lower-case(@indexName) = $indextype]" group-by="substring(if (exists(./tei:term/@sortKey)) then ./tei:term/@sortKey else ./tei:term/text(),1,1)">
<xsl:sort select="current-grouping-key()"/>
<xsl:variable name="chapter" select="ancestor::tei:div[@type = 'chapter']"/>
<xsl:variable name="chapter_nr" select="count($chapter/preceding-sibling::*)"/>
<div class="accordion__item">
<a class="accordion__title" href="#">
<h2 class="border">
<xsl:value-of select="current-grouping-key()"/>
</h2>
</a>
<div class="accordion__content">
<!-- all index elements with the same "term": -->
<xsl:for-each-group select="current-group()" group-by="if (exists(tei:term/@sortKey)) then tei:term/@sortKey else tei:term/text()">
<xsl:sort select="current-grouping-key()"/>
<h4>
<xsl:value-of select="current-grouping-key()"/>
</h4>
<ul>
<xsl:for-each select="current-group()">
<xsl:variable name="paragraph_nr" select="index-of($chapter//tei:p/tei:index/generate-id(), generate-id(.))"/>
<xsl:variable name="local_uri" select="concat($series, '/', $publication_number, '/', $chapter_nr , '/index.html#', $paragraph_nr)"/>
<xsl:variable name="global_uri" select="concat($domain, '/', $local_uri)"/>
<xsl:message>
<xsl:value-of select="concat(current-grouping-key(), ': ', $global_uri)"/>
</xsl:message>
<li>
<a href="{$global_uri}"> <xsl:value-of select="position()"/></a>
</li>
</xsl:for-each>
</ul>
<!-- below that, ul/li for each jumping point -->
</xsl:for-each-group>
</div>
</div>
<!--
<xsl:message>
<xsl:value-of select="$sortkey"/>
<xsl:text>: </xsl:text>
<xsl:value-of select="./tei:term//text()"/>
</xsl:message>
-->
</xsl:for-each-group>
</xsl:template>
<xsl:function name="eoa:debug">
<xsl:param name="level" as="xs:integer"/>
<xsl:param name="message" as="xs:string"/>
<xsl:param name="node"/>
<xsl:choose>
<xsl:when test="$level = 1 and $verbosity &gt; 0">
<xsl:message terminate="no">[INFO]: <xsl:value-of select="$message"/> <xsl:value-of select="$node"/></xsl:message>
</xsl:when>
<xsl:when test="$level = 2 and $verbosity &gt; 1">
<xsl:message terminate="no">[WARNING]: <xsl:value-of select="$message"/> <xsl:value-of select="$node"/></xsl:message>
</xsl:when>
<xsl:when test="$level = 3 and $verbosity &gt; 2">
<xsl:message terminate="yes">[ERROR]: <xsl:value-of select="$message"/> <xsl:value-of select="$node"/>. Exiting.</xsl:message>
</xsl:when>
</xsl:choose>
</xsl:function>
</xsl:stylesheet>