Commit 8288915c authored by Anne Goloubkoff-Duponchel's avatar Anne Goloubkoff-Duponchel
Browse files

lien retour

parent 6d9f8702
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -24,8 +24,8 @@ tr {
  vertical-align: top;
}

.index .personnes h1 {
  font-size: 1.3em;
.index h1 {
  font-size: 1.4em;
}

.index .developper {
@@ -66,7 +66,7 @@ div.index legend.collapsible {
  margin-left: 0px;
}

legend.collapsible::after {
h2.collapsible::after, legend.collapsible::after {
  content: "▶";
  font-size: 11px;
  padding: 0px 9px 0px 8px;
+5 −1
Original line number Diff line number Diff line
@@ -56,7 +56,11 @@ return if (file:exists($indexFilePath)) then max.plugin.index:index($project,$ty

declare function max.plugin.index:loadIndex($edition,$type,$xq,$xsl,$lang) {
  let $dbPath := max.config:getProjectDBPath($edition)
  let $projectIndex := xquery:eval(xs:anyURI($xq)) 
  let $projectIndex := xquery:eval(xs:anyURI($xq),map
                  { 'project':$edition,
                    'baseURI': max.config:getBaseURI(),
                    'dbPath':$dbPath
                  }) 
  let $HTMLProjectIndex := xslt:transform($projectIndex, $xsl, ( map {'project' : $edition, 'locale' : $lang})) 
  return $HTMLProjectIndex
};

plugins/index/indexing.xsl

deleted100644 → 0
+0 −38
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!--
 For conditions of distribution and use, see the accompanying legal.txt file.
-->

<xsl:stylesheet	version="2.0" 
  xmlns="urn:isbn:1-931666-22-9"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xinclude="http://www.w3.org/2001/XInclude"
  xmlns:xhtml="http://www.w3.org/TR/xhtml/strict"
  xmlns:tei="http://www.tei-c.org/ns/1.0"
  xmlns:ns="urn:isbn:1-931666-22-9"
  xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  
  exclude-result-prefixes="tei xsl xsi xs xlink xinclude xhtml tei ns hfp">
  
  <xsl:output method="xml" encoding="utf-8"/>
  
  <xsl:template match="/index[@type='typesdocs']">
    <div class="{./@type}">
      <h1>Type de documents</h1>
      <xsl:for-each-group select="./descendant::marker" group-by="./value">
        <h2>
          <xsl:value-of select="current-grouping-key()"/>
        </h2>
        <div class="entries">
          <xsl:value-of select="current-group()/entry" separator="&#160;; "/>
        </div>
      </xsl:for-each-group>
    </div>
  </xsl:template>
  
  <xsl:template match="index">
    <xsl:copy-of select="."/>
  </xsl:template>
</xsl:stylesheet>
 No newline at end of file