diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TinyViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TinyViewListController.js index 27ec75c..0a7d7eb 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TinyViewListController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TinyViewListController.js @@ -1,12 +1,18 @@ 'use strict'; -AIA.controller("TinyViewListController", ["$scope", "$rootScope", "$compile", "$http", "$log", "$location", "$timeout", "Modules", "$routeParams", "DataService", -function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, Modules, $routeParam, DataService) +AIA.controller("TinyViewListController", ["$scope", "$rootScope", "$compile", "$http", "$log", "$location", "BodyRegions", "BodySystems", "ViewOrientations", "ImageTypes", "$timeout", "Modules", "$routeParams", "DataService", +function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, BodySystems, ViewOrientations, ImageTypes, $timeout, Modules, $routeParam, DataService) { var ATLAS_ANATOMY = 'Atlas Anatomy'; var CLINICAL_ILLUSTRATION ='Clinical Illustrations'; var CLINICAL_ANIMATION='Clinical Animations'; + + $scope.AllBodyRegion = []; + $scope.AllBodySystem = []; + $scope.AllOrientation = []; + $scope.AllImageType = []; + $scope.loadForModuleById = function (moduleId) { console.log('loadForModuleById is called') @@ -17,7 +23,15 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, Module $scope.loadDataForModule = function (moduleName) { - console.log('loadDataForModule is called') + + //0. load filter static data + + $scope.AllBodyRegion = BodyRegions; + $scope.AllBodySystem = BodySystems; + $scope.AllOrientation = ViewOrientations; + $scope.AllImageType = ImageTypes; + + //1. load dynamic data for module specific images var jsonPath; if(moduleName==ATLAS_ANATOMY) { diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/tiny-view.html b/400-SOURCECODE/AIAHTML5.Web/app/views/tiny-view.html index b180e7d..47cb00c 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/views/tiny-view.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/views/tiny-view.html @@ -8,7 +8,7 @@