From 541ee8b4d27436521ed1acc6934dead7be634ac6 Mon Sep 17 00:00:00 2001 From: nac26 Date: Sat, 5 Feb 2011 17:45:33 +0000 Subject: [PATCH] NIHVIVO-2048 removed menupage--classgroup-organizations.ftl and any accommodations made for it --- productMods/WEB-INF/ontologies/app/menu.n3 | 1 - productMods/js/menupage/visualizationLink.js | 42 ------------------- .../menupage--classgroup-organizations.ftl | 12 ------ 3 files changed, 55 deletions(-) delete mode 100644 productMods/js/menupage/visualizationLink.js delete mode 100644 productMods/templates/freemarker/body/menupage/menupage--classgroup-organizations.ftl diff --git a/productMods/WEB-INF/ontologies/app/menu.n3 b/productMods/WEB-INF/ontologies/app/menu.n3 index 3f14b52f..d43d7585 100644 --- a/productMods/WEB-INF/ontologies/app/menu.n3 +++ b/productMods/WEB-INF/ontologies/app/menu.n3 @@ -69,7 +69,6 @@ display:Organizations a display:Page ; a display:ClassGroupPage; display:forClassGroup vivoweb:vitroClassGrouporganizations ; - display:requiresBodyTemplate "menupage--classgroup-organizations.ftl" ; display:title "Organizations" ; display:urlMapping "/organizations" . diff --git a/productMods/js/menupage/visualizationLink.js b/productMods/js/menupage/visualizationLink.js deleted file mode 100644 index 6086f68a..00000000 --- a/productMods/js/menupage/visualizationLink.js +++ /dev/null @@ -1,42 +0,0 @@ -/* $This file is distributed under the terms of the license in /doc/license.txt$ */ - -// NC: I've discussed this with Chintan and my hope is to have the temporal graph vis -// load the top level org by default (when the uri parameter is not included), therefore -// rendering this entire file unnecessary and obsolete. -var visualizationLink = { - // Initial page setup - onLoad: function() { - this.mergeFromTemplate(); - this.initObjects(); - }, - - // Add variables from menupage template - mergeFromTemplate: function() { - $.extend(this, menupageData); - }, - - // Create references to frequently used elements for convenience - initObjects: function() { - this.visLink = $('.visualization-menupage-link'); - }, - - // Determine the URL parameters for temporal graph of top level org - getURL: function() { - $.ajax({ - url: this.baseUrl + "/visualizationAjax", - data: ({vis: "utilities", vis_mode: "HIGHEST_LEVEL_ORGANIZATION"}), - dataType: "text", - success:function(data){ - if (data != null && data != "") { - visualizationLink.visLink.attr("href", data); - visualizationLink.visLink.removeClass('hidden'); - } - } - }); - } -}; - -$(document).ready(function() { - visualizationLink.onLoad(); - visualizationLink.getURL(); -}); \ No newline at end of file diff --git a/productMods/templates/freemarker/body/menupage/menupage--classgroup-organizations.ftl b/productMods/templates/freemarker/body/menupage/menupage--classgroup-organizations.ftl deleted file mode 100644 index 77d5a2ae..00000000 --- a/productMods/templates/freemarker/body/menupage/menupage--classgroup-organizations.ftl +++ /dev/null @@ -1,12 +0,0 @@ -<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> -<#assign visualizationLink> - Temporal Graph - - -<#include "menupage.ftl"> - -${stylesheets.add("/css/visualization/visualization.css")} - -<#-- -${scripts.add("/js/menupage/visualizationLink.js")} ---> \ No newline at end of file