Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-2584

[Dublin Core] : The multiple metadata DC.subject

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.1, 3.2
    • 3.1
    • None
    • None

      The metadata DC.subject is multiple then it should be managed like this :

       
                  <meta name="DC.subject">
                   <xsl:attribute name="content">
                     <xsl:choose>
                       <xsl:when test="/cms/page/pageContents/zone[@name = 'default']/zoneItem/html/head/meta[@name = 'DC.subject']">
                         <xsl:for-each select="/cms/page/pageContents/zone[@name = 'default']/zoneItem/html/head/meta[@name = 'DC.subject']">
                           <xsl:value-of select="@content"/><xsl:if test="not(position()=last())"><xsl:text>, </xsl:text></xsl:if>
                         </xsl:for-each>
                       </xsl:when>
                       
                       <xsl:otherwise><xsl:text>Ametys V3, Cms Open source, Cms Java, Java, JCR, JackRabbit, Cocoon, extJS</xsl:text></xsl:otherwise>
                     </xsl:choose>
                   </xsl:attribute>
                 </meta>
      
              <!-- Copy Dublin Core metadata. -->
              <xsl:copy-of select="/cms/page/pageContents/zone[@name = 'default']/zoneItem/html/head/meta[starts-with(@name, 'DC.') and not(@name='DC.subject')]"/> 
      

            laurence Laurence Aumeunier
            lperier Laurence Perier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: