...
Code Block |
---|
... Imports... <%@ page import="org.dspace.eperson.BookmarkManager" %> ... Initialization... Context context = UIUtil.obtainContext(request); Map taglist = null; if (user != null) taglist = BookmarkManager.getBookmarkTags(context,user); %> ... Display: <% if (taglist != null) { %> <li><a href="<%= request.getContextPath() %>/bookmark"><fmt:message key="jsp.mydspace.main.bookmarks.link"/></a> <ul> <% Iterator curTag = taglist.keySet().iterator(); while (curTag.hasNext()) { String aTag = (String) curTag.next(); Integer aFreq = (Integer) taglist.get(aTag); %><li><a href="<%= request.getContextPath() %>/bookmark?tag=<%= aTag %>"><%=aTag%> (<%=aFreq.intValue()%>)</a></li><% } %> </ul></li> <% } %> |
in WEB-INF/web.xml:
You must add the definitions for the two new servlets (tagging servlet and tags list servlet):
...
For any help, I check the DSpace Developpers list often.
Good luck!
Christophe Dupriez