Skip to content

Commit

Permalink
Standards / Formatter / Citation / Pick latest date
Browse files Browse the repository at this point in the history
Citation last date year was usually correct but if customizing the formatter and a user wants to display the full last date, xpath was not selecting only the last date but all.
  • Loading branch information
fxprunayre committed Mar 4, 2024
1 parent e1497f3 commit 88cc425
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
('publication', 'revision')]/
cit:date/gco:*[. != '']"/>

<xsl:variable name="publicationDates">
<xsl:variable name="publicationDates" as="node()*">
<xsl:perform-sort select="$dates">
<xsl:sort select="." order="descending"/>
</xsl:perform-sort>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
('publication', 'revision')]/
gmd:date/gco:*[. != '']"/>

<xsl:variable name="publicationDates">
<xsl:variable name="publicationDates" as="node()*">
<xsl:perform-sort select="$dates">
<xsl:sort select="." order="descending"/>
</xsl:perform-sort>
Expand Down

0 comments on commit 88cc425

Please sign in to comment.