Skip to content

Commit

Permalink
Test / Fix formatter test. (geonetwork#7993)
Browse files Browse the repository at this point in the history
* Test / Fix formatter test.

Related to geonetwork#7929.

* Prettier.

* Test / Fix formatter test / Citation common may be embedded in other formatter. Only set xsl:output in the citation entry point.
  • Loading branch information
fxprunayre authored Apr 29, 2024
1 parent daa1d15 commit bb6a19e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
extension-element-prefixes="saxon"
exclude-result-prefixes="#all">


<xsl:param name="format"
select="'html'"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
extension-element-prefixes="saxon"
exclude-result-prefixes="#all">

<xsl:import href="base.xsl"/>
<xsl:import href="common.xsl"/>

<xsl:output omit-xml-declaration="yes"
method="xml"
indent="yes"
saxon:indent-spaces="2"
encoding="UTF-8"/>

<xsl:import href="base.xsl"/>
<xsl:import href="common.xsl"/>

<xsl:variable name="metadata"
select="/root/mdb:MD_Metadata"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
extension-element-prefixes="saxon"
exclude-result-prefixes="#all">

<xsl:include href="base.xsl"/>
<xsl:include href="../../../iso19115-3.2018/formatter/citation/common.xsl"/>

<xsl:output omit-xml-declaration="yes"
method="xml"
indent="yes"
saxon:indent-spaces="2"
encoding="UTF-8"/>

<xsl:include href="base.xsl"/>
<xsl:include href="../../../iso19115-3.2018/formatter/citation/common.xsl"/>

<xsl:variable name="metadata"
select="/root/gmd:MD_Metadata"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,19 +253,23 @@
return "time";
} else if (scope.isDate(input)) {
return "date";
} if (scope.isDateTime(input)) {
}
if (scope.isDateTime(input)) {
return "datetime-local";
} else
return "";
} else return "";
};
scope.getDateBounds = function (input, isMin) {
if (!input) {
return;
} else if (isMin) {
return input.literalData.allowedValues.valueOrRange[0].minimumValue
.value || "";
return (
input.literalData.allowedValues.valueOrRange[0].minimumValue.value ||
""
);
}
return input.literalData.allowedValues.valueOrRange[0].maximumValue.value || "";
return (
input.literalData.allowedValues.valueOrRange[0].maximumValue.value || ""
);
};

// get values from wfs filters
Expand Down

0 comments on commit bb6a19e

Please sign in to comment.