*/
@Override
public void addOptions(Options options) throws SAXException, WingException,
UIException, SQLException, IOException, AuthorizeException
{
DSpaceObject dso = HandleUtil.obtainHandle(objectModel);
List browse = options.addList("browse");
browse.setHead(T_head_browse);
List browseGlobal = browse.addList("global");
// browseGlobal.setHead(T_head_all_of_dspace);
// browseGlobal.addItemXref(contextPath + "/community-list", T_communities_and_collections);
// Add the configured browse lists for 'top level' browsing
addBrowseOptions(browseGlobal, contextPath + "/browse");
List browseContext = browse.addList("context");
if (dso != null)
{
if (dso instanceof Collection)
{
browseContext.setHead(T_head_this_collection);
// Add the configured browse lists for scoped browsing
String handle = dso.getHandle();
addBrowseOptions(browseContext, contextPath + "/handle/" + handle + "/browse");
//browseContext.addItem().addXref(contextPath + "/discovery/?q=search.resourcetype%3A2+AND+location%3Al" + dso.getID(), T_head_this_collection );
}
if (dso instanceof Community)
{
browseContext.setHead(T_head_this_community);
// Add the configured browse lists for scoped browsing
String handle = dso.getHandle();
addBrowseOptions(browseContext, contextPath + "/handle/" + handle + "/browse");
//browseContext.addItem().addXref(contextPath + "/discovery/?q=search.resourcetype%3A2+AND+location%3Am" + dso.getID(), T_head_this_community );
}
}
}