Fix identical titles for bnodes=true MPX-9
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 29 Jan 2015 10:20:55 +0000 (11:20 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 29 Jan 2015 10:20:55 +0000 (11:20 +0100)
Use 3-parent and search from there, to scope within current bibframe
record.

bibframe/xsl/briefDisplay.xsl
bibframe/xsl/fullDisplay.xsl

index 5a931c9..0fed59c 100644 (file)
@@ -28,7 +28,7 @@
       </xsl:when>
       <xsl:when test="$nodeid">
        <xsl:variable name="rvalue"
-                     select="//*[@rdf:nodeID=$nodeid]/*[1]"/>
+                     select="../../..//*[@rdf:nodeID=$nodeid]/*[1]"/>
        <xsl:choose>
          <xsl:when test="$rvalue">
            <xsl:value-of select="$rvalue"/>
index 8a1fa06..75d91a3 100644 (file)
@@ -78,7 +78,7 @@
                </xsl:when>
                <xsl:when test="$nodeid">
                  <xsl:variable name="rvalue"
-                               select="//*[@rdf:nodeID=$nodeid]/*[1]"/>
+                               select="../../..//*[@rdf:nodeID=$nodeid]/*[1]"/>
                  <xsl:choose>
                    <xsl:when test="$rvalue">
                      <xsl:value-of select="$rvalue"/>