From 14eef84a350d52235d0553ded7d99023185f3910 Mon Sep 17 00:00:00 2001 From: bdc34 Date: Thu, 1 Apr 2010 21:35:39 +0000 Subject: [PATCH] Using default new URI creation behavior in VIVO n3 custom forms. NIHVIVO-273 --- productMods/edit/forms/organizationHasPositionHistory.jsp | 2 +- productMods/edit/forms/personHasPositionHistory.jsp | 4 ++-- productMods/edit/forms/personHasServiceActivity.jsp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/productMods/edit/forms/organizationHasPositionHistory.jsp b/productMods/edit/forms/organizationHasPositionHistory.jsp index 1d3724a8..14d35ee2 100644 --- a/productMods/edit/forms/organizationHasPositionHistory.jsp +++ b/productMods/edit/forms/organizationHasPositionHistory.jsp @@ -17,7 +17,7 @@ <% VitroRequest vreq = new VitroRequest(request); WebappDaoFactory wdf = vreq.getWebappDaoFactory(); - vreq.setAttribute("defaultNamespace", wdf.getDefaultNamespace()); + vreq.setAttribute("defaultNamespace", ""); //empty string triggers default new URI behavior String flagURI = null; if (vreq.getAppBean().isFlag1Active()) { diff --git a/productMods/edit/forms/personHasPositionHistory.jsp b/productMods/edit/forms/personHasPositionHistory.jsp index a6133054..8dba6bf1 100644 --- a/productMods/edit/forms/personHasPositionHistory.jsp +++ b/productMods/edit/forms/personHasPositionHistory.jsp @@ -26,8 +26,8 @@ %> <% VitroRequest vreq = new VitroRequest(request); - WebappDaoFactory wdf = vreq.getWebappDaoFactory(); - vreq.setAttribute("defaultNamespace", wdf.getDefaultNamespace()); + WebappDaoFactory wdf = vreq.getWebappDaoFactory(); + vreq.setAttribute("defaultNamespace", ""); //empty string triggers default new URI behavior String flagURI = null; if (vreq.getAppBean().isFlag1Active()) { diff --git a/productMods/edit/forms/personHasServiceActivity.jsp b/productMods/edit/forms/personHasServiceActivity.jsp index cfdf5a8a..757d43a4 100644 --- a/productMods/edit/forms/personHasServiceActivity.jsp +++ b/productMods/edit/forms/personHasServiceActivity.jsp @@ -16,7 +16,7 @@ <% VitroRequest vreq = new VitroRequest(request); WebappDaoFactory wdf = vreq.getWebappDaoFactory(); - vreq.setAttribute("defaultNamespace", wdf.getDefaultNamespace()); + vreq.setAttribute("defaultNamespace", ""); //empty string triggers default new URI behavior String flagURI = null; if (vreq.getAppBean().isFlag1Active()) {