' +
- '
',
- title: "Open Module in Curriculum Builder",
+ '
',
+ title: "",
position: {
top: 1,
left: 1
@@ -159,7 +196,7 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
}
- $scope.loadOpenResource = function (iframe) {
+ $scope.OpenResourcePanel = function (iframe) {
//var iframe = document.getElementById('OpenModuleInCB');
var innerDoc = (iframe.contentDocument) ? iframe.contentDocument : iframe.contentWindow.document;
@@ -187,13 +224,13 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
'#topMenuBar{pointer-events: none; opacity: .3} ' +
'#Link\\/encyclopedia{pointer-events: none; opacity: .3} ' +
- '#curriculum-builder{pointer-events: none; opacity: .3} ' +
+ // '#curriculum-builder{pointer-events: none; opacity: .3} ' +
'#anatomy-test{pointer-events: none; opacity: .3} ' +
'#Link\\/IP-10{pointer-events: none; opacity: .3} ' +
'#lab-exercises{pointer-events: none; opacity: .3} ' +
'#Link\\/indepth-reports{pointer-events: none; opacity: .3} ' +
'#Link\\/complementary-and-alternate-medicine{pointer-events: none; opacity: .3} ' +
- '#ADAM-images{pointer-events: none; opacity: .3} ' +
+ // '#ADAM-images{pointer-events: none; opacity: .3} ' +
'#Link\\/bodyguide{pointer-events: none; opacity: .3} ' +
'#Link\\/symptom-navigator{pointer-events: none; opacity: .3} ' +
'#Link\\/health-navigator{pointer-events: none; opacity: .3} ' +
@@ -203,7 +240,7 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
'';
- var storefunc = '';
+ var storefunc = '';
$(header).append(css);
$(header).append(storefunc);
@@ -218,6 +255,148 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
}
+ $scope.AIAModuleOpenResourceInfo = function (newWindowData)
+ {
+ $timeout(function () {
+ $rootScope.isCallFromOtherModule = true;
+
+ if ($location.url() != "/curriculum-builder-detail") {
+ var newwindowNo = 0;
+
+ var ExistData = ModuleService.getModuleData(newWindowData.mType);
+
+ if (ExistData != undefined && ExistData.length > 0) {
+
+ newwindowNo = newwindowNo + ExistData.length;
+
+ // clear module type data before open new module
+ ModuleService.ClearWinDataByModule(newWindowData.mType);
+ }
+
+ ModuleService.setModuleData(newWindowData, newwindowNo);
+ }
+
+ if ($location.url() == "/curriculum-builder") {
+
+ // open exist cb here
+ }
+ else if ($location.url() == "/curriculum-builder-detail") {
+
+ window.parent.AIAModuleOpenResoureInCB(newWindowData);
+ }
+ else if (($location.url() == "/da-body-view")) {
+
+ $scope.loadOpenResourceWindow(newWindowData.mType, '#daBodyview');
+ }
+ else if ($location.url() == "/clinical-illustrations-detail") {
+ $scope.loadOpenResourceWindow(newWindowData.mType, '#CIView');
+ }
+ else if ($location.url() == "/module-item-view") {
+
+ $scope.loadOpenResourceWindow(newWindowData.mType, '#aaBodyView');
+ }
+ else if ($location.url() == "/clinical-animations-detail") {
+ $scope.loadOpenResourceWindow(newWindowData.mType, '#CAView');
+ }
+ else if ($location.url() == "/adam-images-detail") {
+ $scope.loadOpenResourceWindow(newWindowData.mType, '#AIView');
+ }
+ else if ($location.url() == "/3d-anatomy-details") {
+
+ $scope.loadOpenResourceWindow(newWindowData.mType, '#ThreeDView');
+ }
+
+ }, 500);
+
+
+ }
+
+ $scope.loadOpenResourceWindow = function (moduleName,BasemoduleDivId)
+ {
+ switch (moduleName) {
+ case "DISSECTIBLE_ANATOMY":
+ var daSectionExist = document.getElementById('daCustomModuleDiv');
+
+ if (daSectionExist == null && BasemoduleDivId != "#daBodyview") {
+ $(BasemoduleDivId).append($('
'));
+ var html = $('#daCustomModuleDiv').append("
");
+ $compile(html)($scope);
+ }
+ else {
+ // open another DA module
+ $rootScope.openDABodyViewMain();
+ }
+ break;
+ case "ATLAS_ANATOMY":
+ var aaSectionExist = document.getElementById('aaCustomModuleDiv');
+
+ if (aaSectionExist == null && BasemoduleDivId != "#aaBodyView") {
+ $(BasemoduleDivId).append($('
'));
+ var html = $('#aaCustomModuleDiv').append("
");
+ $compile(html)($scope);
+ }
+ else {
+ // open another AA module
+ $rootScope.openAAModuleItemMain();
+ }
+ break;
+ case "CLINICAL_ILLUSTRATIONS":
+ var ciSectionExist = document.getElementById('ciCustomModuleDiv');
+
+ if (ciSectionExist == null && BasemoduleDivId != "#CIView") {
+ $(BasemoduleDivId).append($('
'));
+ var html = $('#ciCustomModuleDiv').append("
");
+ $compile(html)($scope);
+ }
+ else {
+ // open another CI module
+ $rootScope.openCIBodyViewMain();
+ }
+ break;
+ case "ADAM_IMAGES":
+ var aiSectionExist = document.getElementById('aiCustomModuleDiv');
+
+ if (aiSectionExist == null && BasemoduleDivId != "#AIView") {
+ $(BasemoduleDivId).append($('
'));
+ var html = $('#aiCustomModuleDiv').append("
");
+ $compile(html)($scope);
+ }
+ else {
+ // open another AI module
+ $rootScope.OpenAdamImageViewMain();
+ }
+ break;
+ case "CLINICAL_ANIMATIONS":
+ var caSectionExist = document.getElementById('caCustomModuleDiv');
+
+ if (caSectionExist == null && BasemoduleDivId != "#CAView") {
+ $(BasemoduleDivId).append($('
'));
+ var html = $('#caCustomModuleDiv').append("
");
+ $compile(html)($scope);
+ }
+ else {
+ // open another CA module
+ $rootScope.openCABodyViewMain();
+ }
+ break;
+ case "THREE_D_ANATOMY":
+ var threeDSectionExist = document.getElementById('theeDCustomModuleDiv');
+
+ if (threeDSectionExist == null && BasemoduleDivId != "#ThreeDView") {
+ $(BasemoduleDivId).append($('
'));
+ var html = $('#theeDCustomModuleDiv').append("
");
+ $compile(html)($scope);
+ }
+ else {
+ // open another 3d module
+ $rootScope.Open3DModelBodyMain();
+ }
+
+ break;
+ }
+ }
+
+
$rootScope.forgotPwdModalShow = function () {
document.getElementById("forgetPwdForm").reset()
$("#forgotPwdModal").modal("show");
@@ -1419,7 +1598,7 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
$rootScope.disableMenuoption = " ";
$rootScope.disableSubMenu = "disableSubMenu";
$rootScope.disableFileMenu = " ";
- $rootScope.openResources = "openResources";
+ $rootScope.openResources = "";
$rootScope.OpenPitures = "OpenPitures";
$rootScope.newCurriculum = "newCurriculum";
$rootScope.openCurriculum = "openCurriculum";
@@ -1438,7 +1617,7 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
$("#optionsListManagerTab").addClass("disableSubMenu");
$("#optiontSetting").addClass("disableSubMenu");
$rootScope.disableFileMenu = " ";
- $rootScope.openResources = "openResources";
+ $rootScope.openResources = "";
$rootScope.OpenPitures = "OpenPitures";
$rootScope.newCurriculum = "newCurriculum";
$rootScope.openCurriculum = "openCurriculum";
@@ -1455,7 +1634,7 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
$rootScope.disableSubMenu = "disableSubMenu";
$("#annotationToolBarOptions").removeClass("disableSubMenu");
$rootScope.disableFileMenu = " ";
- $rootScope.openResources = "openResources";
+ $rootScope.openResources = "";
$rootScope.OpenPitures = "OpenPitures";
$rootScope.newCurriculum = "newCurriculum";
$rootScope.openCurriculum = "openCurriculum";
@@ -1472,11 +1651,19 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
$rootScope.disableSubMenu = "disableSubMenu";
$("#annotationToolBarOptions").addClass("disableSubMenu");
$("#optionsListManagerTab").addClass("disableSubMenu");
- $rootScope.disableFileMenu = "disableFileMenu";
+ $rootScope.disableFileMenu = " ";
+ $rootScope.openResources = "";
+ $rootScope.OpenPitures = "OpenPitures";
+ $rootScope.newCurriculum = "newCurriculum";
+ $rootScope.openCurriculum = "openCurriculum";
+ $rootScope.saveCurriculam = "saveCurriculam";
+ $rootScope.PrintPreview = "PrintPreview";
+ $rootScope.PrintViewer = "PrintViewer";
+ $rootScope.exportImage = "exportImage";
}
else if ($location.url() == "/curriculum-builder") {
- $rootScope.openResources = "openResources";
+ $rootScope.openResources = "";
$rootScope.disableMenuannotation = "disableMenuannotation";
$rootScope.disableMenuoption = "disableMenuoption";
@@ -1506,14 +1693,14 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
$scope.EnableDisableExportImage();
}
else if ($location.url() == "/adam-images-detail") {
- //Modified code by sandeep for fixed bug-57956
$rootScope.disableMenuannotation = " ";
$rootScope.disableMenuoption = " ";
- $("#optiontSetting").addClass("disableSubMenu");
$rootScope.disableSubMenu = "disableSubMenu";
$("#annotationToolBarOptions").removeClass("disableSubMenu");
+ $("#optionsListManagerTab").addClass("disableSubMenu");
+ $("#optiontSetting").addClass("disableSubMenu");
$rootScope.disableFileMenu = " ";
- $rootScope.openResources = "openResources";
+ $rootScope.openResources = "";
$rootScope.OpenPitures = "OpenPitures";
$rootScope.newCurriculum = "newCurriculum";
$rootScope.openCurriculum = "openCurriculum";
@@ -1523,6 +1710,22 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
//enableDisable export option
$scope.EnableDisableExportImage();
}
+ else if ($location.url() == "/3d-anatomy-details") {
+ $rootScope.disableMenuannotation = "disableMenuannotation";
+ $rootScope.disableMenuoption = "disableMenuoption";
+ $rootScope.disableSubMenu = "disableSubMenu";
+ $("#annotationToolBarOptions").addClass("disableSubMenu");
+ $("#optionsListManagerTab").addClass("disableSubMenu");
+ $rootScope.disableFileMenu = " ";
+ $rootScope.openResources = "";
+ $rootScope.OpenPitures = "OpenPitures";
+ $rootScope.newCurriculum = "newCurriculum";
+ $rootScope.openCurriculum = "openCurriculum";
+ $rootScope.saveCurriculam = "saveCurriculam";
+ $rootScope.PrintPreview = "PrintPreview";
+ $rootScope.PrintViewer = "PrintViewer";
+ $rootScope.exportImage = "exportImage";
+ }
else {
$("#annotationToolBarOptions").removeClass("disableSubMenu");
$("#optionsListManagerTab").removeClass("disableSubMenu");
@@ -1595,7 +1798,12 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
$rootScope.resetjsPanelTop = function () {
$timeout(function () {
- var firsttopPosition = 680;
+ var firsttopPosition = 70;
+ if ($location.url() == "/curriculum-builder-detail") {
+
+ firsttopPosition = 680;
+ }
+
var moduleImagePanel = $("div[id*='ImagePanel']");
if (moduleImagePanel.length > 0) {
@@ -2667,7 +2875,7 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
$scope.canvasElement = null;
$scope.canvasPaintElement = null;
$scope.canvasDivElement = null;
- if ($location.url() == "/da-body-view" || $location.url() == "/module-item-view" || $location.url() == "/clinical-illustrations-detail") {
+ if ($location.url() == "/da-body-view" || $location.url() == "/module-item-view" || $location.url() == "/clinical-illustrations-detail" || $location.url() == "/adam-images-detail") {
if ($location.url() == "/da-body-view") {
var MultiWinId = $rootScope.GetDaWindowId();
$scope.canvasElement = document.getElementById('canvasDA_' + MultiWinId);
@@ -2686,6 +2894,12 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
$scope.canvasPaintElement = document.getElementById('canvasPaintCI_' + MultiWinId);
$scope.canvasDivElement = document.getElementById('canvasDivCI_' + MultiWinId);
}
+ else if ($location.url() == "/adam-images-detail") {
+ var MultiWinId = $rootScope.GetAIWindowId();
+ $scope.canvasElement = document.getElementById('canvasAI_' + MultiWinId);
+ $scope.canvasPaintElement = document.getElementById('canvasPaintAI_' + MultiWinId);
+ $scope.canvasDivElement = document.getElementById('canvasDivAI_' + MultiWinId);
+ }
}
else {
@@ -2725,9 +2939,9 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
}
else if (modulePanelName.match("aiImagePanel")) {
- $scope.canvasDivElement = document.getElementById('canvasDiv');
- // to be continue.....
-
+ var len = (modulePanelName).split("_").length;
+ var MultiWinId = (modulePanelName).split("_")[len - 1];
+ $scope.canvasDivElement = document.getElementById('canvasDivAI_' + MultiWinId);
}
}
@@ -2756,7 +2970,9 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
$scope.canvasDivElement = document.getElementById('canvasDivCI_' + MultiWinId);
}
else if ($rootScope.panelNameWithCb.match("aiImagePanel")) {
- // to be continue.....
+ var len = ($rootScope.panelNameWithCb).split("_").length;
+ var MultiWinId = ($rootScope.panelNameWithCb).split("_")[len - 1];
+ $scope.canvasDivElement = document.getElementById('canvasDivAI_' + MultiWinId);
}
}
@@ -6075,6 +6291,11 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
if ($('#printDivContent').html() != "") {
$('#printDivContent').empty();
}
+
+ var multiprint = function (canvasId, page, title, delaytime) {
+ $timeout(function () { CollectPrintData(canvasId, page, title) }, delaytime);
+ };
+
var pageno = 0;
// select all open module div.
// var modulePanel = $("#HomeContainerDiv").find("div[id*='ImagePanel']").not("div[id*='caImagePanel']").not("div[id*='3DImagePanel']");
@@ -6083,9 +6304,7 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
for (var i = 0 ; i < modulePanel.length; i++) {
var paneld = modulePanel[i].id;
-
- pageno = pageno + 1;
-
+
var panelTitle = document.getElementById(paneld).childNodes[0].innerText;
$scope.GetDocumentPrintElementCB(paneld);
@@ -6094,20 +6313,13 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
if (canvasDivElement == null) return;
var canvasDivId = canvasDivElement.id;
- if (pageno == 1) {
- CollectPrintData(canvasDivId, pageno, panelTitle);
- }
- else {
- $timeout(function () {
- // update timeout for mutiple image print
- CollectPrintData(canvasDivId, pageno, panelTitle);
- }, pageno * 200);
-
- }
+
+ var timeintrval = pageno * 400;
+
+ multiprint(canvasDivId, pageno, panelTitle,timeintrval);
- if(pageno==modulePanel.length)
+ if(pageno==modulePanel.length-1)
{
- if (pageno == 1) pageno = 0;
$timeout(function () {
var $ua = navigator.userAgent;
@@ -6118,13 +6330,13 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
SetFrameToPrint();
}
- }, pageno * 200+500);
+ }, pageno * 400+500);
}
-
+ pageno = pageno + 1;
}
-
+
}
@@ -6417,14 +6629,18 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
$("#" + aaImagePanel).css({ "display": "none", "pointer-events": "none", "opacity": ".5" });
}
+ else if ($location.url() == "/adam-images-detail") {
+ var MultiWinId = $rootScope.GetAIWindowId();
+ ImagePanelElement = document.getElementById('aiImagePanel_' + MultiWinId);
+ var aaImagePanel = ImagePanelElement.id;
+
+ $("#" + aaImagePanel).css({ "display": "none", "pointer-events": "none", "opacity": ".5" });
+ }
else if ($location.url() == "/curriculum-builder-detail") {
$("#CBDetailPageDiv").css({ "display": "none", "pointer-events": "none", "opacity": ".5" });
}
- $("#aiImagePanel").css({ "display": "none", "pointer-events": "none", "opacity": ".5" });
-
-
$.jsPanel({
id: 'jsPanel-1',
selector: '#dvPrintPreview',
@@ -6603,12 +6819,17 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
$("#" + aaImagePanel).css({ "display": "block", "pointer-events": "auto", "opacity": "1" });
}
+ else if ($location.url() == "/adam-images-detail") {
+ var MultiWinId = $rootScope.GetAIWindowId();
+ ImagePanelElement = document.getElementById('aiImagePanel_' + MultiWinId);
+ var aaImagePanel = ImagePanelElement.id;
+
+ $("#" + aaImagePanel).css({ "display": "block", "pointer-events": "auto", "opacity": "1" });
+ }
else if ($location.url() == "/curriculum-builder-detail") {
$("#CBDetailPageDiv").css({ "display": "block", "pointer-events": "auto", "opacity": "1" });
}
- $("#aiImagePanel").css({ "display": "block", "pointer-events": "auto", "opacity": "1" });
-
if ($location.url() != "/curriculum-builder-detail") {
$("#annotationButton").parent().removeClass("disableMenuannotation");
}
@@ -6624,11 +6845,13 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
});
- $(document).on('click', '#OpenResourcePanel .jsglyph-remove', function () {
+ $(document).on('click', '#dvOpenResourcePanel .jsglyph-remove', function () {
- $("#CBDetailPageDiv").css({ "display": "block", "pointer-events": "auto", "opacity": "1" });
+ $("#HomeContainerDiv").css({ "display": "block", "pointer-events": "auto", "opacity": "1" });
$(".navbar-fixed-top").css({ "display": "block", "pointer-events": "auto", "opacity": "1" });
$("#topMenuBar").css({ "display": "block", "pointer-events": "auto", "opacity": "1" });
+
+ $('#dvOpenResourcePanel').remove();
sessionStorage.removeItem('isModuleOpenByOpenResource');
});
@@ -6872,23 +7095,33 @@ function printImagePreview(event) {
}
-function loadOpenResource(iframe) {
+function OpenResourcePanel(iframe) {
console.log('resource loading')
var scope = angular.element(document.querySelector('[ng-controller="HomeController"]')).scope();
scope.$apply(function () {
- scope.loadOpenResource(iframe);
+ scope.OpenResourcePanel(iframe);
});
}
function closeIFrame() {
- $('#OpenResourcePanel').remove();
- $("#CBDetailPageDiv").css({ "display": "block", "pointer-events": "auto", "opacity": "1" });
+ $('#dvOpenResourcePanel').remove();
+ $("#HomeContainerDiv").css({ "display": "block", "pointer-events": "auto", "opacity": "1" });
$(".navbar-fixed-top").css({ "display": "block", "pointer-events": "auto", "opacity": "1" });
$("#topMenuBar").css({ "display": "block", "pointer-events": "auto", "opacity": "1" });
}
+function AIAModuleOpenResourceInfo(windowData) {
+ sessionStorage.removeItem('isModuleOpenByOpenResource');
+ window.parent.closeIFrame();
+ var scope = angular.element(document.querySelector('[ng-controller="HomeController"]')).scope();
+ scope.$apply(function () {
+ scope.AIAModuleOpenResourceInfo(windowData);
+ });
+
+}
+
diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
index 0aa0761..fafce4e 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -49,8 +49,8 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
}
};
- $scope.initializeAAWindowData = function(windowviewid,isOpenWithExistsModule,cbwindowid){
- if(isOpenWithExistsModule ||cbwindowid==0)
+ $scope.initializeAAWindowData = function(windowviewid,isOpenWithExistsModule,openPanelNo){
+ if (isOpenWithExistsModule || openPanelNo == 0)
{
if ($rootScope.AAWindowData != undefined) {
$rootScope.AAWindowData.length = 0;
@@ -205,16 +205,26 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$('#CBDetailPageDiv').css('opacity', '1');
}
- $scope.loadForModuleById = function (moduleId) {
- // clear data set by curriculum builder
- $rootScope.isCallFromOtherModule = undefined;
+ $scope.loadForModuleById = function (moduleId) {
+ $scope.DisableUI();
+ $rootScope.isCallFromOtherModule = undefined;
$rootScope.MULTI_VIEW_ID += 1
- // $scope.ScopeVariablesDeclare();
+
+ // store exist module in module service
+ var ExistData = ModuleService.getModuleData("ATLAS_ANATOMY");
+
+ if (ExistData != undefined && ExistData.length > 0) {
+ // clear all module data before open new module in cb
+ ModuleService.ClearWinDataByModule(ExistData.mType);
+ }
+ var newWindowData = {
+ "mType": 'ATLAS_ANATOMY',
+ };
+ ModuleService.setModuleData(newWindowData, 0);
$scope.initializeAAWindowData($rootScope.MULTI_VIEW_ID,true,undefined);
- $scope.DisableUI();
$rootScope.isLoading = true;
$('#spinner').css('visibility', 'visible');
$rootScope.openModules.push({ "ModuleId": 2 });
@@ -281,22 +291,49 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$scope.EnableUI();
$rootScope.isLoading = false;
$('#spinner').css('visibility', 'hidden');
- }, 200);
+ }, 600);
$('#list-view').css('display', 'none');
}
- $scope.openModuleItemView = function ($event) {
+ $scope.openModuleItemView = function ($event) {
+
+ var windowviewid = $rootScope.MULTI_VIEW_ID;
+ $rootScope.MenuModuleName = "AA";
+ localStorage.setItem("activeTab", $scope.activeTab);
+
+ //0. Get selected Image Id
+ if ($scope.isListViewButtonClicked == true) {
+ if ($scope.isOpenBtnClicked == true) {
+
+ var moduleItemDataToBeSaved = $("#demoText").text().trim();
+ var moduleItemDataToBeSavedID = $event.target.id;
+ $scope.isOpenBtnClicked = false;
+ }
+ else {
+ var moduleItemDataToBeSavedID = $event.currentTarget.id;
+ localStorage.setItem("listViewSelectedID", moduleItemDataToBeSavedID);
+ var moduleItemDataToBeSaved = $("#list-view table tbody #" + moduleItemDataToBeSavedID).find('td:eq(0)').text().trim();
+ }
+ }
+ else {
+ var moduleItemDataToBeSavedID = $event.currentTarget.id;
+ localStorage.setItem("listViewSelectedID", moduleItemDataToBeSavedID);
+ var moduleItemDataToBeSaved = $event.target.id;
+
+ $scope.isListViewButtonClicked = false;
+ }
+
// open module bu openresource
var isopenResourceRequest = sessionStorage.getItem('isModuleOpenByOpenResource');
if (isopenResourceRequest == "true") {
//set default module data
var AAopenData = {
- "id": $event.currentTarget.id,
+ "id": moduleItemDataToBeSavedID,
"mType": 'ATLAS_ANATOMY',
"showAllPins":true,
- "windowTitle": $event.currentTarget.textContent,
+ "windowTitle": moduleItemDataToBeSaved,
"size": { height: 600, width: 900 }
};
@@ -307,29 +344,6 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
}
else
{
- var windowviewid = $rootScope.MULTI_VIEW_ID;
- $rootScope.MenuModuleName = "AA";
- localStorage.setItem("activeTab", $scope.activeTab);
-
- //0. Get selected Image Id
- if ($scope.isListViewButtonClicked == true) {
- if ($scope.isOpenBtnClicked == true) {
-
- var moduleItemDataToBeSaved = $("#demoText").text().trim();
- $scope.isOpenBtnClicked = false;
- }
- else {
- var moduleItemDataToBeSavedID = $event.currentTarget.id;
- localStorage.setItem("listViewSelectedID", moduleItemDataToBeSavedID);
- var moduleItemDataToBeSaved = $("#list-view table tbody #" + moduleItemDataToBeSavedID).find('td:eq(0)').text().trim();
- }
- }
- else {
- var moduleItemDataToBeSaved = $event.target.id;
- localStorage.setItem("listViewSelectedID", $event.currentTarget.id);
- $scope.isListViewButtonClicked = false;
- }
-
//1.Filter selected module ietem data and get the pushed opened moduile array object
var OpenedTileData = ModuleService.GetOpenedTileData(moduleItemDataToBeSaved, $scope.moduleLandingData);
@@ -381,7 +395,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
var OpenItemImagePath = "../../../content/images/aa/images/" +OpenedTileData[3];
$scope.SetAAwindowStoreData(windowviewid,'OpenItemImagePath',OpenItemImagePath);
$rootScope.listArray.push({ "imageName": OpenItemImagePath, "text": moduleItemDataToBeSaved });
- $("#viewList").append("
" + moduleItemDataToBeSaved + "
Open");
+ $("#viewList").append("
" + moduleItemDataToBeSaved + "
Open");
}
$rootScope.openAAModuleItemMain = function () {
@@ -393,13 +407,11 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$scope.wincount=1;
var winlen=$scope.AAModuleData.length;
var timeint = null;
- var slideId = "";
timeint = $interval(function() {
if($scope.readyToLoad==true)
{
var windata = $scope.AAModuleData[$scope.wincount - 1];
- slideId = windata.slideId; //use to skip last execution slide
$scope.openModuleItem(windata);
}
@@ -414,7 +426,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
if($scope.wincount==winlen && $rootScope.AAWindowLoadComplete==true)
{
$scope.stopInterval();
- $scope.$emit("LoadModuleComplete", "ATLAS_ANATOMY", slideId);
+ $scope.$emit("LoadModuleComplete", "ATLAS_ANATOMY");
}
@@ -555,7 +567,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
}
else {
- $scope.jsPanelWidth = $(window).outerWidth() - 10;
+ $scope.jsPanelWidth = $(window).outerWidth() - 20;
$scope.jsPanelHeight = $(window).outerHeight() - 125;
$scope.jsPanelLeft = 1;
$scope.jsPanelTop = 70;
@@ -600,10 +612,10 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$scope.setControlsIDs(windowviewid);
$scope.loadbtnNavigator(windowviewid);
- if ($rootScope.isCallFromOtherModule) {
- $scope.JsPanelclick(windowviewid);
- }
-
+ //if ($rootScope.isCallFromOtherModule) {
+ // $scope.JsPanelclick(windowviewid);
+ // }
+ $scope.JsPanelclick(windowviewid);
//if (document.getElementById('aaDetailPageDiv') != null) {
if (document.getElementById('aaBodyView') != null) {
@@ -893,6 +905,11 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
if (index != -1) {
// remove module which one is loaded
$scope.AAWindowData.splice(index, 1);
+ if ($('#' + panelid).html() != undefined) {
+
+ $('#' + panelid).remove();
+
+ }
$rootScope.resetjsPanelTop();
}
}
@@ -1172,7 +1189,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$scope.FilterByImage = function (moduleId, query,windowviewid) {
-
+ $scope.DisableUI();
if(windowviewid==undefined)
{
windowviewid= $rootScope.MULTI_VIEW_ID;
@@ -1335,9 +1352,10 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$('#ListViewDiv').append('
No illustration found for the selected search criteria! |
');
}
+ $timeout(function () { $scope.EnableUI(); }, 500);
},
function (error) {
- // handle errors here
+ $timeout(function () { $scope.EnableUI(); }, 500);
console.log(' error: ' + error.statusText);
}
)
@@ -1369,7 +1387,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$('#demoView').remove();
$scope.filterstring = false;
-
+
$scope.FilterByImage(1, query,windowviewid);
}
@@ -3087,4 +3105,5 @@ function systemChange(event) {
$("#" + event.currentTarget.id).parent().toggleClass('tools1');
$("#selectedTermName_"+windowviewid).parent().parent().parent().parent().parent().toggleClass('active');
-}
\ No newline at end of file
+ }
+
\ No newline at end of file
diff --git a/400-SOURCECODE/AIAHTML5.Web/app/directives/AIADirectives.js b/400-SOURCECODE/AIAHTML5.Web/app/directives/AIADirectives.js
index 3ae2d73..71a6be4 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/directives/AIADirectives.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/directives/AIADirectives.js
@@ -32,4 +32,11 @@ AIA.directive('threedAnatomyDirective', function (ModuleService) {
templateUrl: 'app/views/3dA/3d-anatomy-details.html',
}
+});
+AIA.directive('adamImageDirective', function (ModuleService) {
+ return {
+ //restrict: 'E',
+ templateUrl: 'app/views/ai/adam-images-detail.html',
+
+ }
});
\ No newline at end of file
diff --git a/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js b/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js
index b2010d1..04ae6c8 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js
@@ -1,6 +1,6 @@
'use strict';
-var AIA = angular.module('AIA', ['ngSanitize', 'ngRoute', 'ngStorage']);
+var AIA = angular.module('AIA', ['ngSanitize', 'ngRoute', 'ngStorage', 'ui.bootstrap']);
diff --git a/400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js b/400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js
index 7170d07..88c9c75 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js
@@ -13,6 +13,7 @@ moduleDataObj.DAData = [];
moduleDataObj.CIData = [];
moduleDataObj.CAData = [];
moduleDataObj.ThreeDData = [];
+moduleDataObj.AIData = [];
AIA.service('ModuleService', function ($http, DataService) {
return {
@@ -144,14 +145,15 @@ AIA.service('ModuleService', function ($http, DataService) {
return moduleDataObj.CAData;
else if (moduleName == "THREE_D_ANATOMY")
return moduleDataObj.ThreeDData;
+ else if (moduleName == "ADAM_IMAGES")
+ return moduleDataObj.AIData;
},
- setModuleData: function (windowData, windowId, SlideNo) {
+ setModuleData: function (windowData, windowId) {
if (windowData.mType == "THREE_D_ANATOMY") {
moduleDataObj.ThreeDData.push({
- slideId: SlideNo,
currentWindowId: windowId,
mType: windowData.mType,
threeDData:windowData.threeDData,
@@ -168,9 +170,26 @@ AIA.service('ModuleService', function ($http, DataService) {
contentPath: windowData.contentPath
});
}
+ else if (windowData.mType == "ADAM_IMAGES") {
+ moduleDataObj.AIData.push({
+ currentWindowId: windowId,
+ mType: windowData.mType,
+ containsCapturedContent: windowData.containsCapturedContent,
+ textVisible: windowData.textVisible,
+ anatomyTitle: windowData.windowTitle,
+ scrollPosition: windowData.scrollPosition,
+ imageId: windowData.imageId,
+ maximised: windowData.maximised,
+ minimised: windowData.minimised,
+ id: windowData.id,
+ position: windowData.position,
+ size: windowData.size,
+ contextMenu: windowData.contextMenu,
+ annotationData: windowData.annotationData
+ });
+ }
else if (windowData.mType == "CLINICAL_ANIMATIONS") {
moduleDataObj.CAData.push({
- slideId: SlideNo,
currentWindowId: windowId,
mType: windowData.mType,
containsCapturedContent: windowData.containsCapturedContent,
@@ -188,7 +207,6 @@ AIA.service('ModuleService', function ($http, DataService) {
}
else if (windowData.mType == "CLINICAL_ILLUSTRATIONS") {
moduleDataObj.CIData.push({
- slideId: SlideNo,
currentWindowId: windowId,
mType: windowData.mType,
containsCapturedContent: windowData.containsCapturedContent,
@@ -207,7 +225,6 @@ AIA.service('ModuleService', function ($http, DataService) {
}
else if (windowData.mType == "ATLAS_ANATOMY") {
moduleDataObj.AAData.push({
- slideId:SlideNo,
currentWindowId: windowId,
mType: windowData.mType,
anatomyTitle: windowData.windowTitle,
@@ -233,7 +250,6 @@ AIA.service('ModuleService', function ($http, DataService) {
}
else if (windowData.mType == "DISSECTIBLE_ANATOMY") {
moduleDataObj.DAData.push({
- slideId: SlideNo,
currentWindowId: windowId,
currentBodyViewId: windowData.id,
windowTitle: windowData.windowTitle,
@@ -287,6 +303,7 @@ AIA.service('ModuleService', function ($http, DataService) {
moduleDataObj.CIData = [];
moduleDataObj.CAData = [];
moduleDataObj.ThreeDData = [];
+ moduleDataObj.AIData = [];
},
ClearWinDataByModule: function (moduleName) {
@@ -310,6 +327,9 @@ AIA.service('ModuleService', function ($http, DataService) {
{
moduleDataObj.ThreeDData = [];
}
+ else if (moduleName == "ADAM_IMAGES") {
+ moduleDataObj.AIData = [];
+ }
},
diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/CBuild/curriculum-builder-detail.html b/400-SOURCECODE/AIAHTML5.Web/app/views/CBuild/curriculum-builder-detail.html
index fc675e8..5b47fb3 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/views/CBuild/curriculum-builder-detail.html
+++ b/400-SOURCECODE/AIAHTML5.Web/app/views/CBuild/curriculum-builder-detail.html
@@ -131,7 +131,7 @@
-