Ignore:
Timestamp:
2010-12-07T14:27:04+13:00 (13 years ago)
Author:
kjdon
Message:

added support for specifying accumulating=false in metadata set definition. GLI then won't allow user to add multiple values for that element.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/metadata/MetadataElement.java

    r12672 r23394  
    4646    /* This restricts the user to only the predefined values */
    4747    private boolean restricted_values = false;
    48 
     48  /* can we have more than one value for this metadata element per document? */
     49  /* default, true = yes */
     50  private boolean accumulating = true;
    4951    public MetadataElement(String metadata_element_name_full, Element metadata_element_element)
    5052    {
     
    6163        }
    6264        }
     65        if (metadata_element_element.getAttribute("accumulating").equals("false")) {
     66          accumulating = false;
     67        }
    6368    }
    6469    }
     
    204209    }
    205210
     211  public boolean isAccumulating() {
     212    return accumulating;
     213  }
    206214    public boolean isSubelement()
    207215    {
Note: See TracChangeset for help on using the changeset viewer.