diff --git a/scripts/dc.xml b/scripts/dc.xml new file mode 100644 index 0000000000000000000000000000000000000000..69c58e6bb1dee38cf5ae443183b3edbf209b5121 --- /dev/null +++ b/scripts/dc.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<dc:record xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"> + <dc:title>XSLT-Skripte für die Generierung unterschiedlichen Darstellungen der ZfdG-Artikel</dc:title> + <dc:creator>Timo Steyer</dc:creator> + <dc:publisher>Zeitschrift für digitale Geisteswissenschaft</dc:publisher> + <dcterms:date>2016</dcterms:date> + <dc:type>xsl</dc:type> + <dc:type>Elektronische Ressource</dc:type> + <dc:identifier>http://www.zfdg.de/sites/default/files</dc:identifier> + <dc:licence>CC BY-SA 4.0</dc:licence> + <dc:language>ger</dc:language> + <dc:source>2016_009</dc:source> + <dcterms:rightsHolder>Forschungsverbund Marbach Weimar Wolfenbüttel</dcterms:rightsHolder> + <dcterms:rightsHolder>Herzog August Bibliothek Wolfenbüttel</dcterms:rightsHolder> + <dcterms:isPartof>Zeitschrift für digitale Geisteswissenschaft</dcterms:isPartof> +</dc:record> diff --git a/scripts/journal_html.xsl b/scripts/journal_html.xsl new file mode 100644 index 0000000000000000000000000000000000000000..5eeb04ee7048ef37277f8e013dc3a9d1f53c183a --- /dev/null +++ b/scripts/journal_html.xsl @@ -0,0 +1,1514 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- Transformationsskript für die Beiträge in der Zeitschrift für digitale Geisteswissenschaften, + Ersteller: Timo Steyer, steyer@hab.de + Herzog August Bibliothek Wolfenbüttel + Forschungsverbund MWW + Das Skript steht unter einer CC BY-SA 3.0 Lizenz--> +<xsl:stylesheet xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:mets="http://www.loc.gov/METS/" + xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:exist="http://exist.sourceforge.net/NS/exist" + xmlns:date="http://exslt.org/dates-and-times" xmlns:exsl="http://exslt.org/common" + extension-element-prefixes="date exsl" exclude-result-prefixes="tei mets xlink exist" + version="2.0"> + + + <xsl:output encoding="UTF-8" indent="yes" method="html" doctype-public="-//W3C//DTD HTML 4.01//EN" + doctype-system="http://www.w3.org/TR/html4/strict.dtd"/> + + + <xsl:strip-space elements="*"/> + <xsl:param name="dir"/> + <xsl:param name="q"/> + <xsl:param name="qtype"/> + <xsl:param name="distype"/> + <xsl:param name="pvID"/> + <xsl:param name="footerXML"/> + <xsl:param name="footerXSL"/> + <xsl:param name="view"/> + <xsl:variable name="smallcase" select="'­'"/> + <xsl:variable name="uppercase" select="'-'"/> + <xsl:variable name="gbv"> + <xsl:text>http://gso.gbv.de/DB=2.1/PPN?PPN=</xsl:text> + </xsl:variable> + <xsl:variable name="opac"> + <xsl:text>http://opac.lbs-braunschweig.gbv.de/DB=2/PPN?PPN=</xsl:text> + </xsl:variable> + <xsl:variable name="gnd"> + <xsl:text>http://d-nb.info/gnd/</xsl:text> + </xsl:variable> + <xsl:variable name="v1"><xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title[@level='a']"></xsl:value-of></xsl:variable> + <xsl:variable name="tadirah"> + <xsl:text>http://tadirah.dariah.eu/vocab/index.php?tema=</xsl:text> + </xsl:variable> + <xsl:variable name="img"> + <xsl:text>http://www.zfdg.de/sites/default/files/medien/</xsl:text> + </xsl:variable> + <xsl:variable name="img2"> + <xsl:text>http://www.zfdg.de/sites/default/files/styles/medium_in_artikel/</xsl:text> + </xsl:variable> + <xsl:variable name="doi"> + <xsl:text>http://dx.doi.org/</xsl:text> + </xsl:variable> + <xsl:variable name="now" select="current-dateTime()"/> + + <xsl:template match="/"> + + + + + + + <html> + <head> + <meta http-equiv="Content-Type" content="text/html;"/> + <title>ZfdG Beitrag</title> + + + <link rel="stylesheet" type="text/css" href="style.css"/> + + + + </head> + + <!-- Bedingungen und Regeln: Inhaltsverzeichnis an Abstracts gebunden --> + + <body> + <!-- Dokumentkopf --> + + <!-- Titel --> + <div id="caption"> + <xsl:element name="span"> + <xsl:attribute name="class">Z3988</xsl:attribute> + <xsl:attribute name="title"> + <xsl:text>url_ver=Z39.88-2004&ctx_ver=Z39.88-2004&rfr_id=info%3Asid%2Fzotero.org%3A2&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=article&rft.atitle=</xsl:text> + <xsl:value-of select="replace($v1, ' ', '%20')"></xsl:value-of> + <xsl:for-each select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name"> + <xsl:text>&rft.au=</xsl:text> + <xsl:value-of select="tei:forename"></xsl:value-of> + <xsl:text>%20</xsl:text> + <xsl:value-of select="tei:surname"></xsl:value-of> + </xsl:for-each> + <xsl:text>&rft.series=Zeitschrift%20f%C3%BCr%20digitale%20Geisteswissenschaften</xsl:text> + <xsl:text>&rft.date=</xsl:text> + <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:date/@when"></xsl:value-of> + <xsl:text>&rft_id=http://dx.doi.org/</xsl:text> + <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"></xsl:value-of> + <xsl:text>&rft.language=</xsl:text><xsl:value-of select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:langUsage/tei:language[1]/@ident"></xsl:value-of> + <xsl:text>&rft.rights=CC BY-SA 4.0</xsl:text> + </xsl:attribute> + </xsl:element> + <div> + <xsl:choose> + <xsl:when + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']"> + <xsl:for-each + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName"> + <div style="margin: 1em 0 1em 0;"> + <xsl:apply-templates select="tei:name/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:apply-templates select="tei:name/tei:surname"/> + <xsl:text> </xsl:text> + <xsl:element name="a"> + <xsl:attribute name="href"> + <xsl:text>javascript:switchlayer('author</xsl:text> + <xsl:number + count="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt"/> + <xsl:text>');</xsl:text> + </xsl:attribute> + + <img style="margin-left: 1%" + src="http://www.zfdg.de/sites/all/themes/fvmww/images/arrow-down.png" + alt="Autoreninformationen"/> + </xsl:element> + </div> + <xsl:element name="div"> + <xsl:attribute name="style"> + <xsl:text>display:none; width:100%; background-color: #fafafa;</xsl:text> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:text>author</xsl:text> + <xsl:number + count="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt" + /> + </xsl:attribute> + <xsl:text> Kontakt: </xsl:text> + <a> + <xsl:attribute name="href"> + <xsl:text>mailto:</xsl:text> + <xsl:value-of select="tei:email"/> + </xsl:attribute> + + <xsl:apply-templates select="tei:email"/> + </a> + <br/> + <xsl:text>Institution: </xsl:text> + <xsl:apply-templates select=" following::tei:orgName[1]"/> + <xsl:text> </xsl:text> + <br/> + <xsl:if test="tei:idno[@type = 'gnd']"> + <xsl:text>GND: </xsl:text> + <a> + <xsl:attribute name="href"> + <xsl:text> http://d-nb.info/gnd/</xsl:text> + <xsl:value-of select="tei:idno[@type = 'gnd']"/> + </xsl:attribute> + <xsl:attribute name="target" + ><xsltext>_blank</xsltext>:</xsl:attribute> + <xsl:value-of select="tei:idno[@type = 'gnd']"/> + </a> + <br/> + </xsl:if> + <xsl:if test="tei:idno[@type = 'orcid']"> + <xsl:text>ORCID: </xsl:text> + <a> + <xsl:attribute name="href"><xsl:text>https://orcid.org/</xsl:text><xsl:value-of select="tei:idno[@type = 'orcid']"/></xsl:attribute> + <xsl:attribute name="target" + ><xsltext>_blank</xsltext>:</xsl:attribute> + <xsl:value-of select="tei:idno[@type = 'orcid']"/> + </a> + <br/> + </xsl:if> + </xsl:element> + </xsl:for-each> + </xsl:when> + </xsl:choose> + + </div> + + <div id="info1"> + <hr class="one"/> + <!-- <xsl:text>DOI: </xsl:text><xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno[@type='doi']"/><br/> --> + + + <xsl:choose> + <xsl:when + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno/@type = 'doi'"> + <p> + <span class="bolder"> + <xsl:text>DOI: </xsl:text> + </span> + <a> + <xsl:attribute name="href"> + <xsl:value-of select="$doi"/> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']" + /> + </xsl:attribute> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']" + /> + </a> + </p> + </xsl:when> + <xsl:otherwise> + <p> + <span class="bolder"> + <xsl:text>DOI: </xsl:text> + </span> + <xsl:text>In Kürze</xsl:text> + </p> + </xsl:otherwise> + </xsl:choose> + + <p> + <span class="bolder"> + <xsl:text>Nachweis im OPAC der Herzog August Bibliothek: </xsl:text> + </span> + <xsl:choose> + <xsl:when + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'ppn']"> + <a> + <xsl:attribute name="href"> + <xsl:text>http://opac.lbs-braunschweig.gbv.de/DB=2/XMLPRS=N/PPN?PPN=</xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'ppn']" + /> + </xsl:attribute> + <xsl:attribute name="target"> + <xsl:text>_blank</xsl:text> + </xsl:attribute> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'ppn']" + /> + </a> + </xsl:when> + <xsl:otherwise> + <xsl:text>In Kürze</xsl:text> + </xsl:otherwise> + </xsl:choose> + </p> + + <p> + <span class="bolder"> + <xsl:text>Erstveröffentlichung: </xsl:text> + </span> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:date"/> + + </p> + <p> + <span class="bolder"> + <xsl:text>Lizenz:</xsl:text> + </span> + <xsl:text> Sofern nicht anders angegeben </xsl:text> + <xsl:choose> + <xsl:when + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:availability[1]/tei:licence[@target = 'http://creativecommons.org/licenses/by/4.0/']"> + + + <a> + <xsl:attribute name="href"> + <xsl:text>http://creativecommons.org/licenses/by-sa/4.0/</xsl:text> + </xsl:attribute> + <xsl:attribute name="rel"> + <xsl:text>license</xsl:text> + </xsl:attribute> + <xsl:attribute name="target"> + <xsl:text>_blank</xsl:text> + </xsl:attribute> + <xsl:element name="img"> + <xsl:attribute name="alt"> + <xsl:text>Creative Commons Lizenzvertrag</xsl:text> + </xsl:attribute> + <xsl:attribute name="src"> + <xsl:text>https://licensebuttons.net/l/by-sa/4.0/80x15.png</xsl:text> + </xsl:attribute> + </xsl:element> + <br/> + </a> + + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:availability[1]/tei:licence" + /> + </xsl:otherwise> + </xsl:choose> + </p> + </div> + <div id="info2"> + <p> + <span class="bolder"> + <xsl:text>Medienlizenzen: </xsl:text> + </span> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:encodingDesc/tei:editorialDecl[3]" + /> + </p> + <p> + <span class="bolder"> + <xsl:text>Letzte Überprüfung aller Verweise: </xsl:text> + </span> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:encodingDesc/tei:editorialDecl[4]/tei:p/tei:date" + /> + </p> + + + <xsl:choose> + <xsl:when + test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'gnd']"> + <p> + <span class="bolder"> + <xsl:text>GND-Verschlagwortung: </xsl:text> + </span> + <xsl:for-each + select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'gnd']/tei:term"> + <a> + <xsl:attribute name="href"> + <xsl:value-of select="$gnd"/> + <xsl:value-of select="./tei:ref/@target"/> + </xsl:attribute> + <xsl:attribute name="target"> + <xsl:text>_blank</xsl:text> + </xsl:attribute> + <xsl:value-of select="."/> + </a> + <xsl:text> | </xsl:text> + </xsl:for-each> + </p> + </xsl:when> + </xsl:choose> + <xsl:choose> + <xsl:when + test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'tadirah']"> + <p> + <span class="bolder"> + <xsl:text>TaDiRAH-Verschlagwortung: </xsl:text> + </span> + <xsl:for-each + select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'tadirah']/tei:term"> + <a> + <xsl:attribute name="href"> + <xsl:value-of select="$tadirah"/> + <xsl:value-of select="./tei:ref/@target"/> + </xsl:attribute> + <xsl:attribute name="target"> + <xsl:text>_blank</xsl:text> + </xsl:attribute> + <xsl:value-of select="."/> + </a> + <xsl:text> | </xsl:text> + </xsl:for-each> + </p> + </xsl:when> + </xsl:choose> + <p> + <span class="bolder"> + <xsl:text>Empfohlene Zitierweise: </xsl:text> + </span> + <xsl:choose> + <xsl:when + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno/@type = 'doi'"> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"/> + + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']"> + <xsl:text>, </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </xsl:if> + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']"> + <xsl:text>, </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </xsl:if> + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']"> + <xsl:text>, </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </xsl:if> + + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']"> + <xsl:text>, </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </xsl:if> + + + + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']"> + <xsl:text>, </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </xsl:if> + + + + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']"> + <xsl:text>, </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </xsl:if> + + <xsl:text>: </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title"/> + <xsl:text>. In: Zeitschrift für digitale Geisteswissenschaften. Wolfenbüttel 2019.</xsl:text> + <xsl:text> </xsl:text> + + <xsl:text> text/html Format.</xsl:text> + <!-- <xsl:text>Eingesehen am: </xsl:text> + <xsl:value-of select="$now"/>. --> + <xsl:text> DOI: </xsl:text> + <a> + <xsl:attribute name="href"> + <xsl:value-of select="$doi"/> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']" + /> + </xsl:attribute> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']" + /> + </a> + </xsl:when> + <xsl:otherwise> + <xsl:text>in Kürze verfügbar</xsl:text> + </xsl:otherwise> + </xsl:choose> + </p> + + <hr class="one"/> + </div> + + </div> + + + + <div class="content"> + <!-- Haupttext --> + <xsl:apply-templates + select="tei:TEI/tei:text//tei:div[@type = 'chapter'] | tei:TEI/tei:text//tei:div[@type = 'abstract'] | tei:TEI/tei:text//tei:div[@type = 'appendix']" + /> + </div> + + + + + <!-- Fussnotenbereich --> + + <div id="fussnoten"> + <xsl:if test="tei:TEI/tei:text/tei:body//tei:note[@type = 'footnote']"> + <hr/> + + </xsl:if> + + + <a name="footnotes"/> + <xsl:choose> + <xsl:when test="tei:TEI/tei:text/tei:body/tei:div[@type = 'footnotes']"> + <!-- Wenn es einen Fussnotenbereich gibt --> + <xsl:apply-templates + select="tei:TEI/tei:text/tei:body/tei:div[@type = 'footnotes']"/> + </xsl:when> + <xsl:otherwise> + <!-- andernfalls notes auswerten --> + <div class="footnote"> + <h2>Fußnoten</h2> + <ul class="footnote"> + <xsl:for-each + select="tei:TEI/tei:text/tei:body//tei:note[@type = 'footnote']"> + + <li class="footnote"> + <div class="footnote2"> + <xsl:attribute name="id"> + <xsl:text>fn</xsl:text> + <xsl:number level="any" + count="tei:note[@type = 'footnote']"/> + </xsl:attribute> + <xsl:attribute name="href"> + <xsl:text>#fna</xsl:text><xsl:number level="any" + count="tei:note[@type = 'footnote']"/> + </xsl:attribute>[<a><xsl:attribute name="href"> + <xsl:text>#fna</xsl:text><xsl:number level="any" + count="tei:note[@type = 'footnote']" + /></xsl:attribute><xsl:number level="any" + count="tei:note[@type = 'footnote']"/></a>]</div> + <div class="footnote3"> + <xsl:apply-templates/> + </div> + </li> + <br/> + </xsl:for-each> + </ul> + </div> + </xsl:otherwise> + </xsl:choose> + </div> + <!-- Bibliographie --> + <div class="bibliography"> + <hr/> + <xsl:apply-templates + select="/tei:TEI/tei:text/tei:body/tei:div/tei:div[@type = 'bibliography']" + /> + + <xsl:apply-templates + select="/tei:TEI/tei:text/tei:body/tei:div/tei:div[@type = 'bibliography2']" + /> + </div> + <!-- Abbildungsnachweis --> + <div class="abbildungsnachweis"> + <hr/> + <xsl:apply-templates + select="/tei:TEI/tei:text/tei:body/tei:div/tei:div[@type = 'abbildungsnachweis']" + /> + </div> + <!-- Glossar --> + <xsl:choose> + <xsl:when test="//tei:TEI/tei:text[1]/tei:body[1]/tei:div[1]/tei:div[@type='glossar']"> + <div class="glossar"> + <hr/> + <xsl:apply-templates + select="/tei:TEI/tei:text/tei:body/tei:div/tei:div[@type = 'glossar']"/> + </div> + </xsl:when> + </xsl:choose> + <!-- Ende main --> + </body> + </html> + </xsl:template> + + <xsl:template match="tei:body | tei:front"> + <xsl:apply-templates/> + </xsl:template> + + <!--header--> + <!-- editor, contributer etc. --> + <xsl:template match="tei:respStmt"> + <xsl:if test="position() != 1"> + <xsl:text>,</xsl:text> + </xsl:if> + <xsl:text> </xsl:text> + <xsl:value-of select="tei:resp"/> + <xsl:text> </xsl:text> + <xsl:value-of select="tei:name"/> + </xsl:template> + + <!-- Front --> + + <xsl:template match="tei:titlePage"> + <p class="content"> + <xsl:apply-templates/> + </p> + </xsl:template> + + <xsl:template match="tei:docTitle"> + <xsl:apply-templates/> + </xsl:template> + + + <xsl:template match="tei:docDate"> + <p class="content"> + <xsl:apply-templates/> + </p> + </xsl:template> + + <xsl:template match="tei:docAuthor"> + <xsl:apply-templates/> + </xsl:template> + + + <xsl:template match="tei:titlePart"> + <p class="content"> + <xsl:apply-templates/> + </p> + </xsl:template> + + + <!--body--> + <!-- main distribution + <xsl:template match="tei:div[not(@type='footnotes')] | tei:div1[not(@type='footnotes')] | tei:div2[not(@type='footnotes')] | tei:div3[not(@type='footnotes')]"> + <a> + <xsl:attribute name="name"> + <xsl:text>div</xsl:text> + <xsl:number level="any"/> + </xsl:attribute> + <xsl:text> </xsl:text> + </a> + <xsl:if test="@xml:id[starts-with(.,'org') or starts-with(.,'ue')]"> + <a> + <xsl:attribute name="name"> + <xsl:value-of select="@xml:id"/> + </xsl:attribute> + <xsl:text> </xsl:text> + </a> + </xsl:if> + + <xsl:if test="@type = 'abstract'"> + <xsl:element name="div"> + <xsl:attribute name="id"><xsl:text>abstract</xsl:text></xsl:attribute> + + <xsl:apply-templates/> + </xsl:element> + </xsl:if> + <xsl:if test="@type ='chapter'"> + <xsl:element name="div"> + <xsl:attribute name="id"><xsl:text>chapter</xsl:text></xsl:attribute> + <xsl:apply-templates/> + </xsl:element> + </xsl:if> + <xsl:if test="@type ='subchapter'"> + <xsl:element name="div"> + <xsl:attribute name="id"><xsl:text>subchapter</xsl:text></xsl:attribute> + <xsl:apply-templates/>t + </xsl:element> + </xsl:if> + <xsl:if test="@type ='biblography'"> + <xsl:element name="div"> + <xsl:attribute name="id"><xsl:text>bibliography</xsl:text></xsl:attribute> + <xsl:apply-templates/> + </xsl:element> + </xsl:if> + </xsl:template> +--> + <!-- Ueberschriften--> + + <xsl:template match="h"> + + <xsl:if test="@xml:id[starts-with(., 'org') or starts-with(., 'ue')]"> + <a> + <xsl:attribute name="name"> + <xsl:value-of select="@xml:id"/> + </xsl:attribute> + <xsl:text> </xsl:text> + </a> + </xsl:if> + <a> + <xsl:attribute name="name"> + <xsl:text>hd</xsl:text> + <xsl:number level="any"/> + </xsl:attribute> + <xsl:text> </xsl:text> + </a> + <h2> + <xsl:apply-templates/> + </h2> + </xsl:template> + + + <!-- xsl:mode ansehen, p als type grosszitat? --> + + <!-- Links --> + <xsl:template match="tei:ref"> + <xsl:choose> + <xsl:when test="@type = 'footnote'"> + <a> + <xsl:attribute name="name"> + <xsl:text>fna</xsl:text> + <xsl:value-of select="."/> + </xsl:attribute> + <a> + <xsl:attribute name="href"> + <xsl:value-of select="@target"/> + </xsl:attribute> + <xsl:value-of select="."/> + </a> + </a> + </xsl:when> + + <xsl:when test="@type = 'intern'"> + <a> + <xsl:if test="starts-with(@target, '#')"> + <xsl:attribute name="title"> + <xsl:value-of + select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])" + /> + </xsl:attribute> + </xsl:if> + <xsl:attribute name="href"> + <xsl:value-of select="@target"/> + </xsl:attribute> + <xsl:apply-templates/> + </a> + </xsl:when> + <xsl:when test="@type = 'verweis'"> + <a> + <xsl:if test="starts-with(@target, '#')"> + <xsl:attribute name="id"> + <xsl:value-of select="@xml:id"/> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:value-of select="."/> + </xsl:attribute> + </xsl:if> + <xsl:attribute name="href"> + <xsl:value-of select="@target"/> + </xsl:attribute> + <xsl:apply-templates/> + </a> + </xsl:when> + <xsl:when test="@type = 'glossar'"> + <a> + <xsl:if test="starts-with(@target, '#')"> + <xsl:attribute name="id"> + <xsl:value-of select="@xml:id"/> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:value-of + select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])" + /> + </xsl:attribute> + </xsl:if> + <xsl:attribute name="href"> + <xsl:value-of select="@target"/> + </xsl:attribute> + <xsl:apply-templates/> + </a> + </xsl:when> + <xsl:when test="@type = 'extern'"> + <a> + <xsl:attribute name="href"> + <xsl:value-of select="@target"/> + </xsl:attribute> + <xsl:attribute name="target"> + <xsl:text>_blank</xsl:text> + </xsl:attribute> + <xsl:apply-templates/> + </a> + </xsl:when> + <xsl:when test="@type = 'graphic' and not(parent::tei:desc)"> + + <a> + <xsl:if test="starts-with(@target, '#')"> + <xsl:attribute name="title"> + <xsl:value-of + select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])" + /> + </xsl:attribute> + </xsl:if> + <xsl:attribute name="href"> + <xsl:value-of select="@target"/> + </xsl:attribute> + <!-- <xsl:attribute name="target"> + <xsl:text>_blank</xsl:text> + </xsl:attribute> --> + <span class="medium"> + <xsl:apply-templates/> + </span> + </a> + </xsl:when> + + <xsl:when test="@type = 'bibliography'"> + <a> + <xsl:if test="starts-with(@target, '#')"> + <xsl:attribute name="title"> + <xsl:value-of + select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])" + /> + </xsl:attribute> + </xsl:if> + <xsl:attribute name="href"> + <xsl:value-of select="@target"/> + </xsl:attribute> + <xsl:apply-templates/> + </a> + </xsl:when> + <xsl:otherwise> + <a> + <xsl:attribute name="href"> + <xsl:value-of select="@target"/> + </xsl:attribute> + <xsl:attribute name="target"> + <xsl:text>_blank</xsl:text> + </xsl:attribute> + <xsl:apply-templates/> + </a> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="tei:ptr"> + <xsl:apply-templates/> + <xsl:choose> + <xsl:when test="@type = 'google_books'"> [<a> + <xsl:attribute name="href"> + <xsl:text>javascript:show_annotation_html('</xsl:text><xsl:value-of + select="$dir"/><xsl:text>','</xsl:text><xsl:value-of select="@target" + /><xsl:text>',400,600)</xsl:text> + </xsl:attribute> + <xsl:text>Google Books</xsl:text></a>] </xsl:when> + <xsl:when test="starts-with(@target, 'http://')"> [<a> + <xsl:attribute name="href"><xsl:value-of select="@target"/></xsl:attribute> + <xsl:attribute name="target">_blank</xsl:attribute> + <xsl:text>Link</xsl:text> + </a>] </xsl:when> + <xsl:when test="@type = 'opac'"> [<a href="{normalize-space(concat($opac,@cRef))}" + target="_blank">Nachweis im OPAC</a>] </xsl:when> + <xsl:when test="@type = 'varia'"> [<a> + <xsl:attribute name="href"><xsl:value-of select="@cRef"/> + </xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute> + <xsl:text>Nachweis</xsl:text></a>] </xsl:when> + <xsl:when test="@type = 'gbv'"> [<a href="{normalize-space(concat($gbv,@cRef))}" + target="_blank">Nachweis im GVK</a>] </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="@subtype = 'google_books'"> [<a> + <xsl:attribute name="href"> + <xsl:text>javascript:show_annotation_html('</xsl:text><xsl:value-of + select="$dir"/><xsl:text>','</xsl:text><xsl:value-of select="@target" + /><xsl:text>',400,600)</xsl:text> + </xsl:attribute> + <xsl:text>Google Books</xsl:text></a>] </xsl:when> + <xsl:when test="starts-with(@target, 'http://')"> [<a> + <xsl:attribute name="href"><xsl:value-of select="@target"/></xsl:attribute> + <xsl:attribute name="target">_blank</xsl:attribute> + <xsl:text>Link</xsl:text> + </a>] </xsl:when> + <xsl:when test="@subtype = 'opac'"> [<a href="{normalize-space(concat($opac,@cRef))}" + target="_blank">Nachweis im OPAC</a>] </xsl:when> + <xsl:when test="@subtype = 'varia'"> [<a> + <xsl:attribute name="href"><xsl:value-of select="@cRef"/> + </xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute> + <xsl:text>Nachweis</xsl:text></a>] </xsl:when> + <xsl:when test="@subtype = 'gbv'"> [<a href="{normalize-space(concat($gbv,@cRef))}" + target="_blank">Nachweis im GVK</a>] </xsl:when> + </xsl:choose> + </xsl:template> + + + + + + + <xsl:template match="tei:list"> + <xsl:choose> + <xsl:when test="@type = 'unordered'"> + <xsl:element name="ul"> + <xsl:attribute name="class">ul_article</xsl:attribute> + <xsl:for-each select="tei:item"> + <xsl:element name="li"> + <xsl:apply-templates/> + </xsl:element> + </xsl:for-each> + </xsl:element> + </xsl:when> + <xsl:when test="@type = 'ordered'"> + <xsl:element name="ol"> + <xsl:attribute name="class">ol_article</xsl:attribute> + <xsl:for-each select="tei:item"> + <xsl:element name="li"> + <xsl:apply-templates/> + </xsl:element> + </xsl:for-each> + </xsl:element> + </xsl:when> + <xsl:when test="@type = 'gloss'"> + <xsl:element name="table"> + <xsl:for-each select="tei:label"> + <xsl:element name="tr"> + <xsl:element name="td"> + <xsl:attribute name="id"> + <xsl:value-of select="@xml:id"/> + </xsl:attribute> + <xsl:apply-templates select="tei:term"/> + <br/> + <br/> + </xsl:element> + + <xsl:element name="td"> + <xsl:apply-templates + select="following-sibling::tei:item[position() = 1]/tei:gloss"/> + <a> + + <xsl:attribute name="href"> + <xsl:text>#g</xsl:text> + <xsl:value-of select="@xml:id"/> + </xsl:attribute> + <xsl:text> [Zurück zum Text]</xsl:text> + </a> + <br/> + <br/> + </xsl:element> + </xsl:element> + </xsl:for-each> + </xsl:element> + </xsl:when> + <xsl:otherwise> + <xsl:element name="ul"> + <xsl:for-each select="tei:item"> + <xsl:element name="li"> + <xsl:apply-templates/> + </xsl:element> + </xsl:for-each> + </xsl:element> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + <xsl:template match="tei:bibl[parent::tei:listBibl]"> + <xsl:element name="li"> + <xsl:attribute name="class">biblio</xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@xml:id"/> + </xsl:attribute> + <xsl:apply-templates/> + </xsl:element> + <br/> + </xsl:template> + + <xsl:template match="tei:listBibl"> + <ul class="bibl"> + <xsl:apply-templates/> + </ul> + </xsl:template> + + + + + <!-- footnotes, annotations --> + + + + <xsl:template match="tei:note"> + + <xsl:param name="caption"/> + + <xsl:choose> + <xsl:when test="parent::tei:div[@type = 'footnotes']"> + <!-- Fussnoten am Text- oder Seitenende --> + <div class="footnote"> + <a> + <xsl:attribute name="name"> + <xsl:text>fn</xsl:text> + <xsl:value-of select="@n"/> + </xsl:attribute> + <a> + <xsl:attribute name="href"> + <xsl:text>#fna</xsl:text> + <xsl:value-of select="@n"/> + </xsl:attribute> + <xsl:value-of select="@n"/> + + </a> + </a> + <xsl:apply-templates/> + </div> + </xsl:when> + <!-- in Text integriert, nur Verweis , Fussnotenabschnitt mit foreach generiert --> + <xsl:when test="@type = 'footnote'"> + <a> + <xsl:attribute name="id"> + <xsl:text>fna</xsl:text> + <xsl:number level="any" count="tei:note[@type = 'footnote']"/> + </xsl:attribute> + <xsl:attribute name="class"> + <xsl:text>fn</xsl:text> + </xsl:attribute> + <xsl:attribute name="href"> + <xsl:text>#fn</xsl:text> + <xsl:number level="any" count="tei:note[@type = 'footnote']"/> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:copy-of select="normalize-space(.)"/> + </xsl:attribute> + <xsl:value-of select="$caption"/> + <xsl:text>[</xsl:text> + <xsl:number level="any" count="tei:note[@type = 'footnote']"/> + <xsl:text>]</xsl:text> + </a> + </xsl:when> + <xsl:otherwise> </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <!-- Formatiere Fußnotenreferenz für aktuellen Knoten --> + <!-- <xsl:template name="footnote"> + <a> + <xsl:attribute name="id"> + <xsl:text>fna</xsl:text> + <xsl:number level="any" count="tei:note[@type ='footnote']"/> + </xsl:attribute> + <xsl:attribute name="class"> + <xsl:text>fn</xsl:text> + </xsl:attribute> + <xsl:attribute name="href"> + <xsl:text>#fn</xsl:text> + <xsl:number level="any" count="tei:note[@type ='footnote']"/> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:copy-of select="normalize-space(.)"/> + </xsl:attribute> + <xsl:text>[</xsl:text><xsl:number level="any" count="tei:note[@type ='footnote']"/> <xsl:text>]</xsl:text> + </a> + </xsl:template> + + <xsl:template match="tei:note[@type='footnote'][not(preceding-sibling::tei:quote[@type='grosszitat'])]"> + <xsl:call-template name="footnote"></xsl:call-template> + </xsl:template> --> + + + <!-- Versionshistorie --> + <xsl:template match="tei:TEI//tei:teiHeader/tei:revisionDesc"> + <xsl:text>HELLO!</xsl:text> + <xsl:choose> + <xsl:when test="."> + <xsl:element name="div"><xsl:attribute name="id">versionsbox</xsl:attribute> + <xsl:for-each select="tei:change"> + <xsl:element name="h3"><xsl:text>Version </xsl:text><xsl:value-of select="@n"/><xsl:text> (</xsl:text><xsl:value-of select="@when"/><xsl:text>)</xsl:text></xsl:element> + <xsl:element name="p"> + <xsl:value-of select="tei:p"/> + </xsl:element> + </xsl:for-each> + </xsl:element> + </xsl:when> + </xsl:choose> +</xsl:template> + + <xsl:template match="tei:argument"> + <xsl:choose> + <xsl:when test="@xml:lang = 'de'"> + <div id="abstract_de" class="abstract"> + <h1>Abstract</h1> + + <xsl:apply-templates/> + </div> + </xsl:when> + <xsl:when test="@xml:lang = 'en'"> + <hr class="one"/> + <div id="abstract_en" class="abstract"> + <!-- <h1>Abstract (englisch)</h1> --> + + <xsl:apply-templates/> + </div> + + <!-- Versionshistorie --> + <hr class="one"/> + <xsl:for-each select="/tei:TEI//tei:teiHeader/tei:revisionDesc"> + <xsl:if test="tei:change[@status='published']"> + <xsl:element name="div"><xsl:attribute name="id">versionsbox</xsl:attribute> + <xsl:for-each select="tei:change"> + <xsl:element name="h3"><xsl:text>Version </xsl:text><xsl:value-of select="@n"/><xsl:text> (</xsl:text><xsl:value-of select="substring(@when,9)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(@when,6,2)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(@when,1,4)"/><xsl:text>)</xsl:text></xsl:element> + <xsl:element name="p"> + <xsl:value-of select="tei:p"/> + </xsl:element> + </xsl:for-each> + </xsl:element> + </xsl:if> + </xsl:for-each> + + + + <!-- Inhaltsuebersicht --> + + <div id="headings"> + <br/> + <br/> + <hr class="two"/> + <br/> + <ul> + <xsl:for-each select="/tei:TEI/tei:text/tei:body//tei:div/tei:head"> + <li> + <!--<xsl:number level="multiple" count="tei:div" format="1.1. "/>--> + <a> + <xsl:attribute name="href"> + <xsl:text>#hd</xsl:text> + <xsl:number level="any"/> + </xsl:attribute> + <xsl:value-of select="."/> + </a> + <xsl:apply-templates select="../tei:argument/tei:p"> + <xsl:with-param name="caption">true</xsl:with-param> + </xsl:apply-templates> + </li> + + </xsl:for-each> + </ul> + </div> + <br/> + </xsl:when> + </xsl:choose> + + </xsl:template> + + + <xsl:template match="tei:head"> + + <a> + <xsl:attribute name="name"> + <xsl:text>hd</xsl:text> + <xsl:number level="any"/> + </xsl:attribute> + <xsl:text> </xsl:text> + </a> + <xsl:choose> + <xsl:when test="parent::tei:div[@type = 'subchapter']"> + <h3> + <div style="position:relative;width:90%;"> + <xsl:apply-templates/> + </div> + </h3> + </xsl:when> + <xsl:when test="parent::tei:table"> + <th class="tabhead"> + + <xsl:apply-templates/> + + </th> + </xsl:when> + + <xsl:otherwise> + + <h2> + <div style="position:relative;width:90%;"> + <xsl:apply-templates/> + </div> + </h2> + + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + <!-- closer --> + <xsl:template match="tei:closer"> + <xsl:apply-templates/> + </xsl:template> + + <!-- closer --> + <xsl:template match="tei:opener"> + <xsl:apply-templates/> + </xsl:template> + + <!-- closer --> + <xsl:template match="tei:salute"> + <xsl:apply-templates/> + </xsl:template> + + <!-- Namen --> + <xsl:template match="tei:name"> + <xsl:apply-templates/> + </xsl:template> + <!-- Datum --> + <xsl:template match="tei:dateline"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="tei:date"> + <xsl:apply-templates/> + </xsl:template> + + <!-- index erst mal auslassen--> + <xsl:template match="tei:index"> </xsl:template> + + <!-- Anker fuer Spruenge im Text --> + <xsl:template match="tei:anchor"> + <a> + <xsl:attribute name="name"> + <xsl:value-of select="@xml:id"/> + </xsl:attribute> + <xsl:text> </xsl:text> + </a> + </xsl:template> + + <!-- Textkritik --> + + <xsl:template match="tei:app"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="tei:rdg"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="tei:l"> + <xsl:if test="@xml:id[starts-with(., 'org') or starts-with(., 'ue')]"> + <a> + <xsl:attribute name="name"> + <xsl:value-of select="@xml:id"/> + </xsl:attribute> + <xsl:text> </xsl:text> + </a> + </xsl:if> +<xsl:for-each select="."> + <xsl:apply-templates/><br/> +</xsl:for-each> + </xsl:template> + + <xsl:template match="tei:quote"> + <xsl:choose><xsl:when test="preceding-sibling::tei:note"> + <xsl:text> »</xsl:text> + <xsl:apply-templates/> + <xsl:text>«</xsl:text> + </xsl:when> + <xsl:when test="@type='motto'"> + <xsl:apply-templates/> + </xsl:when> + <xsl:otherwise> <xsl:text>»</xsl:text> + <xsl:apply-templates/> + <xsl:text>«</xsl:text></xsl:otherwise></xsl:choose> + </xsl:template> + +<xsl:template match="tei:emph"> + <xsl:apply-templates></xsl:apply-templates> +</xsl:template> + + <xsl:template match="tei:term"> + <xsl:choose> + <xsl:when test="@type='dh'"> + <span style="color:#035151"><i><xsl:apply-templates></xsl:apply-templates></i></span> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates></xsl:apply-templates> + </xsl:otherwise> + </xsl:choose> + + </xsl:template> + +<xsl:template match="tei:rendition"></xsl:template> + + <xsl:template match="tei:hi | tei:rs/tei:hi"> + <xsl:if test="@xml:id[starts-with(., 'org') or starts-with(., 'ue')]"> + <a> + <xsl:attribute name="name"> + <xsl:value-of select="@xml:id"/> + </xsl:attribute> + <xsl:text> </xsl:text> + </a> + </xsl:if> + <xsl:choose> + <xsl:when test="@rend = 'italics' or @rend = 'italic'"> + <i> + <xsl:apply-templates/> + </i> + </xsl:when> + <xsl:when test="@rend = 'bold'"> + <b> + <xsl:apply-templates/> + </b> + </xsl:when> + <xsl:when test="@rendition = 'super'"> + <sup> + <xsl:apply-templates/> + </sup> + </xsl:when> + <xsl:when test="@rendition = 'sub'"> + <sub> + <xsl:apply-templates/> + </sub> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="tei:p | tei:seg | tei:lg"> + <xsl:choose> + <xsl:when test="./tei:quote[@type = 'grosszitat']"> + <xsl:element name="p"> + <span class="grosszitat"> + <xsl:apply-templates/> + </span> + </xsl:element> + </xsl:when> + <xsl:when test="./tei:quote[@type = 'motto']"> + <xsl:element name="p"> + <span class="motto"> + <xsl:apply-templates/> + </span> + </xsl:element> + </xsl:when> + <xsl:otherwise> + <xsl:element name="p"> + <xsl:apply-templates/> + </xsl:element> + </xsl:otherwise> + </xsl:choose> + + </xsl:template> + + + <xsl:template match="tei:bibl/tei:ref"> + <a> + <xsl:attribute name="href"> + <xsl:value-of select="@target"/> + </xsl:attribute> + <xsl:attribute name="target">_blank</xsl:attribute> + <xsl:apply-templates/> + </a> + + </xsl:template> + + + <xsl:template match="tei:bibl/tei:title"> + <xsl:choose> + <xsl:when test="@type='desc'"> + <i><xsl:apply-templates></xsl:apply-templates></i> + </xsl:when> + </xsl:choose> + </xsl:template> + + <xsl:template match="tei:graphic"> + + <div class="medium"> + <div class="field-item even" rel="og:image rdfs:seeAlso" resource="../medium1"> + <a> + <xsl:attribute name="href"> + <xsl:value-of select="$img"/> + <xsl:value-of select="substring-after(@url, 'medien/')"/> + <!-- <xsl:text>.../medien1/</xsl:text><xsl:value-of select="substring-after(@url, '.../medien')"/> --> + </xsl:attribute> + <xsl:attribute name="title"> + <xsl:value-of select="normalize-space(tei:desc)"/> + </xsl:attribute> + <xsl:attribute name="rel"> + <xsl:text>gallery-node</xsl:text> + </xsl:attribute> + <xsl:attribute name="class"> + <xsl:text>colorbox</xsl:text> + </xsl:attribute> + <img style="max-height:450px!important" class="artikel"> + <xsl:attribute name="alt"> + <xsl:value-of select="tei:desc"/> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@xml:id"/> + </xsl:attribute> + <xsl:attribute name="src"> + <xsl:value-of select="$img2"/> + <xsl:value-of select="substring-after(@url, 'medien/')"/> + </xsl:attribute> + <xsl:text/> + </img> + </a> + </div> + <div class="img_desc"> + <xsl:apply-templates select="tei:desc"/> + </div> + </div> + + + </xsl:template> + + <xsl:template match="tei:media"> + <xsl:choose> + <xsl:when test="@type = 'svg'"> + <div class="medium"> + <object width="900" height="450"> + <!-- <xsl:attribute name="alt"> + <xsl:value-of select="tei:desc"/> + </xsl:attribute>--> + <xsl:attribute name="id"> + <xsl:value-of select="@xml:id"/> + </xsl:attribute> + <xsl:attribute name="data"> + <xsl:value-of select="$img"/> + <xsl:value-of select="substring-after(@url, 'medien/')"/> + </xsl:attribute> + <xsl:text/> + <xsl:attribute name="type">image/svg+xml</xsl:attribute> + </object> + </div> + <div class="img_desc"> + <xsl:apply-templates select="tei:desc"/> + </div> + </xsl:when> + </xsl:choose> + + </xsl:template> + + <xsl:template match="tei:ref[parent::tei:desc]"> + <xsl:choose> + <xsl:when test="@type = 'extern'"> + <a> + <xsl:attribute name="href"> + <xsl:value-of select="@target"/> + </xsl:attribute> + <xsl:attribute name="target"> + <xsl:text>_blank</xsl:text> + </xsl:attribute> + <xsl:apply-templates/> + </a> + </xsl:when> + <xsl:otherwise> + <a> + <xsl:attribute name="href"> + <xsl:value-of select="@target"/> + </xsl:attribute> + <xsl:apply-templates/> + </a> + </xsl:otherwise> + </xsl:choose> + + </xsl:template> + + <xsl:template match="tei:code"> + <xsl:element name="span"> + <xsl:attribute name="class">code</xsl:attribute> + <xsl:apply-templates/> + </xsl:element> + </xsl:template> + + <xsl:template match="tei:table"> + <hr class="one"/> + <xsl:element name="table"><xsl:attribute name="style">border: 1px; rules: all; border-style: solid; border-color: #696969; font-size: 10px; line-height: 1.5;</xsl:attribute> + <xsl:attribute name="id"><xsl:value-of select="@xml:id"/></xsl:attribute> + <xsl:if test="tei:head"> + <xsl:apply-templates select="tei:head[1]"></xsl:apply-templates> + <xsl:apply-templates select="tei:head[2]"></xsl:apply-templates> + <xsl:apply-templates select="tei:head[3]"></xsl:apply-templates> + <xsl:apply-templates select="tei:head[4]"></xsl:apply-templates> + <xsl:apply-templates select="tei:head[5]"></xsl:apply-templates> + </xsl:if> + <xsl:for-each select="tei:row"> + <xsl:element name="tr"><xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute> + <xsl:apply-templates></xsl:apply-templates></xsl:element> + </xsl:for-each> + </xsl:element> + <hr class="one"/> +<span class="img_desc"><xsl:apply-templates select="tei:trailer[1]"></xsl:apply-templates></span><br/> + <xsl:if test="tei:trailer[2]"> + <span class="img_desc"><xsl:apply-templates select="tei:trailer[2]"></xsl:apply-templates></span><br/></xsl:if> + <br/> + </xsl:template> + +<xsl:template match="tei:lb"> + <br/> +</xsl:template> + + +<xsl:template match="tei:cell"> + <xsl:choose> + <xsl:when test=" ancestor::tei:row[@label='label']"> + <th><xsl:apply-templates></xsl:apply-templates></th> + </xsl:when> + <!-- <xsl:choose> + <xsl:when test="@cols"> + <xsl:element name="td"><xsl:attribute name="colspan"><xsl:value-of select="@cols"/></xsl:attribute><xsl:apply-templates></xsl:apply-templates></xsl:element> + </xsl:when> --> + <xsl:otherwise> + <td style="padding-top: 10px; padding-bottom: 10px; padding-right: 10px; padding-left: 5px; border: 1px; rules: all; border-style: solid; border-color: #696969"><xsl:apply-templates></xsl:apply-templates></td> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + + <xsl:template match="tei:desc[@type = 'graphic']"> + + <ul class="abbildung"> + <xsl:for-each select="."> + <xsl:element name="li"> + <xsl:attribute name="id"> + <xsl:value-of select="@xml:id"/> + </xsl:attribute> + <a> + <xsl:attribute name="href"> + <xsl:value-of select="tei:ref[@type = 'graphic']/@target"/> + </xsl:attribute> + <xsl:text>Abb. </xsl:text><xsl:number count="tei:desc[@type='graphic']"></xsl:number> + </a><xsl:text>: </xsl:text> + <xsl:apply-templates/> + </xsl:element> + </xsl:for-each> + </ul> + </xsl:template> + + + + <xsl:template match="tei:div[@type = 'chapter'] | tei:div[@type = 'subchapter']"> + <xsl:element name="div"> + <xsl:attribute name="id"> + <xsl:value-of select="@type"/> + </xsl:attribute> + <xsl:apply-templates/> + </xsl:element> + </xsl:template> +</xsl:stylesheet> diff --git a/scripts/readme.md b/scripts/readme.md new file mode 100644 index 0000000000000000000000000000000000000000..0f867ec3d6e98507092f8a054d078f1833a917ca --- /dev/null +++ b/scripts/readme.md @@ -0,0 +1 @@ +Skripte für die Erzeugung der unterschiedlichen Publikationsformate auf Basis der XML-Dateien. diff --git a/scripts/xml2dc.xsl b/scripts/xml2dc.xsl new file mode 100644 index 0000000000000000000000000000000000000000..0dd7538af4718c8910df42a462723834cde36847 --- /dev/null +++ b/scripts/xml2dc.xsl @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + exclude-result-prefixes="xs" + version="2.0"> + + <xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"/> + + <xsl:strip-space elements="*"/> + <xsl:template match="/"> + + <dc:record xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"> + <xsl:element name="dc:title"> + <xsl:value-of select="//tei:title[@level='a']"/> + </xsl:element> + + <xsl:apply-templates select="//tei:name[@role='marc_aut']"/> + + + <xsl:element name="dc:subject"> + <xsl:text>Fachartikel</xsl:text> + </xsl:element> + <xsl:element name="dc:description"> + <xsl:value-of select="//tei:argument[@xml:lang='de']"/> + </xsl:element> + <xsl:element name="dc:publisher"> + <xsl:value-of select="//tei:title[@level='j']"/> + </xsl:element> + <xsl:element name="dcterms:date"> + <xsl:value-of select="//tei:biblScope[@unit='year']"/> + </xsl:element> + <xsl:element name="dc:type"> + <xsl:text>html</xsl:text> + </xsl:element> + <xsl:element name="dc:type"> + <xsl:text>xml</xsl:text> + </xsl:element> + <xsl:element name="dc:type"> + <xsl:text>pdf</xsl:text> + </xsl:element> + <xsl:element name="dc:type"> + <xsl:text>elektronische Ressource</xsl:text> + </xsl:element> + <xsl:element name="dc:indentifier"> + <xsl:value-of select="//(tei:analytic/tei:idno[@type='doi'])[1]"/> + </xsl:element> + <xsl:element name="dc:indentifier"> + <xsl:value-of select="//tei:idno[@type='url']"/> + </xsl:element> + <xsl:element name="dc:licence"> + <xsl:value-of select="//tei:licence"/> + </xsl:element> + <xsl:element name="dc:language"> + <xsl:choose> + <xsl:when test="//(tei:langUsage/tei:language[@ident='de'])[1]"> + <xsl:text>ger</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>eng</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:element> + <xsl:element name="dc:source"> + <xsl:value-of select="//tei:analytic/tei:idno[@type='doi']"/> + </xsl:element> + <xsl:element name="dc:rightsHolder"><xsl:for-each select="//tei:authority/tei:name"> + <xsl:value-of select="."/><xsl:text>; </xsl:text> + </xsl:for-each> + </xsl:element> + <xsl:element name="dcterms:isPartof"> + <xsl:text>Zeitschrift für digitale Geisteswissenschaft</xsl:text> + </xsl:element> + + </dc:record> + </xsl:template> + + <xsl:template match="//tei:name[@role='marc_aut']"> + <xsl:element name="dc:creator"> + + <xsl:value-of select="tei:forename"/> + <xsl:text> </xsl:text> + <xsl:value-of select="tei:surname"/> + <xsl:apply-templates select="tei:name[@role='marc_aut']"/> + </xsl:element> + </xsl:template> + +</xsl:stylesheet> \ No newline at end of file diff --git a/scripts/xsl-fo_print.xsl b/scripts/xsl-fo_print.xsl new file mode 100644 index 0000000000000000000000000000000000000000..069997b97cf63627ddf964124ff6b63646cd7a26 --- /dev/null +++ b/scripts/xsl-fo_print.xsl @@ -0,0 +1,1387 @@ +<?xml version="1.0"?> + +<xsl:stylesheet version="1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" + xmlns:mets="http://www.loc.gov/METS/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:fo="http://www.w3.org/1999/XSL/Format" + xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions" + xmlns:fox="http://xmlgraphics.apache.org/fop/extensions"> + + + <xsl:output indent="yes" encoding="utf-8"/> + + + <!-- ***************************************************** +** Globale Parameter +***************************************************** --> + + <xsl:param name="dir"/> + + <!-- Seitenbreite, -hoehe --> + <xsl:param name="Seitenbreite">165mm</xsl:param> + <xsl:param name="Seitenhoehe">240mm</xsl:param> + <!-- Raender: oben rechts unten links --> + <xsl:param name="Raender-rechte-Seiten">9mm 7mm 18mm 18mm</xsl:param> + <xsl:param name="Raender-linke-Seiten">9mm 18mm 18mm 7mm</xsl:param> + <xsl:param name="Innenraender-rechte-Seiten">22mm 30mm 0mm 0mm</xsl:param> + <xsl:param name="Innenraender-linke-Seiten">22mm 0mm 0mm 30mm</xsl:param> + <!-- Typografie --> + <xsl:param name="Schriftname">Arial</xsl:param> + <xsl:param name="Schriftgroesse">10pt</xsl:param> + <xsl:param name="Zeilenhoehe">12pt</xsl:param> + <xsl:variable name="gbv"> + <xsl:text>http://gso.gbv.de/DB=2.1/PPN?PPN=</xsl:text> + </xsl:variable> + <xsl:variable name="opac"> + <xsl:text>http://opac.lbs-braunschweig.gbv.de/DB=2/PPN?PPN=</xsl:text> + </xsl:variable> + + + + <!-- ***************************************************** +** Templates +***************************************************** --> + + + <xsl:template match="/"> + <fo:root> + + <fo:layout-master-set> + + <!-- <fo:simple-page-master master-name="title" page-height="{$Seitenhoehe}" + page-width="{$Seitenbreite}" margin-top="10mm" margin-left="15mm" + margin-bottom="10mm" margin-right="15mm"> + <fo:region-body margin-top="15mm" margin-left="5mm" margin-bottom="10mm" + margin-right="5mm"> </fo:region-body> + <fo:region-before extent="0mm"/> + <fo:region-after extent="0mm"/> + </fo:simple-page-master> --> + <fo:simple-page-master master-name="titel" page-height="{$Seitenhoehe}" + page-width="{$Seitenbreite}" margin-top="10mm" margin-left="15mm" + margin-bottom="10mm" margin-right="15mm"> + <fo:region-body margin-top="15mm" margin-left="5mm" margin-bottom="10mm" + margin-right="5mm"> </fo:region-body> + <fo:region-before extent="0mm"/> + <fo:region-after extent="0mm"/> + + </fo:simple-page-master> + <fo:simple-page-master master-name="standard" page-height="{$Seitenhoehe}" + page-width="{$Seitenbreite}" margin-top="10mm" margin-left="15mm" + margin-bottom="10mm" margin-right="15mm"> + <fo:region-body margin-top="15mm" margin-left="5mm" margin-bottom="10mm" + margin-right="5mm"> </fo:region-body> + <fo:region-before extent="0mm"/> + <fo:region-after extent="0mm"/> + + </fo:simple-page-master> + + <!-- <fo:page-sequence-master master-name="content"> + <fo:repeatable-page-master-alternatives> + <fo:conditional-page-master-reference + master-reference="titel" + page-position="first" odd-or-even="odd"/> + </fo:repeatable-page-master-alternatives> + </fo:page-sequence-master>--> + </fo:layout-master-set> + <fo:bookmark-tree> + <xsl:for-each select="/tei:TEI/tei:text/tei:body//tei:div/tei:head"> + <fo:bookmark internal-destination="{generate-id()}"> + <fo:bookmark-title> + <xsl:value-of select="."/> + </fo:bookmark-title> + </fo:bookmark> + </xsl:for-each> + </fo:bookmark-tree> + + + + + <fo:page-sequence master-reference="titel" force-page-count="no-force"> + + <fo:flow flow-name="xsl-region-body" + font-family="Open Sans, helvetica, arial, sans-serif" font-size="10px" + line-height="1.5em"> + <fo:block margin-left="-9%" width="25px" max-width="50px"> + <fo:external-graphic + src="http://zfdg.de/sites/default/files/logo-zfdg_02.png"/> + </fo:block> + <fo:block padding-before="10px" font-size="18px"> + <xsl:text>Zeitschrift für digitale Geisteswissenschaften</xsl:text> + </fo:block> + <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px" + border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> + <fo:block padding-before="10px" font-size="12px"> + <xsl:text>Artikel aus:</xsl:text> + </fo:block> + <fo:block font-size="12px" font-family="Open Sans, helvetica, arial, sans-serif" + >Zeitschrift für digitale Geisteswissenschaften </fo:block> + <fo:block padding-before="10px" font-size="12px"> + <xsl:text>Titel:</xsl:text> + </fo:block> + <fo:block font-size="12px" font-family="Open Sans, helvetica, arial, sans-serif"> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title[@level]"/> + <!-- <xsl:text>. Artikel aus: Sonderband 1 der ZfdG: Grenzen und Möglichkeiten der Digital Humanities. Hg. von Constanze Baum und Thomas Stäcker. 2015. DOI: </xsl:text> + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> + <xsl:text>http://dx.doi.org/</xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']" + /> + </xsl:attribute> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']" + /> + </fo:basic-link>--> + + </fo:block> + <fo:block> + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]"> + <fo:leader leader-length="25%" rule-thickness="0.5pt" + leader-pattern="rule"/> + </xsl:if> + </fo:block> + <xsl:choose> + <xsl:when + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]"> + + <xsl:for-each + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt"> + <fo:block font-size="12px" padding-before="10px"> + <fo:block> + <xsl:text>Autor/in:</xsl:text> + </fo:block> + <fo:inline> + <xsl:value-of + select="tei:resp/tei:persName/tei:name/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:value-of + select="tei:resp/tei:persName/tei:name/tei:surname"/> + </fo:inline> + </fo:block> + <fo:block font-size="12px" padding-before="10px"> + + <xsl:text>Kontakt: </xsl:text> + + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> + <xsl:text>mailto:</xsl:text> + <xsl:value-of select="tei:resp/tei:persName/tei:email"/> + </xsl:attribute> + <xsl:value-of select="tei:resp/tei:persName/tei:email"/> + </fo:basic-link> + </fo:block> + <fo:block font-size="12px"> + <xsl:text>Institution: </xsl:text> + <xsl:value-of select="tei:orgName"/> + </fo:block> + <fo:block font-size="12px"> + + <xsl:text>GND: </xsl:text> + + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> + <xsl:text>http://d-nb.info/gnd/</xsl:text> + <xsl:value-of + select="tei:resp/tei:persName/tei:idno[@type = 'gnd']" + /> + </xsl:attribute> + <xsl:value-of + select="tei:resp/tei:persName/tei:idno[@type = 'gnd']"/> + </fo:basic-link> + + <xsl:if test="tei:resp/tei:persName/tei:idno[@type = 'orcid']"> + <xsl:text> ORCID: </xsl:text> + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> + <xsl:text>https://orcid.org/</xsl:text> + <xsl:value-of + select="tei:resp/tei:persName/tei:idno[@type = 'orcid']" + /> + </xsl:attribute> + <xsl:value-of + select="tei:resp/tei:persName/tei:idno[@type = 'orcid']" + /> + </fo:basic-link> + </xsl:if> + </fo:block> + <fo:block> + <fo:leader leader-length="25%" rule-thickness="0.5pt" + leader-pattern="rule"/> + </fo:block> + + </xsl:for-each> + </xsl:when> + <xsl:otherwise> + <fo:block font-size="12px" padding-before="10px"> + <fo:block> + <xsl:text>Autor/in:</xsl:text> + </fo:block> + <fo:inline> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name/tei:surname" + /> + </fo:inline> + </fo:block> + <fo:block font-size="12px" padding-before="10px"> + <fo:block> + <xsl:text>Kontakt: </xsl:text> + </fo:block> + <fo:inline> + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination" + >../aac-fackel/aac-fackel_2015.pdf <xsl:text>mailto:</xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:email" + /> + </xsl:attribute> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:email" + /> + </fo:basic-link> + </fo:inline> + </fo:block> + <fo:block font-size="12px" padding-before="10px"> + <fo:block> + <xsl:text>Institution: </xsl:text> + </fo:block> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:orgName" + /> + </fo:block> + <fo:block font-size="12px" padding-before="10px"> + <fo:block> + <xsl:text>GND: </xsl:text> + </fo:block> + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> + <xsl:text>http://d-nb.info/gnd/</xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type = 'gnd']" + /> + </xsl:attribute> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type = 'gnd']" + /> + </fo:basic-link> + </fo:block> + <fo:block font-size="12px" padding-before="10px"> + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type = 'orcid']"> + <fo:block> + <xsl:text> ORCID: </xsl:text> + </fo:block> + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> + <xsl:text>https://orcid.org/</xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type = 'orcid']" + /> + </xsl:attribute> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type = 'orcid']" + /> + </fo:basic-link> + </xsl:if> + </fo:block> + + </xsl:otherwise> + </xsl:choose> + <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px" + border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> + + <fo:block font-size="12px" padding-before="10px"> + <fo:block> + <xsl:text>DOI des Artikels: </xsl:text> + </fo:block> + + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> + <xsl:text>http://dx.doi.org/</xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']" + /> + </xsl:attribute> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']" + /> + </fo:basic-link> + </fo:block> + <fo:block font-size="12px" padding-before="10px"> + + <fo:block> + <xsl:text>Nachweis im OPAC der Herzog August Bibliothek: </xsl:text> + </fo:block> + + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> + <xsl:text>http://opac.lbs-braunschweig.gbv.de/DB=2/XMLPRS=N/PPN?PPN=</xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'ppn']" + /> + </xsl:attribute> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'ppn']" + /> + </fo:basic-link> + </fo:block> + <fo:block font-size="12px" padding-before="10px"> + <fo:block> + <xsl:text>Erstveröffentlichung: </xsl:text> + </fo:block> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:date" + /> + </fo:block> + <fo:block font-size="12px" padding-before="10px"> + + <fo:block> + <xsl:text>Lizenz:</xsl:text> + </fo:block> + <xsl:text> Sofern nicht anders angegeben </xsl:text> + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> + <xsl:text>http://creativecommons.org/licenses/by-sa/4.0/</xsl:text> + </xsl:attribute> + <xsl:element name="fo:external-graphic"> + <xsl:attribute name="src"> + <xsl:text>https://licensebuttons.net/l/by-sa/4.0/80x15.png</xsl:text> + </xsl:attribute> + </xsl:element> + <xsl:element name="img"> + <xsl:attribute name="alt"> + <xsl:text>Creative Commons Lizenzvertrag</xsl:text> + </xsl:attribute> + <xsl:attribute name="src"> + <xsl:text>https://licensebuttons.net/l/by-sa/4.0/80x15.png</xsl:text> + </xsl:attribute> + </xsl:element> + </fo:basic-link> + </fo:block> + + <fo:block font-size="12px" padding-before="10px"> + + <fo:block> + <xsl:text>Medienlizenzen: </xsl:text> + </fo:block> + + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:encodingDesc/tei:editorialDecl[3]"/> + </fo:block> + <fo:block font-size="12px" padding-before="10px"> + + <fo:block> + <xsl:text>Letzte Überprüfung aller Verweise: </xsl:text> + </fo:block> + + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:encodingDesc/tei:editorialDecl[4]/tei:p/tei:date" + /> + </fo:block> + <xsl:choose> + <xsl:when + test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'gnd']"> + <fo:block font-size="12px" padding-before="10px"> + + + + <fo:block> + <xsl:text>GND-Verschlagwortung: </xsl:text> + </fo:block> + + + <xsl:for-each + select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'gnd']/tei:term"> + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> + <xsl:text>http://d-nb.info/gnd/</xsl:text> + <xsl:value-of select="./tei:ref/@target"/> + </xsl:attribute> + <xsl:value-of select="."/> + </fo:basic-link> + <xsl:text> | </xsl:text> + </xsl:for-each> + </fo:block> + </xsl:when> + </xsl:choose> + <xsl:choose> + <xsl:when + test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'tadirah']"> + <fo:block font-size="12px" padding-before="10px"> + <fo:block> + <xsl:text>TaDiRAH-Verschlagwortung: </xsl:text> + </fo:block> + <xsl:for-each + select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'tadirah']/tei:term"> + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> + <xsl:text>http://tadirah.dariah.eu/vocab/index.php?tema=</xsl:text> + <xsl:value-of select="./tei:ref/@target"/> + </xsl:attribute> + + <xsl:value-of select="."/> + </fo:basic-link> + <xsl:text> | </xsl:text> + </xsl:for-each> + </fo:block> + </xsl:when> + + </xsl:choose> + <fo:block font-size="12px" padding-before="10px"> + <fo:block> + <xsl:text>Zitierweise: </xsl:text> + </fo:block> + + + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"/> + + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']"> + <xsl:text>, </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </xsl:if> + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']"> + <xsl:text>, </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </xsl:if> + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']"> + <xsl:text>, </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </xsl:if> + + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']"> + <xsl:text>, </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </xsl:if> + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']"> + <xsl:text>, </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </xsl:if> + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']"> + <xsl:text>, </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </xsl:if> + + <xsl:text>: </xsl:text> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title"/> + <xsl:text>. In: Zeitschrift für digitale Geisteswissenschaften. Wolfenbüttel 2019.</xsl:text> + <xsl:text> </xsl:text> + + <xsl:text> PDF Format ohne Paginierung.</xsl:text> + <!-- <xsl:text>Eingesehen am: </xsl:text> + <xsl:value-of select="$now"/>. --> + <xsl:text> Als text/html abrufbar unter DOI: </xsl:text> + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> + <xsl:text>http://dx.doi.org/</xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']" + /> + </xsl:attribute> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']" + /> + </fo:basic-link> + <xsl:text>.</xsl:text> + </fo:block> + <!-- <fo:block page-break-before="always"></fo:block> --> + </fo:flow> + + + </fo:page-sequence> + <fo:page-sequence master-reference="standard" initial-page-number="1"> + + <fo:static-content flow-name="xsl-region-before"> + <fo:block font-family="Open Sans, helvetica, arial" font-size="6pt" + padding="5pt" text-align="left"> + <!--<xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno"/> + <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:author/tei:name"/> + <xsl:text> : </xsl:text>--> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title[@level]"/> + <xsl:text> | ZfdG 2019</xsl:text> + <!-- <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno"/> + <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title"/> --> + <fo:block> + <fo:leader leader-length="100%" rule-thickness="0.5pt" + leader-pattern="rule"/> + </fo:block> + </fo:block> + </fo:static-content> + <fo:static-content flow-name="xsl-footnote-separator"> + <fo:block> + <fo:leader leader-length="50%" rule-thickness="0.5pt" leader-pattern="rule" + /> + </fo:block> + </fo:static-content> + + <!-- <fo:static-content flow-name="xsl-region-after"> --> + <!-- <fo:block font-family="Open Sans, helvetica, arial" font-size="8pt" text-align="center"><hr/>Seite <fo:page-number/> --> + <!-- <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title"/> --> + <!-- </fo:block> --> + <!-- </fo:static-content> --> + + <fo:flow flow-name="xsl-region-body"> + + + <fo:block font-size="16px" padding-before="25px" text-align="center" + font-family="Open Sans, helvetica, arial"> + <fo:inline> + + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name/tei:surname"/> + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]"> + <xsl:text>, </xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name/tei:surname" + /> + </xsl:if> + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]"> + <xsl:text>, </xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name/tei:surname" + /> + </xsl:if> + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]"> + <xsl:text>, </xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name/tei:surname" + /> + </xsl:if> + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]"> + <xsl:text>, </xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name/tei:surname" + /> + </xsl:if> + + + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]"> + <xsl:text>, </xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name/tei:surname" + /> + </xsl:if> + + + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]"> + <xsl:text>, </xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name/tei:forename"/> + <xsl:text> </xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name/tei:surname" + /> + </xsl:if> + + + </fo:inline> + </fo:block> + + <fo:block font-size="16px" padding-before="10px" + font-family="Open Sans, helvetica, arial" text-align="center" + font-weight="bold"> + <xsl:apply-templates + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title[@level]" + /> + </fo:block> + + <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px" + border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> + <fo:block font-size="10px" padding-before="10px"> </fo:block> + + + <fo:block> + <fo:block space-before="15pt" font-family="Open Sans, helvetica, arial" + font-size="10pt"> + <xsl:text>Abstracts</xsl:text> + </fo:block> + <xsl:for-each select="//tei:text"> + <xsl:apply-templates/> + </xsl:for-each> + </fo:block> + </fo:flow> + + </fo:page-sequence> + </fo:root> + + </xsl:template> + + + <!-- <xsl:template match="/tei:TEI/tei:text/tei:body//tei:div/tei:head"> + <fo:block id="{generate-id()}"> + <apply-templates/> + </fo:block> + </xsl:template> + + <xsl:template match="Inhalt"> + <fo:block font-size="18pt" font-weight="bold" text-align="center" space-after="6mm"> + Inhaltsverzeichnis + </fo:block> + <xsl:for-each select="/tei:TEI/tei:text/tei:body//tei:div/tei:head"> + <xsl:call-template name="ivz.zeile"></xsl:call-template> + </xsl:for-each> + </xsl:template> + + <xsl:template name="ivz.zeile"> + <fo:block text-align="justify"> + <fo:table width="160mm"> + <fo:table-column column-number="1" column-width="10mm"> + <fo:table-column column-number="2" column-width="150mm"> + <fo:table-body> + <fo:table-row> + <fo:table-cell column-number="1"> + <fo:block> + <xsl:number level="single" count="/tei:TEI/tei:text/tei:body//tei:div/tei:head" format="1."/> + </fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:table-cell column-number="2"> + <fo:block> + <xsl:value-of select="tei:head"/> + <fo:inline> + <fo:leader leader-pattern="/tei:TEI/tei:text/tei:body//tei:div/tei:head"> + </fo:leader> + <fo:page-number-citation ref-id="{generate-id()}"/> + </fo:inline> + </fo:block> + </fo:table-cell> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table-column> + <fo:table-body></fo:table-body> + </fo:table-column> + <fo:table-body></fo:table-body> + </fo:table> + + </fo:block> + + + </xsl:template> --> + <xsl:template match="tei:head"> + <fo:block id="{generate-id()}" space-before="10pt" font-size="12pt" font-weight="bold" space-after="10pt" + text-align="left"> + <xsl:value-of select="."/> + </fo:block> + </xsl:template> + + <xsl:template match="tei:p"> + <xsl:choose> + + + <xsl:when test="tei:quote[@type = 'grosszitat']"> + <!-- <fo:block padding-left="25px" margin-top="25px" margin-bottom="25px" border-left="2px solid #efefef" display="block"> --> + <fo:block space-before="15pt" padding-left="25px" space-after="10pt" + font-family="Open Sans, helvetica, arial" border-left="2px solid #efefef" + font-size="8pt" line-height="1.5em"> + + <xsl:apply-templates/> + </fo:block> + + </xsl:when> + <xsl:otherwise> + <fo:block space-after="5pt" + font-family="Open Sans, helvetica, arial" font-size="8pt" line-height="1.5em"> + + <xsl:apply-templates/> + </fo:block> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="tei:div[@type = 'abbildungsnachweis']"> +<br/> + <!-- <fo:block page-break-before="always"/> --> + <!-- <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px" + border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> --> + <xsl:apply-templates/> + </xsl:template> + <xsl:template match="tei:div[@type = 'break']"> + <fo:block page-break-before="always"/> + <fo:block page-break-before="always"/> + </xsl:template> + + <xsl:template match="tei:div[@type = 'bibliography']"> + <fo:block page-break-before="always"/> + <fo:block id="appendix-a"/> + <!-- <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px" + border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> --> + <xsl:apply-templates/> + <fo:block id="appendix-b"/> + </xsl:template> + + <xsl:template match="tei:div[@type = 'bibliography2']"> + + <!-- <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px" + border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> --> + <xsl:apply-templates/> + + </xsl:template> + + <xsl:template match="tei:div[@type = 'glossar']"> + <fo:block page-break-before="always"/> + <!-- <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px" + border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> --> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="tei:argument/tei:p"> + + <fo:block space-before="15pt" space-after="10pt" text-indent="5mm" + font-family="Open Sans, helvetica, arial" line-height="0.75em"> + <fo:inline font-size="8pt"> + + <xsl:apply-templates/> + </fo:inline> + </fo:block> + </xsl:template> + + <xsl:template match="tei:pb"> + <fo:inline font-size="10pt"> + <xsl:text> || </xsl:text> + <xsl:text> [</xsl:text> + <xsl:choose> + <xsl:when test="@n"> + <xsl:value-of select="@n"/> + </xsl:when> + </xsl:choose> + <xsl:text>] </xsl:text> + </fo:inline> + </xsl:template> + + <xsl:template match="tei:note"> + + <xsl:choose> + <xsl:when test="@type = 'annotation'"> + <fo:footnote> + <fo:inline font-size="75%" baseline-shift="super"> + <xsl:number level="single" format="a" count="tei:note[@type = 'annotation']" + /> + </fo:inline> + <fo:footnote-body font-family="Open Sans, helvetica, arial" font-size="8pt" + font-weight="normal" font-style="normal" text-align="justify"> + <fo:block> + <fo:inline font-size="75%" baseline-shift="super"> + <xsl:number level="single" format="a" + count="tei:note[@type = 'annotation']"/> + </fo:inline> + <xsl:apply-templates/> + </fo:block> + </fo:footnote-body> + </fo:footnote> + </xsl:when> + </xsl:choose> + <xsl:choose> + <xsl:when test="@type = 'footnote'"> + <fo:footnote> + <fo:inline font-size="45%" baseline-shift="super"> + <xsl:number level="any" count="tei:note[@type = 'footnote']"/> + </fo:inline> + <fo:footnote-body font-family="Open Sans, helvetica, arial" font-size="7pt" + font-weight="normal" font-style="normal" line-height="1.0em"> + <fo:block text-indent="0"> + <fo:inline baseline-shift="super" font-size="45%"> + <xsl:number level="any" count="tei:note[@type = 'footnote']"/> + </fo:inline> + <xsl:apply-templates/> + </fo:block> + </fo:footnote-body> + </fo:footnote> + </xsl:when> + + </xsl:choose> + + <xsl:choose> + <xsl:when test="@type = 'commentar'"> + <fo:block space-before="15pt" space-after="10pt" + font-family="Open Sans, helvetica, arial" font-size="10pt"> + <xsl:apply-templates/> + </fo:block> + </xsl:when> + </xsl:choose> + <!-- ENDNOTEN + <xsl:choose> + <xsl:when test="@type='footnote'"> + <fo:block><fo:leader leader-pattern="rule"/></fo:block> <xsl:apply-templates select="." mode="endnote"/> + </xsl:when> + </xsl:choose>--> + <xsl:choose> + <xsl:when test="@type = 'textapparat'"> + <fo:block space-before="15pt" space-after="10pt" + font-family="Open Sans, helvetica, arial" font-size="10pt"> + <xsl:apply-templates/> + </fo:block> + </xsl:when> + </xsl:choose> + </xsl:template> + + + <xsl:template match="tei:list"> + <xsl:choose> + <xsl:when test="@type = 'unordered'"> + <!-- list start --> + <fo:list-block> + <!-- list item --> + <xsl:for-each select="tei:item"> + <fo:list-item> + <!-- insert a bullet --> + <fo:list-item-label end-indent="label-end()"> + <fo:block> + <fo:inline/> + </fo:block> + </fo:list-item-label> + <!-- list text --> + <fo:list-item-body start-indent="body-start()"> + <fo:block font-family="Open Sans, helvetica, arial" font-size="8pt" + line-height="1.5em"> + <xsl:text>- </xsl:text> + <xsl:apply-templates select="."/> + </fo:block> + </fo:list-item-body> + </fo:list-item> + </xsl:for-each> + + </fo:list-block> + <!-- end list --> + </xsl:when> + + <xsl:when test="@type = 'gloss'"> + + + <fo:table> + <fo:table-body> + <xsl:for-each select="tei:label"> + <fo:table-row> + + <fo:table-cell width="60mm" padding-top="10px"> + <fo:block font-family="Open Sans, helvetica, arial" + font-size="8pt"> + <xsl:apply-templates select="tei:term"/> + </fo:block> + </fo:table-cell> + <fo:table-cell padding-top="10px"> + <fo:block font-family="Open Sans, helvetica, arial" + font-size="8pt"> + <xsl:apply-templates + select="following-sibling::tei:item[position() = 1]/tei:gloss" + /> + </fo:block> + </fo:table-cell> + + + </fo:table-row> + + </xsl:for-each> + + </fo:table-body> + </fo:table> + + + + <!-- end list --> + + </xsl:when> + + <xsl:when test="@type = 'ordered'"> + <!-- list start --> + <fo:list-block> + <!-- list item --> + <xsl:for-each select="tei:item"> + <fo:list-item> + <!-- insert a bullet --> + <fo:list-item-label end-indent="label-end()"> + <fo:block> + <fo:inline/> + </fo:block> + </fo:list-item-label> + <!-- list text --> + <fo:list-item-body start-indent="body-start()"> + + <fo:block font-family="Open Sans, helvetica, arial" font-size="8pt" + line-height="1.5em"> + <xsl:number count="tei:item" format="1."/> + <xsl:text> </xsl:text> + <xsl:apply-templates select="."/> + </fo:block> + </fo:list-item-body> + </fo:list-item> + </xsl:for-each> + + </fo:list-block> + <!-- end list --> + </xsl:when> + </xsl:choose> + </xsl:template> + + <xsl:template match="tei:table"> +<fo:block page-break-before="always"></fo:block> + <fo:table> + <fo:table-body> + <fo:table-row> + <fo:table-cell width="50mm" padding-top="10px" border-style="none" + border-width="0.5pt"> + <fo:block font-family="Open Sans, helvetica, arial" font-size="8pt"> + <xsl:apply-templates select="tei:head[1]"/> + </fo:block> + </fo:table-cell> + <fo:table-cell width="50mm" padding-top="10px" border-style="none" + border-width="0.5pt"> + <fo:block font-family="Open Sans, helvetica, arial" font-size="8pt"> + <xsl:apply-templates select="tei:head[2]"/> + </fo:block> + </fo:table-cell> + </fo:table-row> + <xsl:for-each select="tei:row"> + <fo:table-row> + <fo:table-cell width="50mm" padding-top="10px" border-style="none" + border-width="0.5pt"> + <fo:block font-family="Open Sans, helvetica, arial" font-size="8pt" text-align="left"> + <xsl:apply-templates select="tei:cell[1]"/> + </fo:block> + </fo:table-cell> + <fo:table-cell width="50mm" padding-top="10px" border-style="none" + border-width="0.5pt"> + <fo:block font-family="Open Sans, helvetica, arial" font-size="8pt" text-align="center"> + <xsl:apply-templates select="tei:cell[2]"/> + </fo:block> + </fo:table-cell> + <!-- <fo:table-cell width="50mm" padding-top="10px" border-style="solid" + border-width="0.5pt"> + <fo:block font-family="Open Sans, helvetica, arial" font-size="8pt"> + <xsl:apply-templates select="tei:cell[3]"/> + </fo:block> + </fo:table-cell> --> + </fo:table-row> + + </xsl:for-each> + + </fo:table-body> + </fo:table> + <fo:block> + <fo:leader leader-length="25%" rule-thickness="0.5pt" + leader-pattern="rule"/> + </fo:block> + <fo:block> + <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial"> + <xsl:apply-templates select="tei:trailer[1]"></xsl:apply-templates> + </fo:inline> + </fo:block> + <fo:block> + <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial"> + <xsl:apply-templates select="tei:trailer[2]"></xsl:apply-templates> + </fo:inline> + </fo:block> + </xsl:template> + +<xsl:template match="tei:trailer"> + <xsl:apply-templates></xsl:apply-templates> +</xsl:template> + + <xsl:template match="tei:graphic"> + <xsl:choose> + <xsl:when test="@url"> + <hr/> + <fo:block id="{@xml:id}" margin-left="150px"> + + <fo:inline font-size="8pt" font-family="Open Sans, helvetica, arial"> + <xsl:element name="fo:external-graphic"> + <xsl:attribute name="src"> + <xsl:value-of select="substring-after(@url, '.../')"/> + </xsl:attribute> + + <xsl:attribute name="content-width">300px</xsl:attribute> + <xsl:attribute name="content-height">250px</xsl:attribute> + + + + </xsl:element> + </fo:inline> + </fo:block> + <xsl:for-each select="tei:desc"> + <fo:block line-height="1.0em" text-indent="0"> + <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial"> + <xsl:apply-templates select="."/> + </fo:inline> + </fo:block> + </xsl:for-each> + </xsl:when> + </xsl:choose> + </xsl:template> + + + <xsl:template match="tei:figure/tei:media"> + <xsl:choose> + <xsl:when test="@type = 'svg'"> + <xsl:choose> + <xsl:when test="@url"> + <hr/> + <fo:block id="{@xml:id}" margin-left="150px"> + <fo:inline font-size="8pt" font-family="Open Sans, helvetica, arial"> + <xsl:element name="fo:external-graphic"> + <xsl:attribute name="src"> + <xsl:text>medien/</xsl:text> + <xsl:value-of + select="substring-before(substring-after(@url, '.../medien/svg/'), '.svg')"/> + <xsl:text>.jpg</xsl:text> + </xsl:attribute> + <xsl:attribute name="content-width">300px</xsl:attribute> + <xsl:attribute name="content-height">250px</xsl:attribute> + </xsl:element> + </fo:inline> + </fo:block> + <xsl:for-each select="tei:desc"> + <fo:block line-height="1.0em" text-indent="0"> + <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial"> + <xsl:apply-templates select="."/> + </fo:inline> + </fo:block> + </xsl:for-each> + </xsl:when> + </xsl:choose> + </xsl:when> + </xsl:choose> + </xsl:template> + + + <xsl:template match="tei:lg"> + <xsl:for-each select="tei:l"> + <fo:block line-height="1.0em" text-indent="0"> + <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial"> + <xsl:apply-templates select="."/> + </fo:inline> + </fo:block> + </xsl:for-each> + </xsl:template> + + + + <xsl:template match="tei:ref"> + + <xsl:choose> + + <xsl:when test="@type = 'bibliography'"> + + + <fo:basic-link internal-destination="appendix-a" color="grey"> + <xsl:value-of select="."/> + </fo:basic-link> + + + + + </xsl:when> + <xsl:when test="@type = 'graphic'"> + <xsl:variable name="graphic"> + <xsl:value-of select="substring-after(@target, '#')"/> + </xsl:variable> + + <fo:basic-link internal-destination="{$graphic}" color="grey" + font-family="Open Sans, helvetica, arial" line-height="1.0em"> + <xsl:value-of select="."/> + </fo:basic-link> + + + + + </xsl:when> + <xsl:when test="@type = 'intern'"> + + + <xsl:apply-templates/> + + </xsl:when> + <xsl:otherwise> + + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> + <xsl:value-of select="@target"/> + </xsl:attribute> + <xsl:apply-templates/> + </fo:basic-link> + </xsl:otherwise> + </xsl:choose> + + + </xsl:template> + + <xsl:template match="tei:ref[parent::tei:desc]"> + <xsl:choose> + <xsl:when test="@type = 'extern'"> + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> + <xsl:value-of select="@target"/> + </xsl:attribute> + <xsl:apply-templates/> + </fo:basic-link> + </xsl:when> + <xsl:otherwise> + <fo:basic-link internal-destination="appendix-b" color="grey"> + + <xsl:value-of select="."/> + + </fo:basic-link> + + </xsl:otherwise> + </xsl:choose> + + </xsl:template> + + <xsl:template match="tei:hi"> + <xsl:choose> + <xsl:when test="@rend = 'italics' or @rend = 'italic'"> + <fo:inline font-family="Open Sans, helvetica, arial" font-style="italic" + font-size="8pt"> + <xsl:apply-templates/> + </fo:inline> + </xsl:when> + <xsl:when test="@rend = 'sans_serif'"> + <fo:inline font-family="Open Sans, helvetica, arial,sans-serif;"> + <xsl:apply-templates/> + </fo:inline> + </xsl:when> + <xsl:when test="@rend = 'bold'"> + <fo:inline font-weight="bold"> + <xsl:apply-templates/> + </fo:inline> + </xsl:when> + <xsl:when test="@rend = 'smallCaps' or @rend = 'small-caps'"> + <fo:inline font-variant="small-caps;"> + <xsl:apply-templates/> + </fo:inline> + </xsl:when> + <xsl:when test="@rendition = 'sup'"> + <fo:inline text-decoration="sup" + font-family="Open Sans, helvetica, arial,sans-serif;"> + <xsl:apply-templates/> + </fo:inline> + </xsl:when> + <xsl:when test="@rendition = 'sub'"> + <fo:inline vertical-align="sub" + font-family="Open Sans, helvetica, arial,sans-serif;"> + <xsl:apply-templates/> + </fo:inline> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="tei:bibl"> + <xsl:choose> + <xsl:when test="child::tei:title[@type = 'desc']"> + <fo:inline font-family="Open Sans, helvetica, arial" font-style="italic" + font-size="8pt"> + <xsl:apply-templates select="tei:title"/> + </fo:inline> + </xsl:when> + <xsl:otherwise> + <fo:inline font-size="10pt" font-family="Open Sans, helvetica, arial"> + <xsl:apply-templates/> + </fo:inline> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="tei:foreign"> + <xsl:choose> + <xsl:when test="@xml:lang = 'ara'"> + <fo:inline font-family="Arabic Typesetting, Open Sans"> + <xsl:apply-templates/> + </fo:inline> + </xsl:when> + <xsl:otherwise> + <fo:inline font-family="arial"> + <xsl:apply-templates/> + </fo:inline> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + <xsl:template match="tei:listBibl"> + <xsl:choose> + <xsl:when test="parent::tei:div[@type = 'bibliography']"> + + <fo:list-block font-size="10pt" font-family="Open Sans, helvetica, arial"> + <xsl:for-each select="tei:bibl"> + <fo:list-item> + <fo:list-item-label> + <fo:block> </fo:block> + </fo:list-item-label> + <fo:list-item-body> + <fo:block font-size="10px" padding-before="10px"> + + <xsl:apply-templates/> + </fo:block> + </fo:list-item-body> + </fo:list-item> + </xsl:for-each> + </fo:list-block> + + </xsl:when> + <xsl:otherwise> + <fo:block> + <fo:list-block font-size="10pt" font-family="Open Sans, helvetica, arial"> + <xsl:for-each select="tei:bibl"> + <fo:list-item> + <fo:list-item-label> + <fo:block> </fo:block> + </fo:list-item-label> + <fo:list-item-body> + <fo:block font-size="10px" padding-before="10px"> + + <xsl:apply-templates/> + </fo:block> + </fo:list-item-body> + </fo:list-item> + </xsl:for-each> + </fo:list-block> + </fo:block> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="tei:ptr"> + <xsl:apply-templates/> + <xsl:choose> + <xsl:when test="@type = 'opac'"> + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> [<xsl:value-of select="$opac" + /><xsl:value-of select="@cRef"/></xsl:attribute> + <xsl:text> +[Nachweis im OPAC]</xsl:text> + </fo:basic-link> + </xsl:when> + <xsl:when test="@type = 'gbv'"> + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> [<xsl:value-of select="$gbv" + /><xsl:value-of select="@cRef"/></xsl:attribute> + <xsl:text> +[Nachweis im GBV]</xsl:text> + </fo:basic-link> + </xsl:when> + <xsl:when test="@type = 'varia'"> + <fo:basic-link color="#9d3a00"> + <xsl:attribute name="external-destination"> + <xsl:value-of select="@cRef"/> + </xsl:attribute> + <xsl:text> +[online]</xsl:text> + </fo:basic-link> + </xsl:when> + </xsl:choose> + </xsl:template> + + + + <xsl:template match="tei:desc[@type = 'graphic']"> + + <fo:block> + <fo:list-block font-size="10pt" font-family="Open Sans, helvetica, arial"> + <xsl:for-each select="."> + <fo:list-item> + <fo:list-item-label> + <fo:block> </fo:block> + </fo:list-item-label> + <fo:list-item-body> + <fo:block font-size="10px" padding-before="10px"> + <xsl:variable name="graphic2"> + <xsl:value-of + select="substring-after(tei:ref[@type = 'graphic']/@target, '#')" + /> + </xsl:variable> + <fo:basic-link internal-destination="{$graphic2}" color="grey"> + <xsl:text>Abb. </xsl:text> + <xsl:number count="tei:desc[@type = 'graphic']"/> + </fo:basic-link> + <xsl:text>: </xsl:text> + <xsl:apply-templates/> + </fo:block> + </fo:list-item-body> + </fo:list-item> + </xsl:for-each> + </fo:list-block> + </fo:block> + </xsl:template> + + <xsl:template match="tei:quote"> + <xsl:text>»</xsl:text> + <xsl:apply-templates/> + <xsl:text>«</xsl:text> + + </xsl:template> + + + + + +</xsl:stylesheet> diff --git a/scripts/zfdg_sb03_doi.xsl b/scripts/zfdg_sb03_doi.xsl new file mode 100644 index 0000000000000000000000000000000000000000..a2dd728e8433a677002a66661d8c891ec1d048b4 --- /dev/null +++ b/scripts/zfdg_sb03_doi.xsl @@ -0,0 +1,281 @@ +<?xml version="1.0" encoding="UTF-8"?> + + +<xsl:stylesheet xmlns:html="http://www.w3.org/1999/html" xmlns:tei="http://www.tei-c.org/ns/1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" + exclude-result-prefixes="tei html xml xsl"> + + <xsl:output method="xml" version="1.0" encoding="utf-8" indent="no"/> + <xsl:template match="tei:TEI"> + + <resource xmlns='http://da-ra.de/schema/kernel-4' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://da-ra.de/schema/kernel-4 http://www.da-ra.de/fileadmin/media/da-ra.de/Technik/4.0/dara.xsd'> + <resourceType>Text</resourceType> + <resourceIdentifier> + <identifier> + <xsl:value-of + select="/tei:TEI/tei:teiHeader[1]/tei:fileDesc[1]/tei:titleStmt[1]/tei:title[1]/tei:biblStruct[1]/tei:analytic[1]/tei:idno[@type = 'zfdg']" + /> + </identifier> + <currentVersion>1</currentVersion> + </resourceIdentifier> + <titles> + <title> + <language>de</language> + <titleName> + <xsl:value-of + select="/tei:TEI/tei:teiHeader[1]/tei:fileDesc[1]/tei:titleStmt[1]/tei:title[1]/tei:biblStruct[1]/tei:analytic[1]/tei:title[1][@level = 'a']" + /> + </titleName> + </title> + </titles> + <collectiveTitles> + <collectiveTitle> + <language>de</language> + <titleName>Wie Digitalität die Geisteswissenschaften + verändert. Neue Forschungsgegenstände und Methoden. [Ausgewählte Beiträge der Tagung 2017 an der Universität Bayreuth im Rahmen der Symposienreihe Digitalität in den Geisteswissenschaften]</titleName> + <numbering/> + </collectiveTitle> + </collectiveTitles> + <creators> + <creator> + <person> + <firstName> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename" + /> + </firstName> + <middleName/> + <lastName> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </lastName> + <personIDs> + <personID> + <identifierURI> + <xsl:text>http://d-nb.info/</xsl:text><xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type ='gnd']" + /> + </identifierURI> + <identifierSchema>GND</identifierSchema> + </personID> + </personIDs> + </person> + </creator> + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]"> + <creator> + <person> + <firstName> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename" + /> + </firstName> + <middleName/> + <lastName> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </lastName> + <personIDs> + <personID> + <identifier> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:idno[@type = 'gnd']" + /> + </identifier> + <identifierSchema>GND</identifierSchema> + <schemaURI> + <xsl:text>http://d-nb.info/gnd/</xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:idno[@type = 'gnd']" + /> + </schemaURI> + </personID> + </personIDs> + </person> + </creator> + </xsl:if> + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]"> + <creator> + <person> + <firstName> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename" + /> + </firstName> + <middleName/> + <lastName> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </lastName> + <personIDs> + <personID> + <identifier> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:idno[@type = 'gnd']" + /> + </identifier> + <identifierSchema>GND</identifierSchema> + <schemaURI> + <xsl:text>http://d-nb.info/gnd/</xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:idno[@type = 'gnd']" + /> + </schemaURI> + </personID> + </personIDs> + </person> + </creator> + </xsl:if> + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]"> + <creator> + <person> + <firstName> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename" + /> + </firstName> + <middleName/> + <lastName> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </lastName> + <personIDs> + <personID> + <identifier> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:idno[@type = 'gnd']" + /> + </identifier> + <identifierSchema>GND</identifierSchema> + <schemaURI> + <xsl:text>http://d-nb.info/gnd/</xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:idno[@type = 'gnd']" + /> + </schemaURI> + </personID> + </personIDs> + </person> + </creator> + </xsl:if> + <xsl:if + test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]"> + <creator> + <person> + <firstName> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename" + /> + </firstName> + <middleName/> + <lastName> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname" + /> + </lastName> + <personIDs> + <personID> + <identifier> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:idno[@type = 'gnd']" + /> + </identifier> + <identifierSchema>GND</identifierSchema> + <schemaURI> + <xsl:text>http://d-nb.info/gnd/</xsl:text> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:idno[@type = 'gnd']" + /> + </schemaURI> + </personID> + </personIDs> + </person> + </creator> + </xsl:if> + </creators> + <dataURLs> + <dataURL> + <xsl:value-of + select="/tei:TEI/tei:teiHeader[1]/tei:fileDesc[1]/tei:titleStmt[1]/tei:title[1]/tei:biblStruct[1]/tei:analytic[1]/tei:idno[@type = 'url']" + /> + </dataURL> + </dataURLs> + <doiProposal> + <xsl:value-of + select="/tei:TEI/tei:teiHeader[1]/tei:fileDesc[1]/tei:titleStmt[1]/tei:title[1]/tei:biblStruct[1]/tei:analytic[1]/tei:idno[@type = 'doi']" + /> + </doiProposal> + <publicationDate> + <year> + <xsl:value-of + select="substring-before(/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:date/@when, '-')" + /> + </year> + </publicationDate> + <publicationPlace>Herzog August Bibliothek Wolfenbüttel</publicationPlace> + <availability> + <availabilityType>Delivery</availabilityType> + <availabilityFree> + <language>de</language> + <freetext>Freie online Ressource mit Downloadmöglichkeit</freetext> + </availabilityFree> + </availability> + <rights> + <right> + <language>de</language> + <freetext>CC BY-SA 4.0</freetext> + </right> + </rights> + <resourceLanguage>ger</resourceLanguage> + <freeKeywords> + <freeKeyword> + <language>de</language> + <keywords> + <xsl:choose> + <xsl:when + test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords/tei:term[1]"> + <xsl:element name="keyword"> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords/tei:term[1]" + /> + </xsl:element> + </xsl:when> + <xsl:when + test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords/tei:term[2]"> + <xsl:element name="keyword"> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords/tei:term[2]" + /> + </xsl:element> + </xsl:when> + <xsl:when + test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords/tei:term[3]"> + <xsl:element name="keyword"> + <xsl:value-of + select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords/tei:term[3]" + /> + </xsl:element> + </xsl:when> + </xsl:choose> + </keywords> + </freeKeyword> + </freeKeywords> + <descriptions> + <description> + <language>de</language> + <freetext> + <p>Einreichung für den Sonderband 3 der Zeitschrift für digitale + Geisteswissenschaften. Abrufbar unter http://www.zfdg.de/sonderband/3</p> + </freetext> + <descriptionType>Other</descriptionType> + </description> + </descriptions> + </resource> + </xsl:template> +</xsl:stylesheet> diff --git a/scripts/zfdg_xml2xml__transform.xsl b/scripts/zfdg_xml2xml__transform.xsl new file mode 100644 index 0000000000000000000000000000000000000000..153c4dabdedf2f289988bc6242e9e570c3493973 --- /dev/null +++ b/scripts/zfdg_xml2xml__transform.xsl @@ -0,0 +1,317 @@ +<?xml version="1.0" encoding="UTF-8"?> + + +<xsl:stylesheet xmlns:html="http://www.w3.org/1999/html" xmlns:tei="http://www.tei-c.org/ns/1.0" + xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns="http://www.tei-c.org/ns/1.0" version="1.0"> + + <xsl:output method="xml" version="1.0" omit-xml-declaration="yes" encoding="utf-8" indent="yes"/> + <xsl:template match="/"> + + <TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:html="http://www.w3.org/1999/html" + xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:xhtml="http://www.w3.org/1999/xhtml"> + <teiHeader> + <fileDesc> + <titleStmt> + <title> + <biblStruct> + <analytic> + <title level="a"><xsl:value-of select="/tei:TEI/tei:text/tei:body/tei:p[@rend='zfdg-beitragstitel']"/></title> + <respStmt> + <resp> + <persName> + <name role="marc_aut"> + <forename>Vorname Artikelautor 1</forename> + <surname>Nachname Vorname Artikelautor 1</surname> + </name> + <email>Mail Artikelautor 1</email> + <idno type="gnd">GND-Nummer Artikelautor 1</idno> + <idno type="orcid">ORCID Artikelautor 1</idno> + </persName> + </resp> + <orgName>Organisation Artikelautor 1</orgName> + </respStmt> + <!-- respStmt wiederholen, wenn mehrere Artikelautoren vorliegen --> + <idno type="doi">10.17175/2019_00x</idno> + <idno type="ppn">ppn</idno> + <idno type="zfdg">2019.00x</idno> + <idno type="url">http://www.zfdg.de/node/xxx</idno> + <date when="2016-07-08">dd.mm.2019</date> + </analytic> + <monogr> + <title level="j">Zeitschrift für digitale Geisteswissenschaften</title> + <respStmt> + <resp>Publiziert von</resp> + <orgName role="marc_pbl">Herzog August Bibliothek</orgName> + </respStmt> + <respStmt> + <resp>Transformation der Word Vorlage nach TEI</resp> + <persName/> + <name role="marc_trc"> + <surname>Steyer</surname> + <forename>Timo</forename> + <idno type="gnd">1053806175</idno> + </name> + </respStmt> + <respStmt> + <resp>Übersetzung des Abstract ins Englische</resp> + <name role="marc_trl"> + <forename>Kathleen Marie</forename> + <surname>Smith</surname> + <idno type="gnd">1170363318</idno> + </name> + </respStmt> + <availability status="free"> + <p>Available at <ref target="http://www.zfdg.de">http://www.zfdg.de</ref> + </p> + </availability> + <biblScope unit="year">2019</biblScope> + <!-- Hier Eintrag ob Artikel oder Projektvorstellung plus Nummerierung --> + <biblScope unit="artikel">xx</biblScope> + </monogr> + </biblStruct> + </title> + </titleStmt> + <editionStmt> + <edition>Elektronische Ausgabe nach TEI P5</edition> + </editionStmt> + <publicationStmt> + <distributor> + <name> + <orgName>Herzog August Bibliothek Wolfenbüttel</orgName> + </name> + </distributor> + <!-- Normdaten der Zeitschrift --> + <idno type="doi">10.17175/zfdg.01</idno> + <idno type="ppn">0819494402</idno> + <authority> + <name>Herzog August Bibliothek</name> + <address> + <addrLine>Lessingplatz 1</addrLine> + <addrLine>38304 Wolfenbüttel</addrLine> + </address> + </authority> + <authority> + <name>Forschungsverbund MWW</name> + </authority> + <availability status="free"> + <p> Sofern nicht anders angegeben </p> + <licence target="http://creativecommons.org/licenses/by/4.0/">CC BY SA 4.0</licence> + </availability> + <availability status="free"> + <p> Available at <ref target="workID">http://www.zfdg.de; (c) + Forschungsverbund MWW</ref> + </p> + </availability> + </publicationStmt> + <sourceDesc> + <!-- Hier Angabe ob Einreichung als Artikel oder Projektvorstellung --> + <p>Einreichung als Fachartikel in der ZfdG durch die Autoren</p> + </sourceDesc> + </fileDesc> + <encodingDesc> + <editorialDecl> + <p>Transformation der WORD-Vorlage nach XML/TEI-P5 durch TEI-Oxgarage und + XSLT-Skripten</p> + </editorialDecl> + <editorialDecl> + <p xml:lang="de">Lektorat des Textes durch die Redaktion in Person von <persName>Lisa Klaffki</persName>.</p> + </editorialDecl> + <editorialDecl> + <p>Medienrechte liegen bei den Autoren</p> + </editorialDecl> + <editorialDecl> + <!-- Datum des letzten Linkchecks angeben --> + <p>All links checked<date when="2015">dd.mm.2019</date> + </p> + </editorialDecl> + </encodingDesc> + <profileDesc> + <creation>Einreichung als Artikel der Zeitschrift für digitale + Geisteswissenschaften</creation> + <langUsage> + <!-- Wenn Text in Englisch, dann hier einfach die Nomenklatur umdrehen--> + <language ident="de">Text in Deutsch</language> + <language ident="en">Abstract in Deutsch</language> + </langUsage> + <textClass> + <!-- Angabe von Schlagworten, im scheme entweder "gnd", "tadirah" oder "zfdg" angeben --> + <keywords scheme="gnd"> + <term>Schlagwort 1<ref target="GND-Nummer"/></term> + </keywords> + </textClass> + </profileDesc> + <revisionDesc> + <change/> + </revisionDesc> + </teiHeader> + <text> + <body> + <div> + <xsl:apply-templates select="tei:TEI/tei:text/tei:body"></xsl:apply-templates> + + </div> + </body> + </text> + </TEI> + </xsl:template> + + <xsl:template match="tei:body"> + <xsl:apply-templates select="tei:p |tei:list |tei:note"/> + </xsl:template> + + + + + <xsl:template match="tei:p"> + <xsl:choose> + <xsl:when test="@rend='Kapitel_Überschrift_zfdg'"> + <div type="chapter"> + <xsl:element name="head"><xsl:apply-templates /></xsl:element> + </div> + </xsl:when> + <xsl:when test="@rend='Text_zfdg'"> + + <xsl:element name="p"><xsl:apply-templates /></xsl:element> + </xsl:when> + <xsl:when test="@rend='Großzitat_zfdg'"> + <xsl:element name="p"><xsl:element name="quote"><xsl:attribute name="type">grosszitat</xsl:attribute><xsl:apply-templates/></xsl:element></xsl:element> + </xsl:when> + <xsl:when test="@rend='Zitat_zfdg'"> + <xsl:element name="p"><xsl:element name="quote"><xsl:apply-templates/></xsl:element></xsl:element> + </xsl:when> + <xsl:when test="@rend='Abbildung_zfdg'"> + <xsl:element name="figure"><xsl:element name="graphic"><xsl:attribute name="xml:id"><xsl:text>bildnummer eintragen</xsl:text></xsl:attribute><xsl:attribute name="url"><xsl:text>.../medien/</xsl:text></xsl:attribute> + <xsl:element name="desc"><xsl:element name="ref"><xsl:attribute name="target"><xsl:text>#</xsl:text><xsl:value-of select="."/></xsl:attribute><xsl:value-of select="."/></xsl:element></xsl:element> + </xsl:element></xsl:element> + </xsl:when> + <xsl:when test="@rend='Fußnoten_zfdg'"> + <xsl:apply-templates></xsl:apply-templates> + </xsl:when> + <xsl:when test="@rend='Bibliographie_zfdg'"> + <xsl:element name="bibl"><xsl:apply-templates></xsl:apply-templates></xsl:element> + </xsl:when> + <xsl:when test="@rend='Abb_Legende_zfdg'"> + <xsl:element name="desc"><xsl:attribute name="type"><xsl:text>graphic</xsl:text></xsl:attribute><xsl:attribute name="xml:id"><xsl:text>abb</xsl:text><xsl:number count="tei:desc[@type='graphic']"></xsl:number></xsl:attribute><xsl:apply-templates></xsl:apply-templates></xsl:element> + </xsl:when> + <xsl:when test="@rend='Liste_unsortiert_zfdg'"> + <xsl:element name="list"><xsl:attribute name="type"><xsl:text>unordered</xsl:text></xsl:attribute> + <item><xsl:apply-templates></xsl:apply-templates></item> + </xsl:element> + </xsl:when> + + <xsl:when test="@rend='Liste-nummeriert_zfdg'"> + <xsl:element name="list"><xsl:attribute name="type"><xsl:text>ordered</xsl:text></xsl:attribute> + <item><xsl:apply-templates></xsl:apply-templates></item> + </xsl:element> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="contains(@rend, 'Abstract_zfdg')"> + <div type="abstract"> + <argument xml:lang="de"> + <xsl:element name="p"><xsl:apply-templates></xsl:apply-templates></xsl:element> + </argument> + </div> + </xsl:when> + </xsl:choose> + + </xsl:template> + + + + <xsl:template match="tei:note[@place='foot']"> + <xsl:element name="note"> + <xsl:attribute name="type">footnote</xsl:attribute> + <xsl:apply-templates /> + </xsl:element> + </xsl:template> + + <xsl:template match="tei:seg"> + <xsl:choose> + <xsl:when test="@rend='italic'"> + <xsl:element name="hi"><xsl:attribute name="rend">italic</xsl:attribute><xsl:apply-templates/></xsl:element> + </xsl:when> + <xsl:otherwise><xsl:apply-templates></xsl:apply-templates></xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="tei:list"> + <xsl:choose> + <xsl:when test="@type='unordered'"> + <xsl:element name="list"><xsl:attribute name="type"><xsl:text>unordered</xsl:text></xsl:attribute><xsl:apply-templates></xsl:apply-templates></xsl:element> + </xsl:when> + <xsl:when test="@type='ordered'"> + <xsl:element name="list"><xsl:attribute name="type"><xsl:text>ordered</xsl:text></xsl:attribute><xsl:apply-templates></xsl:apply-templates></xsl:element> + </xsl:when> + <xsl:otherwise><xsl:element name="list"><xsl:apply-templates></xsl:apply-templates></xsl:element></xsl:otherwise> + </xsl:choose> + + </xsl:template> + + + + <xsl:template match="tei:item"> + <xsl:element name="item"><xsl:apply-templates></xsl:apply-templates></xsl:element> + </xsl:template> + + <xsl:template match="tei:hi"> + <xsl:choose> + <xsl:when test="@rend ='italics' or @rend ='italic'"> + <xsl:element name="hi"><xsl:attribute name="rend">italic</xsl:attribute><xsl:apply-templates/></xsl:element> + </xsl:when> + + <xsl:when test="@rend ='Link_zfdg'"> + <xsl:value-of select="."/> + + </xsl:when> + <xsl:when test="@rend ='color(222222)'"> + + <xsl:value-of select="."/> + + </xsl:when> + <xsl:when test="@rend ='Werktitel_zfdg'"> + <bibl><title type="desc"><xsl:apply-templates></xsl:apply-templates></title></bibl> + </xsl:when> + <xsl:when test="@rend ='zfdg-institution'"> + <term type="corporate" ref="LINK"><xsl:apply-templates></xsl:apply-templates></term> + </xsl:when> + <xsl:when test="@rend ='Fachbegriff_zfdg'"> + <term type="dh"><xsl:apply-templates></xsl:apply-templates></term> + </xsl:when> + <xsl:when test="@rend ='zfdg-dh-begriffe'"> + <emph><xsl:apply-templates></xsl:apply-templates></emph> + </xsl:when> + <xsl:when test="@rend ='Betonung_text_zfdg'"> + <hi rend="italic"><xsl:apply-templates></xsl:apply-templates></hi> + </xsl:when> + <xsl:when test="@rend ='Fettdruck_text_zfdg'"> + <hi rend="bold"><xsl:apply-templates></xsl:apply-templates></hi> + </xsl:when> + <xsl:when test="@rend='Code_zfdg'"> + <code><xsl:apply-templates/></code> + </xsl:when> + <xsl:when test="'Fußnotenanker'"> + <xsl:apply-templates></xsl:apply-templates> + </xsl:when> + <xsl:when test="@rend ='Abb_Verweis_zfdg'"> + <ref type="graphic" target="#Abbildungslink"><xsl:apply-templates></xsl:apply-templates></ref> + </xsl:when> + <xsl:when test="@rend ='Kap_Verweis_zfdg'"> + <ref type="graphic" target="#Abbildungslink"><xsl:apply-templates></xsl:apply-templates></ref> + </xsl:when> + + + + + </xsl:choose> + </xsl:template> + + <xsl:template match="tei:ref"> + <xsl:element name="ref"><xsl:attribute name="target"><xsl:value-of select="@target"/></xsl:attribute><xsl:value-of select="."/><xsl:value-of select="tei:hi"/></xsl:element> + + </xsl:template> +</xsl:stylesheet>