1<% addMetadata(key, value) { 2 return key.trim() + ":" + value.trim().replaceAll(";+", ";") + ";;"; 3} %> 4 5<ja:if exists="originalDate"> 6 <% metadata += addMetadata("originalDate", "" + originalDate); %> 7</ja:if> 8<ja:if exists="cameraModel"> 9 <% metadata += addMetadata("cameraModel", "" + cameraModel); %> 10</ja:if> 11<ja:if exists="exposureTime"> 12 <% metadata += addMetadata("exposureTime", "" + exposureTime); %> 13</ja:if> 14<ja:if exists="isoEquivalent"> 15 <% metadata += addMetadata("isoEquivalent", "" + isoEquivalent); %> 16</ja:if> 17<ja:if exists="aperture"> 18 <% metadata += addMetadata("aperture", "" + aperture); %> 19</ja:if> 20<ja:if exists="focusDistance"> 21 <% metadata += addMetadata("focusDistance", "" + focusDistance); %> 22</ja:if> 23<ja:if exists="focalLength35mm"> 24 <% metadata += addMetadata("focalLength35mm", "" + focalLength35mm); %> 25</ja:if> 26<ja:if exists="keywords"> 27 <% metadata += addMetadata("keywords", "" + keywords); %> 28</ja:if> 29