Skip to content

Commit

Permalink
minor index css changes #62; edition-md update #107
Browse files Browse the repository at this point in the history
  • Loading branch information
linxOD committed Dec 14, 2023
1 parent aa82e61 commit eb1d665
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 30 deletions.
6 changes: 3 additions & 3 deletions build_app/ant/copy-task.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<property name="data_editions_am" value="${basedir}/data/editions/additional-materials"/> -->
<property name="data_editions_c" value="${basedir}/data/editions/correspondence"/>
<property name="data_editions_p" value="${basedir}/data/editions/photos"/>
<property name="xsl_editions" value="${basedir}/xslt/preprocess.xsl"/>
<!-- <property name="xsl_editions" value="${basedir}/xslt/preprocess.xsl"/> -->
<property name="indices" value="${basedir}/data/indices"/>
<property name="geojson" value="${basedir}/html/geo"/>

Expand All @@ -19,10 +19,10 @@
</fileset>
</copy> -->

<xslt style="${xsl_editions}" basedir="${data_editions}" destdir="${data_editions}" includes="*.xml">
<!-- <xslt style="${xsl_editions}" basedir="${data_editions}" destdir="${data_editions}" includes="*.xml">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="${basedir}/saxon/saxon9he.jar"/>
</xslt>
</xslt> -->

<move todir="${data_editions}" includeemptydirs="false">
<fileset dir="${data_editions}">
Expand Down
12 changes: 6 additions & 6 deletions build_app/shell/fetch_data.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# bin/bash

rm dev05.zip
rm main.zip
rm -rf ./data
wget https://github.com/Auden-Musulin-Papers/amp-data/archive/refs/heads/dev05.zip
unzip dev05
mv amp-data-dev05/data ./data
rm -rf amp-data-dev05
rm dev05.zip
wget https://github.com/Auden-Musulin-Papers/amp-data/archive/refs/heads/main.zip
unzip main
mv amp-data-main/data ./data
rm -rf amp-data-main
rm main.zip

rm -rf ./data/tmp
32 changes: 15 additions & 17 deletions xslt/index.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -61,71 +61,69 @@
<div class="grid">
<div class="item">
<a href="toc.html" class="index-link">
<div class="index-card" data="Auden Musulin Papers 1959-1973">
<div class="index-header">
<div class="index-tile" data="Auden Musulin Papers 1959-1973">
<div class="index-tile-header">
<img src="images/icons/lp-corresp.png"
class="d-block w-100"
alt="Auden Musulin Papers 1959-1973"/>
</div>
<div class="index-footer">
<div class="index-tile-footer">
<h5 >Auden Musulin Papers <br/> 1959-1973</h5>
</div>
</div>
</a>
</div>
<div class="item">
<a href="toc_m.html" class="index-link" id="index-memoirs">
<div class="index-card">
<div class="index-header">
<div class="index-tile">
<div class="index-tile-header">
<img src="images/icons/lp-memoirs.png"
class="d-block w-100"
alt="Musulin as Memoirist 1976-1995"/>
</div>
<div class="index-footer">
<div class="index-tile-footer">
<h5 >Musulin as Memoirist <br/> 1976-1995</h5>
</div>
</div>
</a>
</div>
<div class="item">
<a href="search.html" class="index-link" id="index-search">
<div class="index-card" style="border:2px solid #b59890;">
<div class="index-header">
<div class="index-tile" style="border:2px solid #b59890;">
<div class="index-tile-header">
<img src="images/icons/lp-search.png"
class="d-block w-100"
alt="Explore the Auden Musulin Papers through full-text search"/>
</div>
<div class="index-footer">
<div class="index-tile-footer">
<h5 >Explore the AMP through <br/> full-text search.</h5>

