Menu

#43 ontolgies with 26-40 items fail

open-fixed
nobody
None
5
2006-11-09
2006-11-08
No

pedro.ontology.sources.SingleColumnTextSource shows a
maximum of 5 rows with 5 items, so if there are more
than 25 items, they are not shown.

Discussion

  • Rolf Schreiber

    Rolf Schreiber - 2006-11-09
    • status: open --> open-fixed
     
  • Rolf Schreiber

    Rolf Schreiber - 2006-11-09

    Logged In: YES
    user_id=1270402

    The following patch solves the problem

    *** /pedro/ontology/views/OntologyServiceManager.java
    2005-07-22 14:41:30.000000000 +0200
    --- /pedro/ontology/views/OntologyServiceManager.java
    2006-11-09 20:21:02.000000000 +0100
    ***************
    *** 279,287 ****
    else {
    //the list will have more than twenty and less
    than forty terms

    ! //divide the list into five sublists
    int ithSubMenu = 0;
    ! while (ithSubMenu < 5) {
    int startingIndex = ithSubMenu * 5;
    if (startingIndex >= numberOfTerms) {
    startingIndex = numberOfTerms - 1;
    --- 279,287 ----
    else {
    //the list will have more than twenty and less
    than forty terms

    ! //divide the list into sublists of five Elements
    int ithSubMenu = 0;
    ! while (ithSubMenu * 5 < numberOfTerms ) {
    int startingIndex = ithSubMenu * 5;
    if (startingIndex >= numberOfTerms) {
    startingIndex = numberOfTerms - 1;

     

Log in to post a comment.

MongoDB Logo MongoDB