From 183da6fd56e9e88f312207fceae24ee7fac421bd Mon Sep 17 00:00:00 2001 From: Jon Corson-Rikert Date: Mon, 16 Feb 2015 10:35:18 -0500 Subject: [PATCH] Quick fix to VIVO-975 where there's a missing 'type' parameter in a Freemarker call that throws an exception --- productMods/templates/freemarker/lib/lib-microformats.ftl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/productMods/templates/freemarker/lib/lib-microformats.ftl b/productMods/templates/freemarker/lib/lib-microformats.ftl index 7c9db40f..91994de6 100644 --- a/productMods/templates/freemarker/lib/lib-microformats.ftl +++ b/productMods/templates/freemarker/lib/lib-microformats.ftl @@ -11,11 +11,14 @@ <#elseif individual.event()> itemscope itemtype="http://schema.org/Event" <#elseif individual.infoContentEntity()> + <#assign mst = "Document" /> <#list individual.mostSpecificTypes as type > <#assign mst = type /> <#break> <@getItemType mst "infoContentEntity"/> + <#else> + itemscope itemtype="http://schema.org/Thing"