mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
url encode tag cloud's links (again!)
This commit is contained in:

committed by
Ivan Masár

parent
788c73e7ed
commit
5c10a0eedf
@@ -79,7 +79,7 @@ public class TagCloudTag extends SimpleTagSupport{
|
||||
for (String subject : data.keySet()){
|
||||
if (data.get(subject).intValue() > Integer.parseInt(parameters.getCuttingLevel())){
|
||||
for (int i=0; i<data.get(subject).intValue(); i++){
|
||||
Tag tag2 = new Tag(subject, ((HttpServletRequest) pageContext.getRequest()).getContextPath()+(scope!=null?scope:"")+(type.equals("0")?("/simple-search?filterquery="+URLEncoder.encode(subject,"UTF-8")+"&filtername="+index+"&filtertype=equals"):("/browse?type="+index+"&value="+URLEncoder.encode(subject,"UTF-8")))); // creates a tag
|
||||
Tag tag2 = new Tag(subject, ((HttpServletRequest) pageContext.getRequest()).getContextPath()+(scope!=null?scope:"")+(type.equals("0")?("/simple-search?filterquery="+URLEncoder.encode(subject,"UTF-8")+"&filtername="+index+"&filtertype=equals"):("/browse?type="+index+"&value="+subject))); // creates a tag
|
||||
//tag2.setScore(subjects.get(subject).doubleValue());
|
||||
cloud.addTag(tag2);
|
||||
}
|
||||
|
Reference in New Issue
Block a user