</div>
</div>
</a>
</div>
<div class="item">
<a href="photos.html" class="index-link" id="index-photo">
<div class="index-card">
<div class="index-header">
<div class="index-tile">
<div class="index-tile-header">
<img src="images/icons/lp-photos.png"
class="d-block w-100"
alt="Photos"/>
</div>
<div class="index-footer">
<div class="index-tile-footer">
<h5 >Photos and <br/> Postcards</h5>
</div>
</div>
</a>
</div>
<div class="item">
<a href="cv.html" class="index-link" id="index-cvl">
<div class="index-card">
<div class="index-header">
<div class="index-tile">
<div class="index-tile-header">
<img src="images/icons/lp-cvl.png"
class="d-block w-100"
alt="Auden through Computer Vision"/>

</div>
<div class="index-footer">
<div class="index-tile-footer">
<h5 >Auden through <br/> Computer Vision</h5>
</div>

Expand Down
4 changes: 2 additions & 2 deletions xslt/partials/edition-md.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@
<td>
<ul>
<li>
<xsl:value-of select="substring-before(//tei:sourceDesc//tei:history//tei:origDate/@notBefore-iso, 'T')"/>
<xsl:apply-templates select="substring-before(//tei:sourceDesc//tei:history//tei:origDate/@notBefore-iso, 'T')"/>
<xsl:if test="//tei:sourceDesc//tei:history//tei:origDate[@ana]">
<span class="interp ent" ref="{//tei:sourceDesc//tei:history//tei:origDate/@ana}">
</span>
</xsl:if>
</li>
<xsl:if test="//tei:sourceDesc//tei:history//tei:origPlace">
<li>
<xsl:value-of select="//tei:sourceDesc//tei:history//tei:origPlace"/>
<xsl:apply-templates select="//tei:sourceDesc//tei:history//tei:origPlace"/>
<xsl:if test="//tei:sourceDesc//tei:history//tei:origPlace[@ana]">
<span class="interp ent" ref="{//tei:sourceDesc//tei:history//tei:origPlace/@ana}">
</span>
Expand Down
31 changes: 29 additions & 2 deletions xslt/preprocess.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</xsl:copy>
</xsl:template>

<xsl:template match="tei:p[ancestor::tei:body]">
<!--<xsl:template match="tei:p[ancestor::tei:body]">
<p xmlns="http://www.tei-c.org/ns/1.0">
<xsl:for-each select="@*">
<xsl:attribute name="{name()}">
Expand All @@ -22,7 +22,34 @@
<lb xmlns="http://www.tei-c.org/ns/1.0"/>
<xsl:apply-templates/>
</p>
</xsl:template>-->
<xsl:template match="tei:editor">
<xsl:copy>
<name ref="https://orcid.org/0000-0002-2915-5888"
xml:id="smayer">Mayer, Sandra</name>
<name ref="https://orcid.org/0000-0002-3997-5193"
xml:id="tfruewirth">Frühwirth, Timo</name>
<name ref="https://orcid.org/0000-0002-0914-9245"
xml:id="dgrigoriou">Grigoriou, Dimitra</name>
</xsl:copy>
</xsl:template>
<xsl:template match="tei:respStmt">
<xsl:copy>
<resp>Transcription and commentary</resp>
<name ref="https://orcid.org/0000-0002-2915-5888"
xml:id="smayer">Mayer, Sandra</name>
<name ref="https://orcid.org/0000-0002-3997-5193"
xml:id="tfruewirth">Frühwirth, Timo</name>
<name ref="https://orcid.org/0000-0002-0914-9245"
xml:id="dgrigoriou">Grigoriou, Dimitra</name>
</xsl:copy>
<respStmt>
<resp>TEI Schema, ODD/RNG</resp>
<name ref="https://orcid.org/0000-0002-9575-9372"
xml:id="pandorfer">Andorfer, Peter</name>
<name ref="https://orcid.org/0000-0002-0636-4476"
xml:id="delsner">Elsner, Daniel</name>
</respStmt>
</xsl:template>


</xsl:stylesheet>

0 comments on commit eb1d665

Please sign in to comment.