summaryrefslogtreecommitdiffstats
path: root/silpa/modules/soundex/soundex.py
diff options
context:
space:
mode:
authorSanthosh Thottingal <santhosh.thottingal@gmail.com>2009-07-19 18:32:04 +0530
committerSanthosh Thottingal <santhosh.thottingal@gmail.com>2009-07-19 18:32:04 +0530
commitc8a17ee264a269a59651936b34a960f4d40a9074 (patch)
tree3b2b21be4668f50a5c5f307c89e42323b8a8c292 /silpa/modules/soundex/soundex.py
parent05f7f938168f9b3195c9b101f4b98f298ab2e981 (diff)
downloadAnjaliOldLipi.git-c8a17ee264a269a59651936b34a960f4d40a9074.tar.gz
AnjaliOldLipi.git-c8a17ee264a269a59651936b34a960f4d40a9074.tar.xz
AnjaliOldLipi.git-c8a17ee264a269a59651936b34a960f4d40a9074.zip
JSON RPC Based new architecture and corresponding changes
Diffstat (limited to 'silpa/modules/soundex/soundex.py')
-rw-r--r--silpa/modules/soundex/soundex.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/silpa/modules/soundex/soundex.py b/silpa/modules/soundex/soundex.py
index 3325dd1..3444e42 100644
--- a/silpa/modules/soundex/soundex.py
+++ b/silpa/modules/soundex/soundex.py
@@ -85,7 +85,7 @@ class Soundex(SilpaModule):
Search :<input type="text" name="search_key" value="%s"/>
</br>
<input type="hidden" name="action" value="Soundex">
- <input type="submit" id="ApproximateSearch" value="Search" style="width:12em;"/>
+ <input type="submit" id="SoundexSearch" value="Search" style="width:12em;"/>
</p>
</form>
"""
@@ -103,15 +103,17 @@ class Soundex(SilpaModule):
word=word.strip()
if(word>""):
if word[0]>'0' and word[0]<'Z':
+ soundexStr=self.soundex(word, indic=False)
if self.compare(word, key, False) :
- response += "<div style='float: left; background-color: yellow;'>"+word+"</div>"
+ response += "<div style='float: left; background-color: yellow;' title='"+soundexStr+"'>"+word+"</div>"
else:
- response += "<div style='float: left;'>"+word+"</div>"
+ response += "<div style='float: left;' title='"+soundexStr+"'>"+word+"</div>"
else:
+ soundexStr=self.soundex(word, indic=False)
if self.compare(word, key, True) :
- response += "<div style='float: left; background-color: yellow;'>"+word+"</div>"
+ response += "<div style='float: left; background-color: yellow;' title='"+soundexStr+"'>"+word+"</div>"
else:
- response += "<div style='float: left;'>"+word+"</div>"
+ response += "<div style='float: left;' title='"+soundexStr+"'>"+word+"</div>"
response = response+ "<div style='float: left;'>&nbsp;</div>"
else: