<% addMetadata(key, value) {
	return key.trim() + ":" + value.trim().replaceAll(";+", ";") + ";;";
} %>

<ja:if exists="originalDate">
	<% metadata += addMetadata("originalDate", "" + originalDate); %>
</ja:if>
<ja:if exists="cameraModel">
	<% metadata += addMetadata("cameraModel", "" + cameraModel); %>
</ja:if>
<ja:if exists="exposureTime">
	<% metadata += addMetadata("exposureTime", "" + exposureTime); %>
</ja:if>
<ja:if exists="isoEquivalent">
	<% metadata += addMetadata("isoEquivalent", "" + isoEquivalent); %>
</ja:if>
<ja:if exists="aperture">
	<% metadata += addMetadata("aperture", "" + aperture); %>
</ja:if>
<ja:if exists="focusDistance">
	<% metadata += addMetadata("focusDistance", "" + focusDistance); %>
</ja:if>
<ja:if exists="focalLength35mm">
	<% metadata += addMetadata("focalLength35mm", "" + focalLength35mm); %>
</ja:if>
<ja:if exists="keywords">
	<% metadata += addMetadata("keywords", "" + keywords); %>
</ja:if>
