VIVO Documentation
Page History
...
Anchor | ||||
---|---|---|---|---|
|
There are two important changes that need to be made to
head.ftl
applicationSetup.n3
web.xml - servlets and filter
head.ftl (meta tags)
applicationSetup.n3 - new ImageProcessor
Capability Map menu entry
...
additions and one change that have been made to the web.xml file. If you are using a custom web.xml file, you need to ensure that you replicate them.
ImageProcessor Filter
In order for the new OpenJDK compatible ImageProcessor to function, you need to have the listener configured. Please add the following just after the StartupManager listener:
Code Block |
---|
<!-- TwelveMonkeys ImageIO listener -->
<listener>
<display-name>ImageIO service provider loader/unloader</display-name>
<listener-class>com.twelvemonkeys.servlet.image.IIOProviderContextListener</listener-class>
</listener> |
SiteAdminController
The relationship between VIVO and Vitro code has been cleaned up, such that there are now no files in VIVO that entirely overwrite and replace a class of the same name in Vitro. However, in doing this, one VIVO specific servlet was introduced, requiring that the configuration in web.xml is updated.
Replace the line:
Code Block |
---|
<servlet-class>edu.cornell.mannlib.vitro.webapp.controller.freemarker.SiteAdminController</servlet-class> |
with:
Code Block |
---|
<servlet-class>edu.cornell.mannlib.vitro.webapp.controller.freemarker.VIVOSiteAdminController</servlet-class> |
SiteMap and robots.txt
In order to produce the sitemap for profiles, and to embed the correct link to it in the robots.txt, a servlet has been introduced to provide that functionality.
You will need to add the following to a custom web.xml:
Code Block |
---|
<servlet>
<description>SiteMap support</description>
<servlet-name>SiteMapServlet</servlet-name>
<servlet-class>org.vivoweb.webapp.sitemap.SiteMapServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>SiteMapServlet</servlet-name>
<url-pattern>/robots.txt</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SiteMapServlet</servlet-name>
<url-pattern>/sitemap.xml</url-pattern>
</servlet-mapping> |
head.ftl and propStatement-*.ftl
To support the output of citation meta tags, a new collection has been introduced called "metaTags". This is output by the theme in the head.ftl template. In your theme, please ensure that the head.ftl includes the following:
Code Block |
---|
<#if metaTags??>
${metaTags.list()}
</#if> |
It should appear immediately following the <#include "headScripts.ftl> line.
Also, if you have any custom templates for output property and data statements, please check them against the ones in VIVO that use the lib-meta-tags.ftl import and addCitationTags macro.
applicationSetup.n3
To use the new OpenJDK compatible ImageProcessor, you will need to adjust your applicationSetup.n3.
In the :application section, set the property for :hasImageProcessor as follows:
Code Block |
---|
:hasImageProcessor :iioImageProcessor ; |
Then, add a definition for :iioImageProcessor:
Code Block |
---|
:iioImageProcessor
a <java:edu.cornell.mannlib.vitro.webapp.imageprocessor.imageio.IIOImageProcessor> ,
<java:edu.cornell.mannlib.vitro.webapp.modules.imageProcessor.ImageProcessor> . |