Loading max_ead_demo_config_inc.xml +5 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,11 @@ <plugin name="side_toc"/> <plugin name="ead_pdf"/> <plugin name="ead_search"> <plugin name="img_viewer"> <parameters> <parameter key="imagesRepository" value="ui/images/" xsl="true"/> </parameters> </plugin> <parameters> <parameter key="searchForm"> <search> Loading menu.xml +4 −0 Original line number Diff line number Diff line Loading @@ -26,5 +26,9 @@ <id>about</id> <target>about.html</target> </entry> <entry> <id>recherche</id> <target>rechercher.html</target> </entry> </entry> </menu> ui/i18n/I18n-fr.xml +4 −2 Original line number Diff line number Diff line Loading @@ -22,11 +22,13 @@ <!-- Sommaire --> <entry key="toc.title">Sommaire de l’exemplier EAD</entry> <entry key="toc.Imprimes">Imprimés</entry> <entry key="toc.Manuscrits">Manuscrits</entry> <entry key="toc.imprime">Imprimés</entry> <entry key="toc.manuscrit">Manuscrits</entry> <entry key="toc.france">France</entry> <entry key="toc.normandie">Normandie</entry> <entry key="toc.calvados">Calvados</entry> <entry key="toc.archive">Archives</entry> <entry key="toc.monnaie">Numismatique</entry> <!-- Header --> <entry key="eadid">Identifiant principal</entry> Loading ui/i18n/i18n-en.xml +4 −2 Original line number Diff line number Diff line Loading @@ -23,11 +23,13 @@ <!-- Summary --> <entry key="toc.title">Summary</entry> <entry key="toc.Imprimes">Printed</entry> <entry key="toc.Manuscrits">Manuscripts</entry> <entry key="toc.imprime">Printed</entry> <entry key="toc.manuscrit">Manuscripts</entry> <entry key="toc.france">France</entry> <entry key="toc.normandie">Normandy</entry> <entry key="toc.calvados">Calvados</entry> <entry key="toc.archive">Archives</entry> <entry key="toc.monnaie">Numismatic</entry> <!-- Header --> <entry key="eadid">Main identifier</entry> Loading ui/xsl/ead/document_toc.xsl +18 −66 Original line number Diff line number Diff line Loading @@ -2,122 +2,74 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ns="urn:isbn:1-931666-22-9" xmlns:ead="urn:isbn:1-931666-22-9" xmlns:max="https://max.unicaen.fr" exclude-result-prefixes="ead ns xlink max"> <xsl:import href="../../../../../ui/xsl/core/i18n.xsl"/> <xsl:param name="project"/> <xsl:param name="locale"/> xmlns:ead="urn:isbn:1-931666-22-9" exclude-result-prefixes="ead ns xlink"> <xsl:template match="/"> <!-- <xsl:copy-of select="."/> --> <xsl:apply-templates/> </xsl:template> <!-- balises à masquer--> <xsl:template match="*:origination"/> <xsl:template match="*:physdesc"/> <xsl:template match="*:physloc"/> <xsl:template match="*:repository"/> <xsl:template match="*:langmaterial"/> <xsl:template match="*:unitid[@type='Cote_ancienne']"/> <xsl:template match="*:note"/> <xsl:template match="*:imprint"/> <xsl:template match="*:dao"/> <xsl:template match="*:author"/> <!-- construction de la liste (avec les flèches qui se déplient) en utilisant les balises html details et summary--> <xsl:template match="nav"> <nav> <div class="eadHeader"> <xsl:variable name="url" select="(//*:details[1]//*:a[1]/@href)[1]" /> <a href="{substring-before($url,'.xml')||'.xml/info/eadheader.html'}"> <xsl:variable name="i18nKey">menu.meta</xsl:variable> <xsl:value-of select="max:i18n($project,$i18nKey,$locale)"/> </a> </div> <xsl:apply-templates/> </nav> </xsl:template> <xsl:template match="details"> <details> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </details> </xsl:template> <xsl:template match="div[@class='detail']"> <div> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </div> </xsl:template> <xsl:template match="summary"> <summary> <xsl:apply-templates/> </summary> </xsl:template> <xsl:template match="a"> <a> <xsl:attribute name="href"> <xsl:choose> <xsl:when test="(ancestor::details[1][@level='archdesc']) and (not(parent::div[@class='detail']))"> <xsl:value-of select="substring-before(@href,'.xml')||'.xml/info/archdesc.html'" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="@href"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <a href="{@href}"> <xsl:apply-templates/> </a> </xsl:template> <!-- toutes les balises EAD sont insérées dans un span avec une class contenant le nom de la balise --> <xsl:template match="*"> <span class="{node-name(.)}"> <xsl:template match="*:emph"> <span class="{@render}"> <xsl:apply-templates/> </span> </xsl:template> <!-- niveau collection, on conserve le unittitle, et on masque le unitid--> <xsl:template match="details[@id='details_collection']/summary/a/*:unittitle"> <xsl:template match="*:unittitle"> <span class="unittitle"> <xsl:apply-templates/> </span> </xsl:template> <xsl:template match="details[@id='details_collection']/summary/a/*:unitid"> </xsl:template> <!-- pour les c enfants, on masque le unititle, pour n'afficher que le unitid--> <xsl:template match="details[@otherlevel='site']//*:unittitle"> </xsl:template> <xsl:template match="div[@class='detail']"> <div> <xsl:copy-of select="@*"/> <xsl:template match="*:unitid"> <span class="unitid"> <xsl:apply-templates/> </div> </xsl:template> <!-- ajout de ponctuation pour certaines balises --> <xsl:template match="*:unitdate"> <span class="date"> <xsl:text>, </xsl:text><xsl:apply-templates/> <xsl:text> – </xsl:text> </span> </xsl:template> <xsl:template match="*:persname"> <span class="persname"> <xsl:apply-templates/> <xsl:text>, </xsl:text> </span> </xsl:template> <!-- gestion de la typo (italique, bold, etc.) --> <xsl:template match="*:emph"> <span class="{@render}"> <xsl:template match="*:title"> <span class="title"> <xsl:apply-templates/> </span> </xsl:template> </xsl:stylesheet> Loading
max_ead_demo_config_inc.xml +5 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,11 @@ <plugin name="side_toc"/> <plugin name="ead_pdf"/> <plugin name="ead_search"> <plugin name="img_viewer"> <parameters> <parameter key="imagesRepository" value="ui/images/" xsl="true"/> </parameters> </plugin> <parameters> <parameter key="searchForm"> <search> Loading
menu.xml +4 −0 Original line number Diff line number Diff line Loading @@ -26,5 +26,9 @@ <id>about</id> <target>about.html</target> </entry> <entry> <id>recherche</id> <target>rechercher.html</target> </entry> </entry> </menu>
ui/i18n/I18n-fr.xml +4 −2 Original line number Diff line number Diff line Loading @@ -22,11 +22,13 @@ <!-- Sommaire --> <entry key="toc.title">Sommaire de l’exemplier EAD</entry> <entry key="toc.Imprimes">Imprimés</entry> <entry key="toc.Manuscrits">Manuscrits</entry> <entry key="toc.imprime">Imprimés</entry> <entry key="toc.manuscrit">Manuscrits</entry> <entry key="toc.france">France</entry> <entry key="toc.normandie">Normandie</entry> <entry key="toc.calvados">Calvados</entry> <entry key="toc.archive">Archives</entry> <entry key="toc.monnaie">Numismatique</entry> <!-- Header --> <entry key="eadid">Identifiant principal</entry> Loading
ui/i18n/i18n-en.xml +4 −2 Original line number Diff line number Diff line Loading @@ -23,11 +23,13 @@ <!-- Summary --> <entry key="toc.title">Summary</entry> <entry key="toc.Imprimes">Printed</entry> <entry key="toc.Manuscrits">Manuscripts</entry> <entry key="toc.imprime">Printed</entry> <entry key="toc.manuscrit">Manuscripts</entry> <entry key="toc.france">France</entry> <entry key="toc.normandie">Normandy</entry> <entry key="toc.calvados">Calvados</entry> <entry key="toc.archive">Archives</entry> <entry key="toc.monnaie">Numismatic</entry> <!-- Header --> <entry key="eadid">Main identifier</entry> Loading
ui/xsl/ead/document_toc.xsl +18 −66 Original line number Diff line number Diff line Loading @@ -2,122 +2,74 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ns="urn:isbn:1-931666-22-9" xmlns:ead="urn:isbn:1-931666-22-9" xmlns:max="https://max.unicaen.fr" exclude-result-prefixes="ead ns xlink max"> <xsl:import href="../../../../../ui/xsl/core/i18n.xsl"/> <xsl:param name="project"/> <xsl:param name="locale"/> xmlns:ead="urn:isbn:1-931666-22-9" exclude-result-prefixes="ead ns xlink"> <xsl:template match="/"> <!-- <xsl:copy-of select="."/> --> <xsl:apply-templates/> </xsl:template> <!-- balises à masquer--> <xsl:template match="*:origination"/> <xsl:template match="*:physdesc"/> <xsl:template match="*:physloc"/> <xsl:template match="*:repository"/> <xsl:template match="*:langmaterial"/> <xsl:template match="*:unitid[@type='Cote_ancienne']"/> <xsl:template match="*:note"/> <xsl:template match="*:imprint"/> <xsl:template match="*:dao"/> <xsl:template match="*:author"/> <!-- construction de la liste (avec les flèches qui se déplient) en utilisant les balises html details et summary--> <xsl:template match="nav"> <nav> <div class="eadHeader"> <xsl:variable name="url" select="(//*:details[1]//*:a[1]/@href)[1]" /> <a href="{substring-before($url,'.xml')||'.xml/info/eadheader.html'}"> <xsl:variable name="i18nKey">menu.meta</xsl:variable> <xsl:value-of select="max:i18n($project,$i18nKey,$locale)"/> </a> </div> <xsl:apply-templates/> </nav> </xsl:template> <xsl:template match="details"> <details> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </details> </xsl:template> <xsl:template match="div[@class='detail']"> <div> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </div> </xsl:template> <xsl:template match="summary"> <summary> <xsl:apply-templates/> </summary> </xsl:template> <xsl:template match="a"> <a> <xsl:attribute name="href"> <xsl:choose> <xsl:when test="(ancestor::details[1][@level='archdesc']) and (not(parent::div[@class='detail']))"> <xsl:value-of select="substring-before(@href,'.xml')||'.xml/info/archdesc.html'" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="@href"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <a href="{@href}"> <xsl:apply-templates/> </a> </xsl:template> <!-- toutes les balises EAD sont insérées dans un span avec une class contenant le nom de la balise --> <xsl:template match="*"> <span class="{node-name(.)}"> <xsl:template match="*:emph"> <span class="{@render}"> <xsl:apply-templates/> </span> </xsl:template> <!-- niveau collection, on conserve le unittitle, et on masque le unitid--> <xsl:template match="details[@id='details_collection']/summary/a/*:unittitle"> <xsl:template match="*:unittitle"> <span class="unittitle"> <xsl:apply-templates/> </span> </xsl:template> <xsl:template match="details[@id='details_collection']/summary/a/*:unitid"> </xsl:template> <!-- pour les c enfants, on masque le unititle, pour n'afficher que le unitid--> <xsl:template match="details[@otherlevel='site']//*:unittitle"> </xsl:template> <xsl:template match="div[@class='detail']"> <div> <xsl:copy-of select="@*"/> <xsl:template match="*:unitid"> <span class="unitid"> <xsl:apply-templates/> </div> </xsl:template> <!-- ajout de ponctuation pour certaines balises --> <xsl:template match="*:unitdate"> <span class="date"> <xsl:text>, </xsl:text><xsl:apply-templates/> <xsl:text> – </xsl:text> </span> </xsl:template> <xsl:template match="*:persname"> <span class="persname"> <xsl:apply-templates/> <xsl:text>, </xsl:text> </span> </xsl:template> <!-- gestion de la typo (italique, bold, etc.) --> <xsl:template match="*:emph"> <span class="{@render}"> <xsl:template match="*:title"> <span class="title"> <xsl:apply-templates/> </span> </xsl:template> </xsl:stylesheet>