Project

General

Profile

« Previous | Next » 

Revision 10384

Added by Bryce Mecum over 7 years ago

Simplify keyword thesaurus display

Showing the whole thesaurus for every keyword set is way too much info
and is impossible to display with a naive implementation.

View differences:

lib/style/skins/metacatui/iso19115/iso-gmd.xsl
45 45
    <xsl:template match="gmd:distributionInfo">
46 46
        <xsl:apply-templates />
47 47
    </xsl:template>
48

  
49
    <!-- BDM: This is a short template for the thesaurus rather than a full 
50
    implementation. I did this for space reasons in the view. At some later 
51
    point we could consider showing the full thesaurus citation some other way.
52
    -->
53
    <xsl:template match="gmd:thesaurusName">
54
        <xsl:value-of select="./gmd:CI_Citation/gmd:title" />
55
        <xsl:apply-templates select="./gmd:CI_Citation/gmd:date" />
56
        <xsl:if test="./gmd:CI_Citation/gmd:edition">
57
            <xsl:value-of select="gmd:CI_Citation/gmd:edition" />
58
        </xsl:if>
59
    </xsl:template>
48 60
</xsl:stylesheet>
lib/style/skins/metacatui/iso19115/iso-md.xsl
39 39
          </div>
40 40
      </xsl:if>
41 41

  
42
      <div class="control-group">
43
          <label class="control-label">Thesaurus</label>
44
          <div class="controls">
45
              <div class="controls-well">
46
                  <xsl:apply-templates select="./gmd:thesaurusName/gmd:CI_Citation" />
47
              </div>
48
          </div>
49
      </div>
42
        <xsl:if test="./gmd:thesaurusName">
43
            <div class="control-group">
44
                <label class="control-label">Thesaurus</label>
45
                <div class="controls">
46
                    <div class="controls-well">
47
                        <xsl:apply-templates select="./gmd:thesaurusName" />
48
                    </div>
49
                </div>
50
            </div>
51
        </xsl:if>
50 52

  
51 53
  </xsl:template>
52 54

  

Also available in: Unified diff