Commit d717573caf6c703b9c2041fc167944f539d0153d
1 parent
ea52f0f1
ADAM Image Module
Showing
2 changed files
with
9 additions
and
19 deletions
400-SOURCECODE/AIAHTML5.Web/Web.config
@@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
21 | 21 | ||
22 | </location> | 22 | </location> |
23 | <system.webServer> | 23 | <system.webServer> |
24 | - <rewrite> | 24 | + <!--<rewrite> |
25 | <rules> | 25 | <rules> |
26 | <rule name="AngularJS Routes" stopProcessing="true"> | 26 | <rule name="AngularJS Routes" stopProcessing="true"> |
27 | <match url=".*" /> | 27 | <match url=".*" /> |
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | <action type="Rewrite" url="/" /> | 33 | <action type="Rewrite" url="/" /> |
34 | </rule> | 34 | </rule> |
35 | </rules> | 35 | </rules> |
36 | - </rewrite> | 36 | + </rewrite>--> |
37 | <staticContent> | 37 | <staticContent> |
38 | 38 | ||
39 | <remove fileExtension=".mp3" /> | 39 | <remove fileExtension=".mp3" /> |
@@ -42,6 +42,7 @@ | @@ -42,6 +42,7 @@ | ||
42 | <mimeMap fileExtension=".woff" mimeType="application/font-woff" /> | 42 | <mimeMap fileExtension=".woff" mimeType="application/font-woff" /> |
43 | <mimeMap fileExtension=".mp3" mimeType="audio/mpeg" /> | 43 | <mimeMap fileExtension=".mp3" mimeType="audio/mpeg" /> |
44 | <mimeMap fileExtension=".vtt" mimeType="text/vtt" /> | 44 | <mimeMap fileExtension=".vtt" mimeType="text/vtt" /> |
45 | + <mimeMap fileExtension=".json" mimeType="application/javascript" /> | ||
45 | <!--<mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />--> | 46 | <!--<mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />--> |
46 | 47 | ||
47 | 48 |
400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js
1 | -AIA.controller("AIController", ["$scope", "$window", "$rootScope", "$compile", "$http", "$log", "$location", "$timeout", "pages", "BodyRegions", "BodySystems", "ViewOrientations", "ImageTypes", "MedicalSpecialties", "DataService", | ||
2 | -function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout, pages, BodyRegions, BodySystems, ViewOrientations, ImageTypes, MedicalSpecialties, DataService) { | 1 | +AIA.controller("AIController", ["$scope", "$window", "$rootScope", "$compile", "$http", "$log", "$location", "$timeout", "pages", "DataService", |
2 | +function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout, pages, DataService) { | ||
3 | // $rootScope.currentActiveModuleTitle = pages[3].name; | 3 | // $rootScope.currentActiveModuleTitle = pages[3].name; |
4 | $scope.showTabButton = true; | 4 | $scope.showTabButton = true; |
5 | $scope.IllustrationData; | 5 | $scope.IllustrationData; |
6 | - $scope.AIAllBodyRegion = []; | ||
7 | - $scope.AIAllBodySystem = []; | ||
8 | - $scope.AIAllOrientation = []; | ||
9 | - $scope.AIAllImageType = []; | ||
10 | - $scope.AIAllSpeciality = []; | ||
11 | $scope.searchAIListViewData = []; | 6 | $scope.searchAIListViewData = []; |
12 | $scope.SelectedAIthumbImage = []; | 7 | $scope.SelectedAIthumbImage = []; |
13 | $scope.SelectedAIImage = []; | 8 | $scope.SelectedAIImage = []; |
@@ -46,12 +41,6 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout | @@ -46,12 +41,6 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout | ||
46 | }) | 41 | }) |
47 | 42 | ||
48 | $scope.LoadAIJsonData(); | 43 | $scope.LoadAIJsonData(); |
49 | - | ||
50 | - $scope.AIAllBodyRegion = BodyRegions; | ||
51 | - $scope.AIAllBodySystem = BodySystems; | ||
52 | - $scope.AIAllOrientation = ViewOrientations; | ||
53 | - $scope.AIAllImageType = ImageTypes; | ||
54 | - $scope.AIAllSpeciality = MedicalSpecialties; | ||
55 | $scope.scroll(); | 44 | $scope.scroll(); |
56 | //push the details of open module in array $rootScope.openModules | 45 | //push the details of open module in array $rootScope.openModules |
57 | $rootScope.openModules.push({ "ModuleId": 13 }); | 46 | $rootScope.openModules.push({ "ModuleId": 13 }); |
@@ -81,7 +70,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout | @@ -81,7 +70,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout | ||
81 | 70 | ||
82 | $scope.reRunSearchOnLoad = function () { | 71 | $scope.reRunSearchOnLoad = function () { |
83 | 72 | ||
84 | - var curBodyRegion = $rootScope.getLocalStorageValue("AICurBodyRegion"); | 73 | + var curBodyRegion = $rootScope.getLocalStorageValue("AICurBodyId"); |
85 | if (typeof (curBodyRegion) !== "undefined" && curBodyRegion !== null && curBodyRegion !== '') { | 74 | if (typeof (curBodyRegion) !== "undefined" && curBodyRegion !== null && curBodyRegion !== '') { |
86 | $scope.query.selectedbodyregion = curBodyRegion; | 75 | $scope.query.selectedbodyregion = curBodyRegion; |
87 | } | 76 | } |
@@ -212,7 +201,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout | @@ -212,7 +201,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout | ||
212 | 201 | ||
213 | 202 | ||
214 | //set localstorage values | 203 | //set localstorage values |
215 | - localStorage.setItem("AICurBodyRegion", ''); | 204 | + localStorage.setItem("AICurBodyId", ''); |
216 | localStorage.setItem("AIListViewScroll", ''); | 205 | localStorage.setItem("AIListViewScroll", ''); |
217 | 206 | ||
218 | if ($('.selected').hasClass("selected")) { $('.selected').removeClass("selected"); } | 207 | if ($('.selected').hasClass("selected")) { $('.selected').removeClass("selected"); } |
@@ -244,11 +233,11 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout | @@ -244,11 +233,11 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout | ||
244 | 233 | ||
245 | if (typeof (SearchText) !== "undefined" && (SearchText !== null && SearchText !== "")) { | 234 | if (typeof (SearchText) !== "undefined" && (SearchText !== null && SearchText !== "")) { |
246 | 235 | ||
247 | - localStorage.setItem("AICurBodyRegion", SearchText); | 236 | + localStorage.setItem("AICurBodyId", SearchText); |
248 | 237 | ||
249 | } | 238 | } |
250 | else { | 239 | else { |
251 | - localStorage.setItem("AICurBodyRegion", ''); | 240 | + localStorage.setItem("AICurBodyId", ''); |
252 | 241 | ||
253 | } | 242 | } |
254 | 243 |