Due to maintenance reasons, gitlab.gwdg.de will not be available on Saturday 2021-07-24 from 10:30 to approximately 11:30 CEST.

Commit 716880c8 authored by bettin5@sub.uni-goettingen.de's avatar bettin5@sub.uni-goettingen.de
Browse files

add entitys for page and divs for css-classes

parent 6477be31
......@@ -636,7 +636,7 @@ Refer to comments in the code to understand the used algorithm.
<xsl:apply-templates mode="text_only"/>
</xsl:template>
<xsl:template match="p | salute | signed | addrLine | dateline" mode="text_only">
<xsl:template match="p | salute | signed | dateline" mode="text_only"> <!--addrLine -->
<xsl:apply-templates mode="text_only" />
<xsl:text> </xsl:text>
</xsl:template>
......@@ -751,7 +751,15 @@ Refer to comments in the code to understand the used algorithm.
<field name="image_url">
<xsl:value-of select="img:get_path($clean_image_id, $context)"/>
</field>
</xsl:if>
</xsl:if>
<xsl:for-each select="$context//name/@ref">
<xsl:if test=". != 'gnd:_' and starts-with(., 'gnd:') ">
<field name="entitys_in_page">
<xsl:value-of select="."/>
</field>
</xsl:if>
</xsl:for-each>
</doc>
</xsl:if>
</xsl:for-each-group>
......@@ -815,7 +823,7 @@ Refer to comments in the code to understand the used algorithm.
</xsl:template>
<xsl:template match="p | opener | salute | seg | bibl | closer | signed | dateline | date
| label[not(@rendition)] | choice | abbr | expan | postscript" mode="page_splitting">
| label[not(@rendition)] | choice | abbr | expan | addrLine | postscript" mode="page_splitting">
<xsl:param name="restricted-to" tunnel="yes" />
<xsl:if test="exists(. intersect $restricted-to)">
<div class="{local-name(.)}">
......@@ -867,6 +875,9 @@ Refer to comments in the code to understand the used algorithm.
<xsl:param name="restricted-to" tunnel="yes" />
<xsl:if test="exists(. intersect $restricted-to)">
<div class="place">
<xsl:attribute name="id">
<xsl:value-of select="@ref" />
</xsl:attribute>
<xsl:apply-templates mode="page_splitting" />
</div>
</xsl:if>
......@@ -876,6 +887,9 @@ Refer to comments in the code to understand the used algorithm.
<xsl:param name="restricted-to" tunnel="yes" />
<xsl:if test="exists(. intersect $restricted-to)">
<div class="org">
<xsl:attribute name="id">
<xsl:value-of select="@ref" />
</xsl:attribute>
<xsl:apply-templates mode="page_splitting" />
</div>
</xsl:if>
......@@ -884,8 +898,11 @@ Refer to comments in the code to understand the used algorithm.
<xsl:template match="name[@type='person']" mode="page_splitting">
<xsl:param name="restricted-to" tunnel="yes" />
<xsl:if test="exists(. intersect $restricted-to)">
<div class="person">
<xsl:apply-templates mode="page_splitting" />
<div class="person" >
<xsl:attribute name="id">
<xsl:value-of select="@ref" />
</xsl:attribute>
<xsl:apply-templates mode="page_splitting" />
</div>
</xsl:if>
</xsl:template>
......@@ -894,6 +911,9 @@ Refer to comments in the code to understand the used algorithm.
<xsl:param name="restricted-to" tunnel="yes" />
<xsl:if test="exists(. intersect $restricted-to)">
<div class="object">
<xsl:attribute name="id">
<xsl:value-of select="@ref" />
</xsl:attribute>
<xsl:apply-templates mode="page_splitting" />
</div>
</xsl:if>
......@@ -903,6 +923,9 @@ Refer to comments in the code to understand the used algorithm.
<xsl:param name="restricted-to" tunnel="yes" />
<xsl:if test="exists(. intersect $restricted-to)">
<div class="rs-person">
<xsl:attribute name="id">
<xsl:value-of select="@ref" />
</xsl:attribute>
<xsl:apply-templates mode="page_splitting" />
</div>
</xsl:if>
......@@ -912,6 +935,9 @@ Refer to comments in the code to understand the used algorithm.
<xsl:param name="restricted-to" tunnel="yes" />
<xsl:if test="exists(. intersect $restricted-to)">
<div class="rs-place">
<xsl:attribute name="id">
<xsl:value-of select="@ref" />
</xsl:attribute>
<xsl:apply-templates mode="page_splitting" />
</div>
</xsl:if>
......@@ -1006,6 +1032,34 @@ Refer to comments in the code to understand the used algorithm.
</div>
</xsl:if>
</xsl:template>
<!-- new css divs for TIDO or "generic" Text API -->
<xsl:template match="hi[@rendition='simple:superscript']" mode="page_splitting">
<xsl:param name="restricted-to" tunnel="yes" />
<xsl:if test="exists(. intersect $restricted-to)">
<div class="superscript">
<xsl:apply-templates mode="page_splitting" />
</div>
</xsl:if>
</xsl:template>
<xsl:template match="hi[@rendition='simple:smallcaps']" mode="page_splitting">
<xsl:param name="restricted-to" tunnel="yes" />
<xsl:if test="exists(. intersect $restricted-to)">
<div class="smallcaps">
<xsl:apply-templates mode="page_splitting" />
</div>
</xsl:if>
</xsl:template>
<xsl:template match="hi[@rendition='simple:wavyunderline']" mode="page_splitting">
<xsl:param name="restricted-to" tunnel="yes" />
<xsl:if test="exists(. intersect $restricted-to)">
<div class="wavyunderline">
<xsl:apply-templates mode="page_splitting" />
</div>
</xsl:if>
</xsl:template>
<xsl:template match="ref[@target]" mode="page_splitting">
<xsl:param name="restricted-to" tunnel="yes" />
......
......@@ -98,6 +98,7 @@
<field name="image_ids" type="string" multiValued="true"/>
<field name="image_urls" type="string" multiValued="true"/>
<field name="image_url" type="string" multiValued="false" />
<field name="entitys_in_page" type="string" multiValued="true"/>
<!-- for doctype 'article' -->
<field name="number_of_pages" type="int" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment