Skip to content

Commit

Permalink
Merge pull request #35 from karl-kraus/30-entity-info-modals-in-editi…
Browse files Browse the repository at this point in the history
…on-view

30 entity info modals in edition view
  • Loading branch information
csae8092 committed Jun 20, 2024
2 parents cd59cb4 + 8a9dabe commit f187497
Show file tree
Hide file tree
Showing 11 changed files with 243 additions and 368 deletions.
52 changes: 36 additions & 16 deletions legalkraus-static.xpr
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
<scenarioAssociation-array>
<scenarioAssociation>
<field name="url">
<String>data/editions/D_000001-002-000.xml</String>
<String>data/indices/listperson.xml</String>
</field>
<field name="scenarioIds">
<list>
<String>editions</String>
<String>listperson</String>
</list>
</field>
<field name="scenarioTypes">
Expand All @@ -30,11 +30,11 @@
</scenarioAssociation>
<scenarioAssociation>
<field name="url">
<String>xslt/editions.xsl</String>
<String>data/indices/listorg.xml</String>
</field>
<field name="scenarioIds">
<list>
<String>editions</String>
<String>listorg</String>
</list>
</field>
<field name="scenarioTypes">
Expand All @@ -50,11 +50,31 @@
</scenarioAssociation>
<scenarioAssociation>
<field name="url">
<String>data/imprint.xml</String>
<String>xslt/listfackel.xsl</String>
</field>
<field name="scenarioIds">
<list>
<String>imprint</String>
<String>listfackel</String>
</list>
</field>
<field name="scenarioTypes">
<list>
<String>XSL</String>
</list>
</field>
<field name="scenarioStorageLocations">
<list>
<Byte>2</Byte>
</list>
</field>
</scenarioAssociation>
<scenarioAssociation>
<field name="url">
<String>data/indices/listfackel.xml</String>
</field>
<field name="scenarioIds">
<list>
<String>listfackel</String>
</list>
</field>
<field name="scenarioTypes">
Expand Down Expand Up @@ -90,11 +110,11 @@
</scenarioAssociation>
<scenarioAssociation>
<field name="url">
<String>data/indices/listwork.xml</String>
<String>data/editions/D_000001-002-000.xml</String>
</field>
<field name="scenarioIds">
<list>
<String>listbibl.xsl</String>
<String>editions</String>
</list>
</field>
<field name="scenarioTypes">
Expand All @@ -110,11 +130,11 @@
</scenarioAssociation>
<scenarioAssociation>
<field name="url">
<String>data/indices/listplace.xml</String>
<String>xslt/editions.xsl</String>
</field>
<field name="scenarioIds">
<list>
<String>listplace</String>
<String>editions</String>
</list>
</field>
<field name="scenarioTypes">
Expand All @@ -130,11 +150,11 @@
</scenarioAssociation>
<scenarioAssociation>
<field name="url">
<String>data/indices/listperson.xml</String>
<String>data/imprint.xml</String>
</field>
<field name="scenarioIds">
<list>
<String>beacon</String>
<String>imprint</String>
</list>
</field>
<field name="scenarioTypes">
Expand All @@ -150,11 +170,11 @@
</scenarioAssociation>
<scenarioAssociation>
<field name="url">
<String>data/indices/listfackel.xml</String>
<String>data/indices/listwork.xml</String>
</field>
<field name="scenarioIds">
<list>
<String>listfackel</String>
<String>listbibl.xsl</String>
</list>
</field>
<field name="scenarioTypes">
Expand All @@ -170,11 +190,11 @@
</scenarioAssociation>
<scenarioAssociation>
<field name="url">
<String>data/indices/listorg.xml</String>
<String>data/indices/listplace.xml</String>
</field>
<field name="scenarioIds">
<list>
<String>listorg</String>
<String>listplace</String>
</list>
</field>
<field name="scenarioTypes">
Expand Down
14 changes: 2 additions & 12 deletions xslt/listbibl.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<xsl:import href="./partials/html_head.xsl"/>
<xsl:import href="./partials/html_footer.xsl"/>
<xsl:import href="./partials/bibl.xsl"/>
<xsl:import href="./partials/list_mentions.xsl"/>
<xsl:template match="/">
<xsl:variable name="doc_title">
<xsl:value-of select="'Werkregister'"/>
Expand Down Expand Up @@ -121,18 +122,7 @@
</div>
<div class="card-body">
<xsl:call-template name="bibl_detail"/>
<div>
<h3>erwähnt in</h3>
<ul>
<xsl:for-each select=".//tei:note[@type='mentions']">
<li>
<a href="{replace(@target, '.xml', '.html')}">
<xsl:value-of select="."/>
</a>
</li>
</xsl:for-each>
</ul>
</div>
<xsl:call-template name="list_mentions"/>
</div>
</div>
</div>
Expand Down
24 changes: 4 additions & 20 deletions xslt/listfackel.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<xsl:import href="./partials/html_head.xsl"/>
<xsl:import href="./partials/html_footer.xsl"/>
<xsl:import href="./partials/fackel.xsl"/>
<xsl:import href="./partials/list_mentions.xsl"/>
<xsl:template match="/">
<xsl:variable name="doc_title">
<xsl:value-of select=".//tei:titleStmt/tei:title[1]/text()"/>
Expand Down Expand Up @@ -81,7 +82,7 @@
<xsl:value-of select="./tei:biblScope/text()"/>
</td>
<td>
<xsl:value-of select="count(./tei:ref)"/>
<xsl:value-of select="count(.//tei:note[@type='mentions'])"/>
</td>
</tr>
</xsl:for-each>
Expand Down Expand Up @@ -141,25 +142,8 @@
</h1>
</div>
<div class="card-body">
<xsl:call-template name="fackel_detail"/>

