Package org.dspace.app.xmlui.wing.element

Examples of org.dspace.app.xmlui.wing.element.List


        // Build the main Review Form!
        Division div = body.addInteractiveDivision("submit-upload", actionURL, Division.METHOD_POST, "primary submission");
        div.setHead(T_submission_head);
        addSubmissionProgressList(div);
       
        List review = div.addList("submit-review", List.TYPE_FORM);
        review.setHead(T_head);
       
        // Part B:
        // Add review section for each step
       
        //get a list of all pages in progress bar
        //(this is to ensure we are no looping through non-interactive steps)
        Set submissionPagesSet = submissionInfo.getProgressBarInfo().keySet();
        String[] submissionPages = (String[]) submissionPagesSet.toArray(new String[submissionPagesSet.size()]);
       
        //loop through each page in progress bar,
        //adding each as a separate section to the review form
        for(int i=0; i<submissionPages.length; i++)
        {
            double currentStepAndPage = Double.valueOf(submissionPages[i]).doubleValue();
           
            //If the step we are looking at is this current
            // Review/Verify step, exit the for loop,
            // since we have completed all steps up to this one!
            if(currentStepAndPage==this.stepAndPage)
            {
                break;
            }
           
            //load up step configuration
            SubmissionStepConfig stepConfig = subConfig.getStep(FlowUtils.getStep(currentStepAndPage));
           
            //load the step's XML-UI Class
            AbstractStep stepUIClass = loadXMLUIClass(stepConfig.getXMLUIClassName());
           
            try
            {
                //initialize this class (with proper step parameter)
                parameters.setParameter("step", Double.toString(currentStepAndPage));
                stepUIClass.setup(resolver, objectModel, src, parameters);
            }
            catch(Exception e)
            {
                throw new UIException("Unable to initialize AbstractStep identified by "
                                        + stepConfig.getXMLUIClassName() + ":", e);
            }
           
            //If this stepUIClass is not a value AbstractSubmissionStep,
            //we will be unable to display its review information!
            if(stepUIClass instanceof AbstractSubmissionStep)
            {
                //add the Review section for this step,
                //and return a reference to that newly created step section
                List stepSection = ((AbstractSubmissionStep) stepUIClass).addReviewSection(review);
               
                //as long as this step has something to review
                if(stepSection!=null)
                {   
                    //add a Jump To button for this section
View Full Code Here


     
    // DIVISION: main
      Division main = body.addInteractiveDivision("collection-metadata-edit",contextPath+"/admin/collection",Division.METHOD_MULTIPART,"primary administrative collection");
      main.setHead(T_main_head.parameterize(thisCollection.getMetadata("name")));
  
      List options = main.addList("options",List.TYPE_SIMPLE,"horizontal");
      options.addItem().addHighlight("bold").addXref(baseURL+"&submit_metadata",T_options_metadata);
      options.addItem().addXref(baseURL+"&submit_roles",T_options_roles);
      options.addItem().addXref(baseURL+"&submit_harvesting",T_options_harvest);
     
     
      // The grand list of metadata options
      List metadataList = main.addList("metadataList", "form");
     
      // collection name
      metadataList.addLabel(T_label_name);
      Text name = metadataList.addItem().addText("name");
      name.setSize(40);
      name.setValue(thisCollection.getMetadata("name"));
     
      // short description
      metadataList.addLabel(T_label_short_description);
      Text short_description = metadataList.addItem().addText("short_description");
      short_description.setValue(thisCollection.getMetadata("short_description"));
      short_description.setSize(40);
      if (short_description_error != null)
        short_description.addError(short_description_error);
     
      // introductory text
      metadataList.addLabel(T_label_introductory_text);
      TextArea introductory_text = metadataList.addItem().addTextArea("introductory_text");
      introductory_text.setValue(thisCollection.getMetadata("introductory_text"));
      introductory_text.setSize(6, 40);
      if (introductory_text_error != null)
        introductory_text.addError(introductory_text_error);
     
      // copyright text
      metadataList.addLabel(T_label_copyright_text);
      TextArea copyright_text = metadataList.addItem().addTextArea("copyright_text");
      copyright_text.setValue(thisCollection.getMetadata("copyright_text"));
      copyright_text.setSize(6, 40);
      if (copyright_text_error != null)
        copyright_text.addError(copyright_text_error);
     
      // legacy sidebar text; may or may not be used for news
      metadataList.addLabel(T_label_side_bar_text);
      TextArea side_bar_text = metadataList.addItem().addTextArea("side_bar_text");
      side_bar_text.setValue(thisCollection.getMetadata("side_bar_text"));
      side_bar_text.setSize(6, 40);
      if (side_bar_text_error != null)
        side_bar_text.addError(side_bar_text_error);
     
      // license text
      metadataList.addLabel(T_label_license);
      TextArea license = metadataList.addItem().addTextArea("license");
      license.setValue(thisCollection.getMetadata("license"));
      license.setSize(6, 40);
     
      // provenance description
      metadataList.addLabel(T_label_provenance_description);
      TextArea provenance_description = metadataList.addItem().addTextArea("provenance_description");
      provenance_description.setValue(thisCollection.getMetadata("provenance_description"));
      provenance_description.setSize(6, 40);
           
      // the row to upload a new logo
      metadataList.addLabel(T_label_logo);
      metadataList.addItem().addFile("logo");

      // the row displaying an existing logo
      Item item;
      if (thisCollection.getLogo() != null) {
        metadataList.addLabel(T_label_existing_logo);
        item = metadataList.addItem();
        item.addFigure(contextPath + "/bitstream/id/" + thisCollection.getLogo().getID() + "/bob.jpg", null, null);
        item.addButton("submit_delete_logo").setValue(T_submit_delete_logo);
      }
     
      // item template creation and removal
      metadataList.addLabel(T_label_item_template);
      item = metadataList.addItem();
     
      if (thisCollection.getTemplateItem() == null)
        item.addButton("submit_create_template").setValue(T_submit_create_template);
      else
      {
View Full Code Here

   
    // DIVISION: authorization-actions
        Division actions = main.addDivision("authorization-actions");
        actions.setHead(T_actions_head);
       
        List actionsList = actions.addList("actions");
        actionsList.addLabel(T_actions_item_lookup);
        Item actionItem = actionsList.addItem();
        Text queryField = actionItem.addText("identifier");
        if (query != null)
          queryField.setValue(query);
        if (errors.contains("identifier"))
          queryField.addError(T_bad_name);
        queryField.setHelp(T_search_help);
        actionItem.addButton("submit_edit").setValue(T_submit_find);
        actionsList.addLabel(T_actions_advanced);
        actionsList.addItemXref(baseURL+"&submit_wildcard", T_actions_advanced_link);
   
        // DIVISION: authorization-containerList
        Division containers = main.addDivision("authorization-containerList");
        containers.setHead(T_containerList_head);
        containers.addPara(T_containerList_para);
       
        List containerList = containers.addList("containerList");
        this.containerListBuilder(baseURL,containerList,null);
       
    main.addHidden("administrative-continue").setValue(knot.getId());
  }
View Full Code Here

        containerListBuilder(baseURL,parentList,topLevel);
      }
    }
    else {
      parentList.addItem().addHighlight("bold").addXref(baseURL+"&submit_edit&community_id="+currentCommunity.getID(), currentCommunity.getMetadata("name"));
      List containerSubList = null;
      for (Collection subCols : currentCommunity.getCollections())
      {
        if (containerSubList == null)
          containerSubList = parentList.addList("subList" + currentCommunity.getID());
        String name = subCols.getMetadata("name");
        if (name == null || name.length() == 0)
          containerSubList.addItemXref(baseURL+"&submit_edit&collection_id="+subCols.getID(), T_untitled);
        else
          containerSubList.addItemXref(baseURL+"&submit_edit&collection_id="+subCols.getID(), name);
          }
      for (Community subComs : currentCommunity.getSubcommunities())
      {
        if (containerSubList == null)
          containerSubList = parentList.addList("subList" + currentCommunity.getID());
View Full Code Here

    String noteValue = request.getParameter("newNote");
   
    Division newField = div.addDivision("edit-schema-new-field");
    newField.setHead(T_head3);
   
    List form = newField.addList("edit-schema-new-field-form",List.TYPE_FORM);
    addFieldErrors(form, errors);
   
    form.addLabel(T_name);
    Highlight item =form.addItem().addHighlight("big");
   
    item.addContent(schemaName+" . ");
    Text element = item.addText("newElement");
    item.addContent(" . ");
    Text qualifier = item.addText("newQualifier");
   
   
    element.setSize(15);
    element.setValue(elementValue);
   
    qualifier.setSize(15);
    qualifier.setValue(qualifierValue);
   
    TextArea scopeNote =form.addItem().addTextArea("newNote");
    scopeNote.setLabel(T_note);
    scopeNote.setHelp(T_note_help);
    scopeNote.setSize(2, 35);
    scopeNote.setValue(noteValue);
   
    form.addItem().addButton("submit_add").setValue(T_submit_add);
  }
View Full Code Here

   
   
    Division newField = div.addDivision("edit-schema-update-field");
    newField.setHead(T_head4.parameterize(field.getFieldID()));
   
    List form = newField.addList("edit-schema-update-field-form",List.TYPE_FORM);
   

    addFieldErrors(form, errors);
   
    form.addLabel(T_name);
    Highlight item =form.addItem().addHighlight("big");
   
    item.addContent(schemaName+" . ");
    Text element = item.addText("updateElement");
    item.addContent(" . ");
    Text qualifier = item.addText("updateQualifier");
   
   
    element.setSize(13);
    element.setValue(elementValue);
   
    qualifier.setSize(13);
    qualifier.setValue(qualifierValue);
   
    TextArea scopeNote =form.addItem().addTextArea("updateNote");
    scopeNote.setLabel(T_note);
    scopeNote.setHelp(T_note_help);
    scopeNote.setSize(2, 35);
    scopeNote.setValue(noteValue);
   
    Item actions = form.addItem();
    actions.addButton("submit_update").setValue(T_submit_update);
    actions.addButton("submit_cancel").setValue(T_submit_cancel);
   
  }
View Full Code Here

            if (facetFields.size() > 0) {
                addDiscoveryLocation(options, request, fqs, dso);

                ////////////
                List browse = options.addList("discovery");
                boolean firstSubList = true;

                for (FacetField field : facetFields) {

                    // Skip location filter, since this is handled above.
                    if (field.getName().equals("location")) {
                        continue;
                    }

                    java.util.List<FacetField.Count> values = field.getValues();

                    //This is needed for a dirty hack to make sure that the date filters do not remain empty
                    boolean valueAdded = false;
                    if (values != null) {

                        if (firstSubList) {
                            browse.setHead(message("xmlui.ArtifactBrowser.AdvancedSearch.filter_by.head"));
                            firstSubList = false;
                        }
                        List facet = browse.addList(field.getName());

                        facet.setHead(message("xmlui.ArtifactBrowser.AdvancedSearch.type_" + field.getName().replace("_lc", "").replace("_dt", "")));

                        Iterator<FacetField.Count> iter = values.iterator();
                        for (int i = 0; i < this.queryArgs.getFacetLimit(); i++) {
                            if (!iter.hasNext())
                                break;
                            FacetField.Count value = iter.next();

                            if (i < this.queryArgs.getFacetLimit() - 1) {
                                String displayedValue = value.getName();
                                String filterQuery = value.getAsFilterQuery();
                                String itemName = null;
                                String itemRend = null;
                                if (field.getName().equals("location.comm") || field.getName().equals("location.coll")) {
                                    //We have a community/collection, resolve it to a dspaceObject
//                                    displayedValue = SolrServiceImpl.locationToName(context, field.getName(), displayedValue);
                                    int type = field.getName().equals("location.comm") ? Constants.COMMUNITY : Constants.COLLECTION;
                                    DSpaceObject commColl = DSpaceObject.find(context, type, Integer.parseInt(displayedValue));
                                    if (commColl != null) {
                                        displayedValue = commColl.getName();
                                        itemName = commColl.getHandle();
                                    }
                                }
                                if (field.getGap() != null) {
                                    //We have a date field
                                    //Since we currently only support years, get the year
                                    //PS: date looks something like this: 2005-01-01T00:00:00Z
                                    displayedValue = displayedValue.split("-")[0];
                                    filterQuery = ClientUtils.escapeQueryChars(value.getFacetField().getName()) + ":" + displayedValue + "*";
                                    // What we do now is, if we have a date and we have selected one as a filter query, do not show the other values
                                    // There is no need to this since we can only have one date at a time
                                    // What we do show however is the current date.
                                    boolean skipValue = false;
                                    for (Object fq1 : fqs) {
                                        String fq = (String) fq1;
                                        if (fq.startsWith(value.getFacetField().getName() + ":") && !fq.equals(filterQuery))
                                            skipValue = true;
                                    }
                                    //Skipt these vals, there are not relevant, they are required to indicate if we need a view more url
                                    if (displayedValue.equals(FacetParams.FacetDateOther.AFTER.toString())
                                            || displayedValue.equals(FacetParams.FacetDateOther.BEFORE.toString())
                                            || displayedValue.equals(FacetParams.FacetDateOther.BETWEEN.toString()))
                                        skipValue = true;

                                    if(value.getCount() == 0)
                                        skipValue = ConfigurationManager.getBooleanProperty("solr.date.skip.empty", true);

                                    if (skipValue)
                                        continue;
                                }

                                if (fqs.contains(filterQuery)) {
                                    valueAdded = true;
                                    facet.addItem(Math.random() + "", "selected").addContent(displayedValue + " (" + value.getCount() + ")");
                                } else {
                                    valueAdded = true;
                                    facet.addItem(itemName, itemRend).addXref(
                                            contextPath +
                                                    (dso == null ? "" : "/handle/" + dso.getHandle()) +
                                                    "/search?" +
                                                    request.getQueryString() +
                                                    "&fq=" +
                                                    URLEncoder.encode(filterQuery, "UTF-8"),
                                            displayedValue + " (" + value.getCount() + ")" // + "TESTE"
                                    );
                                }
                            }
                            if (i == this.queryArgs.getFacetLimit() - 1 && field.getGap() == null) {

                                addViewMoreUrl(facet, dso, request, field.getName());
                            }
                        }
                        if (field.getGap() != null) {
                            if (!valueAdded) {
                                /** THIS IS A DIRTY HACK TO MAKE SURE WE DO NOT HAVE AN EMPTY DATE FILTER
                                 * THIS WILL NOT WORK IF THE DATE FIELD SHOULD BE REPEATABLE ! **/
                                /** Add a field using this content **/
                                /** Locate the value in the filter **/
                                for (Object fq1 : fqs) {
                                    String fq = (String) fq1;
                                    if (fq.startsWith(field.getName() + ":")) {
                                        String valShown = fq.substring(fq.indexOf(":") + 1);
                                        //Remove the * at the end
                                        valShown = valShown.substring(0, valShown.length() - 1);
                                        facet.addItem().addContent(valShown + " (" + queryResults.getResults().getNumFound() + ")");
                                    }
                                }
                            }


View Full Code Here

     */
    private void addDiscoveryLocation(Options options, Request request, java.util.List fqs, DSpaceObject dso) throws NumberFormatException, SQLException, WingException {
        // UPDATE: listing all locations returned by Solr is not what we want.
        // We just want the selected comm/coll, its children/sibling collections, parent community, children community.
        // FIXME: probably encapsulate in a new method and allow for a depth parameter like community-list.
        List browseCommColl = options.addList("discovery-location");
        browseCommColl.setHead(message("xmlui.ArtifactBrowser.AdvancedSearch.filter_by.head"));
        if (this.queryResults != null) {
            FacetField fieldLocation = this.queryResults.getFacetField("location");
            if (fieldLocation != null) {
                java.util.List<FacetField.Count> values = fieldLocation.getValues();
                if (values != null) {
                    String queryString = request.getQueryString();
                    queryString = queryString != null ? queryString.replaceAll("&fq=location[:[%3A]+][ml][0-9]+", "") : queryString;
                    // Find selected community/collection.
                    String curCommCollSelectedName = "m1"; // Default
                    for (FacetField.Count v : values) {
                        if (fqs.contains(v.getAsFilterQuery())) {
                            curCommCollSelectedName = v.getName();
                            break;
                        }
                        int type = v.getName().startsWith("m") ? Constants.COMMUNITY : Constants.COLLECTION;
                        DSpaceObject commColl = DSpaceObject.find(context, type, Integer.parseInt(v.getName().substring(1)));
                        if (dso != null && commColl != null && dso.getHandle().equals(commColl.getHandle())) {
                            curCommCollSelectedName = v.getName();
                            break;
                        }
                    }
                    // UPDATE: see UPDATE above.
                    // Build list of locations (communities/collections) ordered by handle part after prefix.
                    Map<String, FacetField.Count> sortedSolrNameLocationWithValues = new TreeMap<String, FacetField.Count>();
                    for (FacetField.Count v : values) {
                        sortedSolrNameLocationWithValues.put(v.getName(), v);
                    }
                    // Default selection is "m1" (community with ID 1).
                    int curCommCollSelectedType = Constants.COMMUNITY;
                    int curCommCollSelectedID = 1;
                    if (curCommCollSelectedName != null) {
                        curCommCollSelectedType = curCommCollSelectedName.startsWith("m") ? Constants.COMMUNITY : Constants.COLLECTION;
                        curCommCollSelectedID = Integer.parseInt(curCommCollSelectedName.substring(1));
                    }
                    Map<Integer, String> sortedHandleWithSolrName = new TreeMap<Integer, String>();
                    Map<String, DSpaceObject> sortedSolrNameWithDSpaceObject = new TreeMap<String, DSpaceObject>();
                   
                    int topCommID = 1;
                    String topCommName = "m1";
                    boolean curSelectedIsTop = curCommCollSelectedName.equals(topCommName) ? true : false;
                   
                    Community mtop = Community.find(context, topCommID);
                    sortedHandleWithSolrName.put(Integer.parseInt(mtop.getHandle().split("/")[1]), topCommName);
                    sortedSolrNameWithDSpaceObject.put(topCommName, mtop);

                    Collection[] collections = mtop.getCollections();
                    for (Collection l : collections) {
                        String solrName = "l" + l.getID();
                        if (solrName.equals(curCommCollSelectedName))
                            curSelectedIsTop = true;
                        sortedHandleWithSolrName.put(Integer.parseInt(l.getHandle().split("/")[1]), solrName);
                        sortedSolrNameWithDSpaceObject.put(solrName, l);
                    }

                    Community[] communities = mtop.getSubcommunities();
                    for (Community mm : communities) {
                        String solrName = "m" + mm.getID();
                        if (solrName.equals(curCommCollSelectedName))
                            curSelectedIsTop = true;
                        sortedHandleWithSolrName.put(Integer.parseInt(mm.getHandle().split("/")[1]), solrName);
                        sortedSolrNameWithDSpaceObject.put(solrName, mm);
                    }
                    if (curSelectedIsTop == false) {
                        if (curCommCollSelectedType == Constants.COMMUNITY) {
                            Community msel = Community.find(context, curCommCollSelectedID);
                            Community[] parents = msel.getAllParents();
                            if (parents.length < 2) {
                                log.error("Something is wrong: this should not happen.");
                            }
                            Community topParent = parents[parents.length - 2];
                            curCommCollSelectedName = "m" + topParent.getID();
                        } else {
                            // Supposing Constants.COLLECTION
                            Collection lsel = Collection.find(context, curCommCollSelectedID);
                            Community firstParent = lsel.getCommunities()[0];
                            Community[] parents = firstParent.getAllParents();
                            if (parents.length == 0) {
                                //log.error("Something is wrong: this should not happen.");
                                //firstParent is a top community.
                                curCommCollSelectedName = "m" + firstParent.getID();
                            } else if (parents.length == 1) {
                                //firstParent is a second level community.
                                curCommCollSelectedName = "m" + firstParent.getID();
                            } else {
                                // get second level parent
                                Community topParent = parents[parents.length - 2];
                                curCommCollSelectedName = "m" + topParent.getID();
                            }
                        }
                    }
                    //                            Iterator<FacetField.Count> iter = sortedValues.values().iterator();
                    Iterator<String> iter = sortedHandleWithSolrName.values().iterator();
                    List facet = browseCommColl.addList(fieldLocation.getName());
                    //                            facet.setHead(message("xmlui.ArtifactBrowser.AdvancedSearch.type_" + fieldLocation.getName()));
                    facet.setHead(queryString);
                    for (int i = 0; i < this.queryArgs.getFacetLimit(); i++) {
                        if (!iter.hasNext()) {
                            break;
                        } //                                String displayedValue = value.getName();
                        String solrName = iter.next();
                        DSpaceObject commColl = sortedSolrNameWithDSpaceObject.get(solrName);
                        FacetField.Count value = sortedSolrNameLocationWithValues.get(solrName);
                        if (value == null) {
                            // This is probably due to an empty collection, which happens to not be indexed by Solr.
                            continue;
                        }
                        String displayedValue = commColl.getName();
                        String itemName = commColl.getHandle();
                        String itemRend = null;
                        //log.error("iter: solrName: " + solrName + "; " + value + "; handle: " + itemName + "; display: " + displayedValue);
                        //We have a community/collection, resolve it to a dspaceObject
                        //                                    displayedValue = SolrServiceImpl.locationToName(context, field.getName(), displayedValue);
                        //                                int type = fieldLocation.getName().equals("location.comm") ? Constants.COMMUNITY : Constants.COLLECTION;
                        if (curCommCollSelectedName != null && curCommCollSelectedName.equals(solrName)) {
                            //facet.addItem(itemName, "selected").addContent(displayedValue + " (" + value.getCount() + ")");
                            itemRend = "selected";
                        } else if (curCommCollSelectedName == null && value.getName().equals("m1")) {
                            //facet.addItem(itemName, "selected").addContent(displayedValue + " (" + value.getCount() + ")");
                            itemRend = "selected";
                        }
                        if (value.getCount() > 0) {
                            String URI = null;
                            try {
                                URI = request.getSitemapURI().split("/")[request.getSitemapURI().split("/").length - 1];
                                if (URI.matches("[0-9]+")) {
                                    URI = null;
                                }
                            } catch (Exception e) {
                                log.error(e.getMessage(), e);
                            }
                            facet.addItem(itemName, itemRend).addXref(contextPath + (commColl == null ? "" : "/handle/" + commColl.getHandle()) + "/" + (URI != null ? URI : "") + (queryString != null ? "?" + queryString : ""), displayedValue + " (" + "" + value.getCount() + ")");
                        } else {
                            facet.addItem(itemName, "disabled").addContent(displayedValue + " (" + value.getCount() + ")");
                        }
                    }
                }
            }
        }
View Full Code Here

        }

        Division query = search.addInteractiveDivision("general-query",
                "search", Division.METHOD_GET, "secondary search");

        List queryList = query.addList("search-query", List.TYPE_FORM);

        /*
        if (variableScope()) {
        Select scope = queryList.addItem().addSelect("scope");
        scope.setLabel(T_search_scope);
        buildScopeList(scope);
        }
         */

        Text text = queryList.addItem().addText("query");
        text.setLabel(T_full_text_search);
        text.setValue(queryString);


//        queryList.addItem().addContent("Filters");
        //If we have any filters, show them
        if (fqs.size() > 0) {
            //if(filters != null && filters.size() > 0){
            Composite composite = queryList.addItem().addComposite("facet-controls");

            composite.setLabel(message("xmlui.ArtifactBrowser.SimpleSearch.selected_filters"));

            CheckBox box = composite.addCheckBox("fq");

            for (String name : fqs) {
                //for(Map.Entry<String, Integer> filter : filters.entrySet()){
                //String name = filter.getKey();
                //long count = filter.getValue();


                String field = name;
                String value = name;

                if (name.contains(":")) {
                    field = name.split(":")[0];
                    value = name.split(":")[1];
                } else {
                    //We have got no field, so we are using everything
                    field = "*";
                }

                field = field.replace("_lc", "");
                value = value.replace("\\", "");
                if (field.equals("*")) {
                    field = "all";
                }
                if (name.startsWith("*:")) {
                    name = name.substring(name.indexOf(":") + 1, name.length());
                }

                Option option = box.addOption(true, name);
                option.addContent(message("xmlui.ArtifactBrowser.SimpleSearch.filter." + field));

                if (field.equals("location.comm") || field.equals("location.coll")) {
                    //We have a community/collection, resolve it to a dspaceObject
                    value = SolrServiceImpl.locationToName(context, field, value);
                }


                option.addContent(": " + value);

            }
        }


        int i = 1;
        String field = SearchUtils.getConfig().getString("solr.search.filter.type." + i, null);
        if (field != null) {
            //We have at least one filter so add our filter box
            Item item = queryList.addItem("search-filter-list", "search-filter-list");
            Composite filterComp = item.addComposite("search-filter-controls");
            filterComp.setLabel(T_FILTER_HEAD);
            filterComp.setHelp(T_FILTER_HELP);

//            filterComp.setLabel("");
View Full Code Here

            {
                browseContext.setHead(T_head_this_community);
            }
        }*/
       
        List topSearchList = options.addList("top-search");

        int i = 1;
        String field = SearchUtils.getConfig().getString("solr.search.filter.type." + i, null);
        if (field != null) {
            //We have at least one filter so add our filter box
            Item item = topSearchList.addItem("search-filter-list", "search-filter-list");
            Composite filterComp = item.addComposite("search-filter-controls");
            filterComp.setLabel(T_FILTER_HEAD);
            filterComp.setHelp(T_FILTER_HELP);

//            filterComp.setLabel("");
View Full Code Here

TOP

Related Classes of org.dspace.app.xmlui.wing.element.List

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.