Show
Ignore:
Timestamp:
11.01.2011 14:41:16 (9 years ago)
Author:
ak19
Message:

Fixed minor bug in phrase browser where clicking on a link in the resultset of the Resultcanvas would bring up the document with all individual terms in that phrase highlighted (including words like The). Kathy worked out that this was because the q query argument in the url needed quotes around it to do the right thing. Looking in the code, it turned out there was one instance where quotes were not added around the q query argument.

Files:
1 modified

Legend:

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

    r2507 r23546  
    531531            + "a=d&c=" + phind.collection  
    532532            + "&d=" + item.hiddenText() 
    533             + "&q=" + parent.searchPhrase.replace(' ', '+'); 
     533            + "&q=%22" + parent.searchPhrase.replace(' ', '+') + "%22"; 
    534534            phind.displayWebPage(address, phind.documentWindowName); 
    535535        }