Package org.olat.core.commons.modules.glossary

Examples of org.olat.core.commons.modules.glossary.GlossaryItem


    ArrayList<GlossaryItem> glossItems = gIM.getGlossaryItemListByVFSItem(glossaryFolder);
    String description = "<dd><dt>" + glossaryMainTerm + "</dt>";
    // FIXME: have a way not to loop over all items, but get by Term
    boolean foundADescription = false;
    for (Iterator<GlossaryItem> iterator = glossItems.iterator(); iterator.hasNext();) {
      GlossaryItem glossaryItem = iterator.next();
      if (glossaryItem.getGlossTerm().toLowerCase().equals(glossaryMainTerm.toLowerCase())) {
        description += "<dl>" + glossaryItem.getGlossDef() + "</dl>";
        foundADescription = true;
        break;
      }
    }
    description += "</dd>";
View Full Code Here


   */
  public static StringBuilder buildJSArrayString(ArrayList<GlossaryItem> glossaryItemArr){
    StringBuilder sb = new StringBuilder();
    sb.append("new Array(");
    for (Iterator iterator = glossaryItemArr.iterator(); iterator.hasNext();) {
      GlossaryItem glossaryItem = (GlossaryItem) iterator.next();
      ArrayList<String> allHighlightStrings = glossaryItem.getAllStringsToMarkup();
      sb.append("new Array(\"");
      for (Iterator iterator2 = allHighlightStrings.iterator(); iterator2.hasNext();) {
        String termFlexionSynonym = (String) iterator2.next();
        sb.append(termFlexionSynonym);
        sb.append("\"");
View Full Code Here

TOP

Related Classes of org.olat.core.commons.modules.glossary.GlossaryItem

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.