Remove illegal ccl characters from subject refinements.
authorAnders S. Mortensen <sondberg@indexdata.dk>
Mon, 18 Dec 2006 14:14:43 +0000 (14:14 +0000)
committerAnders S. Mortensen <sondberg@indexdata.dk>
Mon, 18 Dec 2006 14:14:43 +0000 (14:14 +0000)
www/test1/index.html

index 6ea1e45..9360c46 100644 (file)
@@ -166,8 +166,10 @@ function check_search()
 
 function refine_query (obj) {
     var query_cell = document.getElementById('query');
-
-    query_cell.value += ' and su=' + obj.innerHTML;
+    var subject = obj.innerHTML;
+    
+    subject = subject.replace(/[\(\)]/g, '');
+    query_cell.value += ' and su=(' + subject + ')';
     start_search();
 }