Skip to content

Commit 8ae7477

Browse files
BeduinBeduin
authored andcommitted
2 parents 743ce72 + 79c5df3 commit 8ae7477

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

CSP/csp/docsearch/js/app/app-controller.js

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ searchApp
3838
$scope.link="http://"+ location.host +"/csp/docbook/DocBook.UI.Page.cls?KEY=";
3939

4040
$scope.SwitchClick = function(){
41-
if($scope.frankenshtein == true){
41+
if($scope.frankenshtein == true)
4242
$scope.frankenshtein = false;
43-
}
44-
else {
45-
$scope.frankenshtein = true;}
43+
else
44+
$scope.frankenshtein = true;
4645
}
4746
$scope.SwitchClickV2 = function(){
4847
$scope.SwitchClick();
@@ -58,22 +57,22 @@ searchApp
5857
}
5958
});
6059

61-
$scope.phraseClear = function() {
60+
$scope.phraseClear = function () {
6261
$scope.search.phrase = "";
6362
$scope.makeSearch();
6463
}
6564

66-
$scope.anyWordsClear = function() {
65+
$scope.anyWordsClear = function () {
6766
$scope.search.anyWords = "";
6867
$scope.makeSearch();
6968
}
7069

71-
$scope.withoutClear = function() {
70+
$scope.withoutClear = function () {
7271
$scope.search.without = "";
7372
$scope.makeSearch();
7473
}
7574

76-
$scope.clearAll = function() {
75+
$scope.clearAll = function () {
7776
$scope.search.words = "";
7877
$scope.search.phrase = "";
7978
$scope.search.anyWords = "";
@@ -86,13 +85,13 @@ searchApp
8685
$http.get(baseUrl + 'GetSimilar/' + $scope.search.words)
8786
.then(function(response) {
8887
$scope.searchItems = response.data.entities;
88+
8989
if(angular.isDefined($scope.searchItems))
90-
if($scope.searchItems.length != 0 ){
90+
if($scope.searchItems.length != 0 )
9191
if (($scope.searchItems[0].value == " ") || ($scope.search.words == ""))
92-
$scope.inputToggle = false;
92+
$scope.inputToggle = false;
9393
else
94-
$scope.inputToggle = true;
95-
}
94+
$scope.inputToggle = true;
9695
});
9796
$scope.inputToggle = false;
9897
}

src/cls/iKnowDoc/Search/SearchPages.cls

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ ClassMethod FormQuery(obj) As %Status
2828
// all these words:
2929
//set words=obj.words
3030
set words= $ZCONVERT(obj.words,"O","HTML")
31-
set words = $REPLACE(words,"é","é")
32-
set words = $REPLACE(words,"ñ","ñ")
31+
/*set words = $REPLACE(words,"é","é")
32+
set words = $REPLACE(words,"ñ","ñ")*/
3333
// this exact word or phrase:
3434
set phrase=obj.phrase
3535
// any of these words:
@@ -185,8 +185,8 @@ ClassMethod FormQuery(obj) As %Status
185185
while subresult.%Next() {
186186
if subresult.text'="" {
187187
set subtextKey = result.docKey_"#"_subresult.textKey
188-
//set textInfoJSON = {"text":(subresult.text), "textKey":(subtextKey)}
189-
set textInfoJSON = {"text":($ZCONVERT(subresult.text,"I","HTML")), "textKey":(subtextKey)}
188+
set textInfoJSON = {"text":(subresult.text), "textKey":(subtextKey)}
189+
//set textInfoJSON = {"text":($ZCONVERT(subresult.text,"I","HTML")), "textKey":(subtextKey)}
190190
do tJSON.textInfo.%Push(textInfoJSON)
191191
}
192192
}

0 commit comments

Comments
 (0)