Changeset 21878

Show
Ignore:
Timestamp:
14.04.2010 11:20:25 (10 years ago)
Author:
kjdon
Message:

we need to keep the original version of the search word to display for the title of the result box for the case where there are no results. Otherwise you end up with URL encoded version being displayed, which is fine for english, but not for arabic.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/java/org/nzdl/gsdl/Phind/Phind.java

    r8928 r21878  
    301301         
    302302        setSearchTerm(searchWord); 
     303        // we need to keep the original version of the search word to  
     304        // display for the title of the result box for the case where  
     305        // there are no results. Otherwise you end up with URL encoded  
     306        // version being displayed. 
     307        String originalSearchWord = searchWord; 
    303308 
    304309        // Convert the String from UTF8 charaters into  
     
    310315        setStatus("searching for \"" + searchWord + "\"");  
    311316        firstDisplay.emptyContents(); 
    312         ResultBox result = lookupPhraseOnServer(null, false, searchWord, searchWord, 2); 
     317        ResultBox result = lookupPhraseOnServer(null, false, searchWord, originalSearchWord, 2); 
    313318 
    314319        // if there is an error, return