Commit d717573caf6c703b9c2041fc167944f539d0153d

Authored by mangaldeep patel
1 parent ea52f0f1

ADAM Image Module

400-SOURCECODE/AIAHTML5.Web/Web.config
... ... @@ -21,7 +21,7 @@
21 21  
22 22 </location>
23 23 <system.webServer>
24   - <rewrite>
  24 + <!--<rewrite>
25 25 <rules>
26 26 <rule name="AngularJS Routes" stopProcessing="true">
27 27 <match url=".*" />
... ... @@ -33,7 +33,7 @@
33 33 <action type="Rewrite" url="/" />
34 34 </rule>
35 35 </rules>
36   - </rewrite>
  36 + </rewrite>-->
37 37 <staticContent>
38 38  
39 39 <remove fileExtension=".mp3" />
... ... @@ -42,6 +42,7 @@
42 42 <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
43 43 <mimeMap fileExtension=".mp3" mimeType="audio/mpeg" />
44 44 <mimeMap fileExtension=".vtt" mimeType="text/vtt" />
  45 + <mimeMap fileExtension=".json" mimeType="application/javascript" />
45 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 3 // $rootScope.currentActiveModuleTitle = pages[3].name;
4 4 $scope.showTabButton = true;
5 5 $scope.IllustrationData;
6   - $scope.AIAllBodyRegion = [];
7   - $scope.AIAllBodySystem = [];
8   - $scope.AIAllOrientation = [];
9   - $scope.AIAllImageType = [];
10   - $scope.AIAllSpeciality = [];
11 6 $scope.searchAIListViewData = [];
12 7 $scope.SelectedAIthumbImage = [];
13 8 $scope.SelectedAIImage = [];
... ... @@ -46,12 +41,6 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
46 41 })
47 42  
48 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 44 $scope.scroll();
56 45 //push the details of open module in array $rootScope.openModules
57 46 $rootScope.openModules.push({ "ModuleId": 13 });
... ... @@ -81,7 +70,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
81 70  
82 71 $scope.reRunSearchOnLoad = function () {
83 72  
84   - var curBodyRegion = $rootScope.getLocalStorageValue("AICurBodyRegion");
  73 + var curBodyRegion = $rootScope.getLocalStorageValue("AICurBodyId");
85 74 if (typeof (curBodyRegion) !== "undefined" && curBodyRegion !== null && curBodyRegion !== '') {
86 75 $scope.query.selectedbodyregion = curBodyRegion;
87 76 }
... ... @@ -212,7 +201,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
212 201  
213 202  
214 203 //set localstorage values
215   - localStorage.setItem("AICurBodyRegion", '');
  204 + localStorage.setItem("AICurBodyId", '');
216 205 localStorage.setItem("AIListViewScroll", '');
217 206  
218 207 if ($('.selected').hasClass("selected")) { $('.selected').removeClass("selected"); }
... ... @@ -244,11 +233,11 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
244 233  
245 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 239 else {
251   - localStorage.setItem("AICurBodyRegion", '');
  240 + localStorage.setItem("AICurBodyId", '');
252 241  
253 242 }
254 243  
... ...