<p class="pt-2">
<h3>erwähnt in</h3>
<ul>
<xsl:for-each select="./tei:ref">
<xsl:variable name="docTitle">
<xsl:value-of select="tokenize(./text(), '\|')[1]"/>
</xsl:variable>
<xsl:variable name="docId">
<xsl:value-of select="replace(tokenize(./text(), '\|')[2], '.xml', '.html')"/>
</xsl:variable>
<li>
<a href="{$docId}"><xsl:value-of select="$docTitle"/></a>
</li>
</xsl:for-each>
</ul>
</p>

<xsl:call-template name="fackel_detail"/>
<xsl:call-template name="list_mentions"/>
</div>
</div>
</div>
Expand Down
16 changes: 3 additions & 13 deletions xslt/listlegal.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<xsl:import href="./partials/html_head.xsl"/>
<xsl:import href="./partials/html_footer.xsl"/>
<xsl:import href="./partials/legal.xsl"/>
<xsl:import href="./partials/list_mentions.xsl"/>
<xsl:template match="/">
<xsl:variable name="doc_title">
<xsl:value-of select="'Juristische Texte'"/>
Expand Down Expand Up @@ -63,7 +64,7 @@
<xsl:value-of select=".//tei:date[1]/text()"/>
</td>
<td>
<xsl:value-of select="count(./tei:ref)"/>
<xsl:value-of select="count(.//tei:note[@type='mentions'])"/>
</td>
</tr>
</xsl:for-each>
Expand Down Expand Up @@ -113,18 +114,7 @@
</div>
<div class="card-body">
<xsl:call-template name="legal_detail"/>
<div>
<h3>erwähnt in</h3>
<ul>
<xsl:for-each select="./tei:ref[@target]">
<li>
<a href="{replace(@target, '.xml', '.html')}">
<xsl:value-of select="."/>
</a>
</li>
</xsl:for-each>
</ul>
</div>
<xsl:call-template name="list_mentions"/>
</div>
</div>
</div>
Expand Down
20 changes: 2 additions & 18 deletions xslt/listorg.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<xsl:import href="./partials/html_head.xsl"/>
<xsl:import href="./partials/html_footer.xsl"/>
<xsl:import href="./partials/org.xsl"/>
<xsl:import href="partials/list_mentions.xsl"/>
<xsl:template match="/">
<xsl:variable name="doc_title">
<xsl:value-of select="'Organisationsregister'"/>
Expand Down Expand Up @@ -125,24 +126,7 @@
</div>
<div class="card-body">
<xsl:call-template name="org_detail"/>
<xsl:if test=".//tei:note[@type='mentions']">
<tr>
<th>
Erwähnt in
</th>
<td>
<ul>
<xsl:for-each select=".//tei:note[@type='mentions']">
<li>
<a href="{replace(@target, '.xml', '.html')}">
<xsl:value-of select="./text()"/>
</a>
</li>
</xsl:for-each>
</ul>
</td>
</tr>
</xsl:if>
<xsl:call-template name="list_mentions"/>
</div>
</div>
</div>
Expand Down
20 changes: 2 additions & 18 deletions xslt/listperson.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<xsl:import href="./partials/html_head.xsl"/>
<xsl:import href="./partials/html_footer.xsl"/>
<xsl:import href="./partials/person.xsl"/>
<xsl:import href="partials/list_mentions.xsl"/>
<xsl:template match="/">
<xsl:variable name="doc_title">
<xsl:value-of select="'Personenregister'"/>
Expand Down Expand Up @@ -133,24 +134,7 @@
</div>
<div class="card-body">
<xsl:call-template name="person_detail"/>
<xsl:if test=".//tei:note[@type='mentions']">
<tr>
<th>
Erwähnt in
</th>
<td>
<ul>
<xsl:for-each select=".//tei:note[@type='mentions']">
<li>
<a href="{replace(@target, '.xml', '.html')}">
<xsl:value-of select="./text()"/>
</a>
</li>
</xsl:for-each>
</ul>
</td>
</tr>
</xsl:if>
<xsl:call-template name="list_mentions"/>
</div>
</div>
</div>
Expand Down
20 changes: 2 additions & 18 deletions xslt/listplace.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<xsl:import href="./partials/html_head.xsl"/>
<xsl:import href="./partials/html_footer.xsl"/>
<xsl:import href="./partials/place.xsl"/>
<xsl:import href="partials/list_mentions.xsl"/>
<xsl:template match="/">
<xsl:variable name="doc_title">
<xsl:value-of select="'Ortsregister'"/>
Expand Down Expand Up @@ -117,24 +118,7 @@
</div>
<div class="card-body">
<xsl:call-template name="place_detail"/>
<xsl:if test=".//tei:note[@type='mentions']">
<tr>
<th>
Erwähnt in
</th>
<td>
<ul>
<xsl:for-each select=".//tei:note[@type='mentions']">
<li>
<a href="{replace(@target, '.xml', '.html')}">
<xsl:value-of select="./text()"/>
</a>
</li>
</xsl:for-each>
</ul>
</td>
</tr>
</xsl:if>
<xsl:call-template name="list_mentions"/>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit f187497

Please sign in to comment.