1'use strict'; 2 3(function(angular) { 4 5 angular.module('BruSo.visitor').controller('PrintInfoSelectionModalController', ['$location', '$routeParams', '$scope', '$http', '$translate', 'Results', 'TRANSLATE', 'MyFolders', 'Spinner', 6 function ($location, $routeParams, $scope, $translate, Results, TRANSLATE, MyFolders, Spinner) { 7 8 9 $scope.hasSelectedAll = false; 10 $scope.printOptions = {}; 11 $scope.printOptions.sectors = false; 12 $scope.printOptions.nameOfficial = true; 13 $scope.printOptions.nameAlternative = false; 14 $scope.printOptions.address = true; 15 $scope.printOptions.addressComplement = false; 16 $scope.printOptions.district = false; 17 $scope.printOptions.tel = true; 18 $scope.printOptions.fax = false; 19 $scope.printOptions.email = true; 20 $scope.printOptions.websiteOfficial = true; 21 $scope.printOptions.websiteUnofficial = false;
22 $scope.printOptions.permanency = true; 23 $scope.printOptions.activities = false; 24 $scope.printOptions.publicNl = false; 25 $scope.printOptions.access = false; 26 $scope.printOptions.offreLinguistique = false; 27 $scope.printOptions.offerTypes = false; 28 $scope.printOptions.actionZones = false; 29 $scope.printOptions.remark = false; 30 $scope.printOptions.agreements = false; 31 $scope.printOptions.pmRp = false; 32 $scope.printOptions.legalStatus = false; 33 $scope.printOptions.langStatus = false; 34 $scope.printOptions.linkSocialBrussels = false; 35 $scope.emitDownload = emitDownload; 36 $scope.setSelectAll = setSelectAll; 37 $scope.resetOptions = resetOptions; 38 function setSelectAll(){ 39 if($scope.hasSelectedAll){ 40 41 $scope.hasSelectedAll = false; 42 $scope.printOptions.sectors = false; 43 $scope.printOptions.nameOfficial = true; 44 $scope.printOptions.nameAlternative = false; 45 $scope.printOptions.address = true; 46 $scope.printOptions.addressComplement = false; 47 $scope.printOptions.district = false; 48 $scope.printOptions.tel = true; 49 $scope.printOptions.fax = false; 50 $scope.printOptions.email = true; 51 $scope.printOptions.websiteOfficial = true; 52 $scope.printOptions.websiteUnofficial = false;
53 $scope.printOptions.websiteInfo =false; 54 $scope.printOptions.permanency = true; 55 $scope.printOptions.activities = false; 56 $scope.printOptions.publicNl = false; 57 $scope.printOptions.access = false; 58 $scope.printOptions.offreLinguistique = false; 59 $scope.printOptions.offerTypes = false; 60 $scope.printOptions.actionZones = false; 61 $scope.printOptions.remark = false; 62 $scope.printOptions.agreements = false; 63 $scope.printOptions.pmRp = false; 64 $scope.printOptions.legalStatus = false; 65 $scope.printOptions.langStatus = false; 66 $scope.printOptions.linkSocialBrussels = false; 67 }else{ 68 $scope.hasSelectedAll = true; 69 $scope.printOptions.sectors = true; 70 $scope.printOptions.nameOfficial = true; 71 $scope.printOptions.nameAlternative = true; 72 $scope.printOptions.address = true; 73 $scope.printOptions.addressComplement = true; 74 $scope.printOptions.district = true; 75 $scope.printOptions.tel = true; 76 $scope.printOptions.fax = true; 77 $scope.printOptions.email = true; 78 $scope.printOptions.websiteOfficial = true; 79 $scope.printOptions.websiteUnofficial = true; 80 $scope.printOptions.websiteInfo = true; 81 $scope.printOptions.permanency = true; 82 $scope.printOptions.activities = true; 83 $scope.printOptions.publicNl = true; 84 $scope.printOptions.access = true; 85 $scope.printOptions.offreLinguistique = true; 86 $scope.printOptions.offerTypes = true; 87 $scope.printOptions.actionZones = true; 88 $scope.printOptions.remark = true; 89 $scope.printOptions.agreements = true; 90 $scope.printOptions.pmRp = true; 91 $scope.printOptions.legalStatus = true; 92 $scope.printOptions.langStatus = true; 93 $scope.printOptions.linkSocialBrussels = true; 94 } 95 } 96 97 function resetOptions(){ 98 $scope.printOptions.sectors = false; 99 $scope.printOptions.nameOfficial = true; 100 $scope.printOptions.nameAlternative = false; 101 $scope.printOptions.address = true; 102 $scope.printOptions.addressComplement = false; 103 $scope.printOptions.district = false; 104 $scope.printOptions.tel = true; 105 $scope.printOptions.fax = false; 106 $scope.printOptions.email = true; 107 $scope.printOptions.websiteOfficial = true; 108 $scope.printOptions.websiteInfo = false; 109 $scope.printOptions.websiteUnofficial = false;
110 $scope.printOptions.permanency = true; 111 $scope.printOptions.activities = false; 112 $scope.printOptions.publicNl = false; 113 $scope.printOptions.access = false; 114 $scope.printOptions.offreLinguistique = false; 115 $scope.printOptions.offerTypes = false; 116 $scope.printOptions.actionZones = false; 117 $scope.printOptions.remark = false; 118 $scope.printOptions.agreements = false; 119 $scope.printOptions.pmRp = false; 120 $scope.printOptions.legalStatus = false; 121 $scope.printOptions.langStatus = false; 122 $scope.printOptions.linkSocialBrussels = false; 123 } 124 function emitDownload() { 125 angular.element('#infoSelectionModal').modal('hide'); 126 angular.element('#spinnerModal').modal('show'); 127 $scope.$emit('startPostRequest',{array : $scope.printOptions}); 128 } 129 130 131 } 132 ] 133 ); 134})(angular);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.