public void addOptions(Options options) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { List test = options.addList("XMLTest"); test.setHead("XML Test"); test.addItemXref(contextPath + "/xmltest/structural","Structural"); test.addItemXref(contextPath + "/xmltest/HTML","HTML"); List form = test.addList("FormTest"); form.setHead("Forms"); form.addItemXref(contextPath + "/xmltest/form/basic","Basic"); form.addItemXref(contextPath + "/xmltest/form/inline","In line"); form.addItemXref(contextPath + "/xmltest/form/advanced","Advanced"); } }
public void addOptions(Options options) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { /* Create skeleton menu structure to ensure consistent order between aspects, * even if they are never used */ List admin = options.addList("administrative"); //Check if a system administrator boolean isSystemAdmin = AuthorizeManager.isAdmin(this.context); // System Administrator options! if (isSystemAdmin) { admin.addItemXref(contextPath+ "/admin/xmlworkflowoverview", T_xmlworkflow_overview); } }
/** * Add additional navigation options. This is to allow selection of a monthly report * * @param options * @throws SAXException * @throws WingException * @throws UIException * @throws SQLException * @throws IOException * @throws AuthorizeException */ public void addOptions(Options options) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Date[] monthlyDates = StatisticsLoader.getMonthlyAnalysisDates(); if (monthlyDates != null && monthlyDates.length > 0) { List statList = options.addList("statsreports"); statList.setHead(T_choose_report); HashMap<String, String> params = new HashMap<String, String>(); for (Date date : monthlyDates) { params.put("date", sdfLink.format(date)); statList.addItemXref(super.generateURL("statistics", params), sdfDisplay.format(date)); } } }
account.addItemXref(contextPath+"/logout",T_logout); account.addItemXref(contextPath+"/profile",T_profile.parameterize(fullName)); account.addItemXref(contextPath+"/login",T_login); if (ConfigurationManager.getBooleanProperty("xmlui.user.registration", true)) account.addItemXref(contextPath + "/register", T_register);
context.addItemXref(contextPath+"/admin/collection?collectionID=" + collection.getID(), T_context_edit_collection); context.addItemXref(contextPath+"/admin/mapper?collectionID="+collection.getID(), T_context_item_mapper); options++; context.addItemXref(contextPath+"/admin/community?communityID=" + community.getID(), T_context_edit_community); options++; context.addItemXref(contextPath+"/admin/collection?createNew&communityID=" + community.getID(), T_context_create_collection); context.addItemXref(contextPath+"/admin/community?createNew&communityID=" + community.getID(), T_context_create_subcommunity); options++; context.addItemXref(contextPath+"/admin/community?createNew", T_context_create_community); options++;
/** * Add navigation for the configured browse tables to the supplied list. * * @param browseList * @param browseURL * @throws WingException */ private void addBrowseOptions(List browseList, String browseURL) throws WingException { // FIXME Exception handling try { // Get a Map of all the browse tables BrowseIndex[] bis = BrowseIndex.getBrowseIndices(); for (BrowseIndex bix : bis) { // Create a Map of the query parameters for this link Map<String, String> queryParams = new HashMap<String, String>(); queryParams.put("type", bix.getName()); // Add a link to this browse browseList.addItemXref(super.generateURL(browseURL, queryParams), message("xmlui.ArtifactBrowser.Navigation.browse_" + bix.getName())); } } catch (BrowseException bex) { throw new UIException("Unable to get browse indicies", bex); } }
browseList.addItemXref(super.generateURL(browseURL, queryParams), message("xmlui.ArtifactBrowser.Navigation.browse_" + bix.getName()));
public void addOptions(Options options) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { // Basic navigation skeleton options.addList("browse"); List account = options.addList("account"); options.addList("context"); options.addList("administrative"); // This dosn't flow very well, lets remove it and see if anyone misses it. // DSpaceObject dso = HandleUtil.obtainHandle(objectModel); // if (dso != null && dso instanceof Collection) // { // Collection collection = (Collection) dso; // if (AuthorizeManager.authorizeActionBoolean(context, collection, Constants.ADD)) // { // String submitURL = contextPath + "/handle/" + collection.getHandle() + "/submit"; // account.addItemXref(submitURL,"Submit to this collection"); // } // } account.addItemXref(contextPath+"/submissions",T_submissions); } }
/** * Add the statistics aspect navigational options. */ public void addOptions(Options options) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { /* Create skeleton menu structure to ensure consistent order between aspects, * even if they are never used */ options.addList("browse"); options.addList("account"); options.addList("context"); options.addList("administrative"); List statistics = options.addList("statistics"); DSpaceObject dso = HandleUtil.obtainHandle(objectModel); if(dso != null && dso.getHandle() != null){ statistics.setHead(T_statistics_head); statistics.addItemXref(contextPath + "/handle/" + dso.getHandle() + "/statistics", T_statistics_view); }else{ // This Navigation is only called either on a DSO related page, or the homepage // If on the home page: add statistics link for the home page statistics.setHead(T_statistics_head); statistics.addItemXref(contextPath + "/statistics-home", T_statistics_view); } } }
browse.addItemXref(super.generateURL(url + "/browse", queryParams), message("xmlui.ArtifactBrowser.Navigation.browse_" + bix.getName())); browse.addItemXref(url + "/browse?type=title",T_browse_titles); browse.addItemXref(url + "/browse?type=author",T_browse_authors); browse.addItemXref(url + "/browse?type=dateissued",T_browse_dates);
jumpList.addItemXref(linkUrl, Character .toString(c));
jumpList.addItemXref(super.generateURL(WITHDRAWN_URL_BASE, cQuery), Character .toString(c));
browse.addItemXref(super.generateURL(url + "/browse", queryParams), message("xmlui.ArtifactBrowser.Navigation.browse_" + bix.getName())); browse.addItemXref(url + "/browse?type=title",T_browse_titles); browse.addItemXref(url + "/browse?type=author",T_browse_authors); browse.addItemXref(url + "/browse?type=dateissued",T_browse_dates);
if (name == null || name.length() == 0) containerSubList.addItemXref(baseURL + "&submit_edit&collection_id=" + subCols.getID(), T_untitled); containerSubList.addItemXref(baseURL + "&submit_edit&collection_id=" + subCols.getID(), name);
options.addItemXref("?java", T_option_java); options.addItemXref("?dspace", T_option_dspace); options.addItemXref("?alerts", T_option_alerts); options.addItemXref("?harvest", T_option_harvest); options.addItemXref(userSortTarget, "Current Activity");
actionItem.addButton("submit_edit").setValue(T_submit_find); actionsList.addLabel(T_actions_advanced); actionsList.addItemXref(baseURL+"&submit_wildcard", T_actions_advanced_link);
subList.addItemXref(collectionUrl, collectionName);
browseGlobal.addItemXref(contextPath + "/community-list",T_communities_and_collections);
browseGlobal.addItemXref(contextPath + "/community-list",T_communities_and_collections);
actionsList.addItemXref(baseURL+"&submit_add", T_actions_create_link); actionsList.addLabel(T_actions_browse); actionsList.addItemXref(baseURL+"&query&submit_search", T_actions_browse_link);