Commit 13f499e6 authored by Anne Goloubkoff-Duponchel's avatar Anne Goloubkoff-Duponchel
Browse files

gestion de la réf biblio pour bandeau

parent 81f168bb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -14,9 +14,11 @@ declare
function max.plugins.ead2pdf:fragmentToPDF($project, $routeDoc, $id){
    let $dbPath := max.config:getProjectDBPath($project)
    let $eadHeader := doc($dbPath || '/' || $routeDoc)//*:eadheader/node()
    let $frontmatter := doc($dbPath || '/' || $routeDoc)//*:frontmatter/node()
    let $content:=
        <ead xmlns="urn:isbn:1-931666-22-9">
            <eadheader>{$eadHeader}</eadheader>
            <frontmatter>{$frontmatter}</frontmatter>
            <archdesc>{max.api:getXMLByID($dbPath, $id)}</archdesc>
        </ead>
    (: return $content :)
+23 −3
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
  <xsl:param name="docName"/>

  <xsl:template match="ead:eadheader"/>
  <xsl:template match="ead:frontmatter"/>
  <xsl:template match="ead:*[@audience='internal']"/>

  <xsl:variable name="pretty-name">
@@ -26,6 +27,8 @@
  </xsl:variable>




  <xsl:template match="ead:archdesc">
    <fo:root>
      <!-- équivalent du head html -->
@@ -72,13 +75,13 @@
            <xsl:value-of select="../ead:eadheader/ead:filedesc/ead:titlestmt/ead:titleproper"/>
          </fo:block>
          <fo:block text-align="left" font-size="10pt" space-after="6pt">
         Auteurs : <xsl:value-of select="../ead:eadheader/ead:filedesc/ead:titlestmt/ead:author"/>
         Auteur(s) : <xsl:value-of select="../ead:eadheader/ead:filedesc/ead:titlestmt/ead:author"/>
          </fo:block>
          <fo:block text-align="left" font-size="10pt" space-after="6pt">
         Commanditaire : <xsl:value-of select="../ead:eadheader/ead:filedesc/ead:titlestmt/ead:sponsor"/>
          </fo:block>
          <fo:block text-align="left" font-size="10pt" space-after="6pt">
         Éditeur : <xsl:value-of select="../ead:eadheader/ead:filedesc/ead:publicationstmt/ead:publisher"/>
            <xsl:value-of select="../ead:eadheader/ead:filedesc/ead:publicationstmt/ead:publisher"/>
          </fo:block>
        </fo:flow>
      </fo:page-sequence>
@@ -133,6 +136,22 @@
    </fo:block>
  </xsl:template> -->


  <!-- Gestion de la référence bibliographique qui se trouve dans le frontmatter-->

  <xsl:template match="*:titlepage">
    <fo:block xsl:use-attribute-sets="bibref">
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="*:titlepage/*:p/*:emph">
    <fo:inline>
      <xsl:apply-templates select="./@render"/>
      <xsl:apply-templates/>
    </fo:inline>
  </xsl:template>

  <!-- Un peu de typo -->
  <xsl:template match="ead:emph | ead:title[@render]">
    <fo:inline>
@@ -393,7 +412,8 @@
  </xsl:template>


  <xsl:template match="ead:head">##<xsl:apply-templates/>%%</xsl:template>
  <xsl:template match="ead:head">##    <xsl:apply-templates/>
%%</xsl:template>

  <xsl:template match="ead:list/ead:head" mode="titre_liste">
    <xsl:apply-templates select="node()"/>
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@
            <xsl:attribute name="font-size">7pt</xsl:attribute>
            <xsl:attribute name="font-family">serif</xsl:attribute>
            <xsl:attribute name="text-align">right</xsl:attribute>
            <xsl:apply-templates select="/ead:frontmatter/ead:titlepage/ead:p"/>
            <xsl:apply-templates select="../*:frontmatter/*:titlepage"/>
            <!-- <inline>
            <xsl:attribute name="font-style">italic</xsl:attribute>
            <xsl:text>Bibliothèque virtuelle du Mont Saint-Michel</xsl:text>