Issue Number | 4520 |
---|---|
Summary | [Term] Advanced Search filters not working |
Created | 2018-09-14 15:22:13 |
Issue Type | Bug |
Submitted By | Osei-Poku, William (NIH/NCI) [C] |
Assigned To | Kline, Bob (NIH/NCI) [C] |
Status | Closed |
Resolved | 2019-06-19 17:05:17 |
Resolution | Fixed |
Path | /home/bkline/backups/jira/ocecdr/issue.233121 |
When doing a wildcard terminology Advanced search, limiting the search by Term Type and/or Semantic Type, produces the same results. Could you please make changes so that those filters are properly applied to searches?
Found the bug. We can fix it in Ising, though if we have time we should consider overhauling the "Advanced Search" component, partly for stylistic consistency with the rest of the system, but much more importantly for cleanup of code which is obscure and difficult to maintain.
--- a/Inetpub/wwwroot/cgi-bin/cdr/TermSearch.py
+++ b/Inetpub/wwwroot/cgi-bin/cdr/TermSearch.py
@@ -56,7 +56,7 @@ def termTypeList(conn, fName):
= [row[0] for row in query.execute(cursor).fetchall()]
values except Exception, e:
'Failure retrieving term type list from CDR: %s' % e)
cdrcgi.bail(- select = B.SELECT(name="%s")
+ select = B.SELECT(name=fName)
u"\xa0", value="", checked="checked"))
select.append(B.OPTION(for value in values:
+ u" \xa0", value=value))
select.append(B.OPTION(value @@ -76,7 +76,7 @@ def semanticTypeList(conn, fName):
cursor.close()except Exception, e:
'Failure retrieving semantic type list from CDR: %s' % e)
cdrcgi.bail(- select = B.SELECT(name="%s")
+ select = B.SELECT(name=fName)
u"\xa0", value="", checked="checked"))
select.append(B.OPTION(for id, title in rows:
id = cdr.normalize(id)
Fixed on DEV (without addressing the broader issues, since that suggestion got no response).
Verified on DEV. Thanks!
Verified on QA. Thanks!
Verified on PROD. Thanks!
Elapsed: 0:00:00.001158