/** * There are two options, the user has some unfinished submissions * or the user does not. * * If the user does not, then we just display a simple paragraph * explaining that the user may submit new items to dspace. * * If the user does have unfinisshed submissions then a table is * presented listing all the unfinished submissions that this user has. * */ private void addUnfinishedSubmissions(Division division) throws SQLException, WingException { division.addInteractiveDivision("unfinished-submisions", contextPath+"/submit", Division.METHOD_POST); }
/** * There are two options, the user has some unfinished submissions * or the user does not. * * If the user does not, then we just display a simple paragraph * explaining that the user may submit new items to dspace. * * If the user does have unfinisshed submissions then a table is * presented listing all the unfinished submissions that this user has. * */ private void addUnfinishedSubmissions(Division division) throws SQLException, WingException { division.addInteractiveDivision("unfinished-submisions", contextPath+"/submit", Division.METHOD_POST); }
/** * Add an interactive sub division for further logical grouping of content * without specifying special rendering instructions. * * The valid values for method may be found in the static variable METHODS. * * @param name * (Required) a local identifier used to differentiate the * element from its siblings. * @param action * (Required) The form action attribute determines where the form * information should be sent for processing. * @param method * (Required) Accepted values are "get", "post", and "multipart". * Determines the method used to pass gathered field values to * the handler specified by the action attribute. The multipart * method should be used if there are any file fields used within * the division. * @return A new interactive sub division */ public Division addInteractiveDivision(String name, String action, String method) throws WingException { return addInteractiveDivision(name, action, method, null); }
Division jump = div.addInteractiveDivision("filter-navigation", action, Division.METHOD_POST, "secondary navigation");
Division jump = div.addInteractiveDivision("browse-navigation", BROWSE_URL_BASE, Division.METHOD_POST, "secondary navigation");
Division controls = div.addInteractiveDivision("browse-controls", WITHDRAWN_URL_BASE, Division.METHOD_POST, "browse controls");
Division jump = div.addInteractiveDivision("browse-navigation", WITHDRAWN_URL_BASE, Division.METHOD_POST, "secondary navigation");
Division controls = div.addInteractiveDivision("browse-controls", BROWSE_URL_BASE, Division.METHOD_POST, "browse controls");
Division query = search.addInteractiveDivision("community-search", contextPath + "/handle/" + community.getHandle() + "/discover", Division.METHOD_POST, "secondary search");
Division query = search.addInteractiveDivision("collection-search", contextPath + "/handle/" + collection.getHandle() + "/discover", Division.METHOD_POST, "secondary search");
@Override public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { DSpaceObject dso = HandleUtil.obtainHandle(objectModel); if (!(dso instanceof Collection)) { return; } // Set up the major variables Collection collection = (Collection) dso; Division home = body.addDivision("collection-home", "primary repository collection"); Division search = home.addDivision("collection-search-browse", "secondary search-browse"); // Search query Division query = search.addInteractiveDivision("collection-search", contextPath + "/handle/" + collection.getHandle() + "/search", Division.METHOD_POST, "secondary search"); Para para = query.addPara("search-query", null); para.addContent(T_full_text_search); para.addContent(" "); para.addText("query"); para.addContent(" "); para.addButton("submit").setValue(T_go); query.addPara().addXref(contextPath + "/handle/" + collection.getHandle()+ "/advanced-search", T_advanced_search_link); } }
Division mainSearchDiv = search.addInteractiveDivision("general-query", "discover", Division.METHOD_GET, "discover-search-box search"); java.util.List<DiscoverySearchFilter> filterFields = discoveryConfiguration.getSearchFilters(); if(0 < fqs.length || 0 < filterFields.size()){ Division searchFiltersDiv = search.addInteractiveDivision("search-filters", "discover", Division.METHOD_GET, "discover-search-box search"); Division searchControlsDiv = search.addInteractiveDivision("search-controls", "discover", Division.METHOD_GET, "discover-sort-box search");
/** * Display a single community (and refrence any sub communites or * collections) */ public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { DSpaceObject dso = HandleUtil.obtainHandle(objectModel); if (!(dso instanceof Community)) { return; } // Set up the major variables Community community = (Community) dso; Division home = body.addDivision("community-home", "primary repository community"); Division search = home.addDivision("community-search-browse", "secondary search-browse"); // Search query Division query = search.addInteractiveDivision("community-search", contextPath + "/handle/" + community.getHandle() + "/search", Division.METHOD_POST, "secondary search"); Para para = query.addPara("search-query", null); para.addContent(T_full_text_search); para.addContent(" "); para.addText("query"); para.addContent(" "); para.addButton("submit").setValue(T_go); query.addPara().addXref(contextPath + "/handle/" + community.getHandle() + "/advanced-search", T_advanced_search_link); }
Division query = search.addInteractiveDivision("general-query", "search",Division.METHOD_GET,"secondary search");
Division query = search.addInteractiveDivision("search-query", "advanced-search",Division.METHOD_POST,"secondary search");