Skip to content

Commit

Permalink
adding rightsList in both xslt and reference.xml as indicated in Data…
Browse files Browse the repository at this point in the history
…Cite software example
  • Loading branch information
Azzouz-Thuderoz committed Feb 23, 2024
1 parent 05f0ee5 commit 90819fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions test/data/software/reference.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,8 @@
<id>17483</id>
<name>STRUMPACK</name>
</related_software>
<rightsList>
<rights>No license</rights>
</rightsList>

</resource>
4 changes: 2 additions & 2 deletions xslt/software/xslt-software-transformation.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</contributor>
</xsl:otherwise>
</xsl:choose>

<rightsList>
<xsl:choose>
<xsl:when test= "root/result/license_terms != ''">
<!-- will be instantiated for item #1 and item #2 -->
Expand All @@ -48,7 +48,7 @@
</xsl:otherwise>
</xsl:choose>


</rightsList>
<subjects>
<xsl:for-each select="root/result/classification">
<subject><xsl:value-of select="."/></subject>
Expand Down

0 comments on commit 90819fa

Please sign in to comment.