- escape image alt attribute as it's breaking xml format in some metadata.xml
This commit is contained in:
parent
7fdbc5b293
commit
fcca81783e
@ -39,7 +39,7 @@ public class ResponseBuilder {
|
|||||||
|
|
||||||
Template ftl = null;
|
Template ftl = null;
|
||||||
try {
|
try {
|
||||||
ftl = cfg.getTemplate("get-meeting-info.ftl");
|
ftl = cfg.getTemplate("get-meeting-info.ftlx");
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
log.error("Cannot find get-meeting-info.ftl template for meeting : " + meeting.getInternalId(), e);
|
log.error("Cannot find get-meeting-info.ftl template for meeting : " + meeting.getInternalId(), e);
|
||||||
}
|
}
|
||||||
@ -74,9 +74,9 @@ public class ResponseBuilder {
|
|||||||
|
|
||||||
Template ftl = null;
|
Template ftl = null;
|
||||||
try {
|
try {
|
||||||
ftl = cfg.getTemplate("get-meetings.ftl");
|
ftl = cfg.getTemplate("get-meetings.ftlx");
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
log.error("IO exception for get-meetings.ftl : ", e);
|
log.error("IO exception for get-meetings.ftlx : ", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
StringWriter xmlText = new StringWriter();
|
StringWriter xmlText = new StringWriter();
|
||||||
@ -90,7 +90,7 @@ public class ResponseBuilder {
|
|||||||
} catch (TemplateException e) {
|
} catch (TemplateException e) {
|
||||||
log.error("Template exception : ", e);
|
log.error("Template exception : ", e);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
log.error("IO exception for get-meetings.ftl : ", e);
|
log.error("IO exception for get-meetings.ftlx : ", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return xmlText.toString();
|
return xmlText.toString();
|
||||||
@ -100,7 +100,7 @@ public class ResponseBuilder {
|
|||||||
|
|
||||||
Template ftl = null;
|
Template ftl = null;
|
||||||
try {
|
try {
|
||||||
ftl = cfg.getTemplate("get-recordings.ftl");
|
ftl = cfg.getTemplate("get-recordings.ftlx");
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
log.error("IO exception for get-recordings.ftl : ", e);
|
log.error("IO exception for get-recordings.ftl : ", e);
|
||||||
}
|
}
|
||||||
@ -116,7 +116,7 @@ public class ResponseBuilder {
|
|||||||
} catch (TemplateException e) {
|
} catch (TemplateException e) {
|
||||||
log.error("Template exception : ", e);
|
log.error("Template exception : ", e);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
log.error("IO exception for get-recordings.ftl : ", e);
|
log.error("IO exception for get-recordings.ftlx : ", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return xmlText.toString();
|
return xmlText.toString();
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<recordID>${r.getMetadataXml()?html}</recordID>
|
<recordID>${r.getMetadataXml()?html}</recordID>
|
||||||
</error>
|
</error>
|
||||||
<#else>
|
<#else>
|
||||||
<#include "include-recording.ftl">
|
<#include "include-recording.ftlx">
|
||||||
</#if>
|
</#if>
|
||||||
</recording>
|
</recording>
|
||||||
</#list>
|
</#list>
|
@ -11,7 +11,7 @@
|
|||||||
<recordID>${r.getMetadataXml()?html}</recordID>
|
<recordID>${r.getMetadataXml()?html}</recordID>
|
||||||
</error>
|
</error>
|
||||||
<#else>
|
<#else>
|
||||||
<#include "include-recording.ftl">
|
<#include "include-recording.ftlx">
|
||||||
</#if>
|
</#if>
|
||||||
</recording>
|
</recording>
|
||||||
</#list>
|
</#list>
|
@ -59,7 +59,7 @@
|
|||||||
<images>
|
<images>
|
||||||
<#items as image>
|
<#items as image>
|
||||||
<#if image??>
|
<#if image??>
|
||||||
<image width="${image.getWidth()}" height="${image.getHeight()}" alt="${image.getAlt()}">${image.getValue()!"Link not found."}</image>
|
<image width="${image.getWidth()}" height="${image.getHeight()}" alt="${image.getAlt()?html}">${image.getValue()!"Link not found."}</image>
|
||||||
</#if>
|
</#if>
|
||||||
</#items>
|
</#items>
|
||||||
</images>
|
</images>
|
Loading…
Reference in New Issue
Block a user