From 96f5c225f2d403e652346c1e5a30ed463d5e4830 Mon Sep 17 00:00:00 2001 From: bjl23 Date: Fri, 1 Oct 2010 19:03:22 +0000 Subject: [PATCH] fixing erroneous EntityController commit --- .../mannlib/vitro/webapp/controller/EntityController.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/EntityController.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/EntityController.java index 06b04ebf7..be40d48d9 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/EntityController.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/EntityController.java @@ -227,10 +227,9 @@ public class EntityController extends VitroHttpServlet { css += customCss; } - if( indiv.getURI().startsWith( vreq.getWebappDaoFactory().getDefaultNamespace() )){ - String entityLinkedDataURL = indiv.getURI() + "/" + indiv.getLocalName() + ".rdf"; - vreq.setAttribute("entityLinkedDataURL", entityLinkedDataURL); - } + if( indiv.getURI().startsWith( vreq.getWebappDaoFactory().getDefaultNamespace() )){ + vreq.setAttribute("entityLinkedDataURL", indiv.getURI() + "/" + indiv.getLocalName() + ".rdf"); + } vreq.setAttribute("css",css); vreq.setAttribute("scripts", "/templates/entity/entity_inject_head.jsp");