Ignore:
Timestamp:
2003-08-21T11:14:40+12:00 (21 years ago)
Author:
jmt12
Message:

Fix 203B142. Collections that are built outside of GLI will now be recognized as previewable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/collection/Collection.java

    r5164 r5237  
    7676    /** The name of the build element. */
    7777    static final private String BUILD = "Build";
    78     /** The name of the built attribute. */
    79     static final private String BUILT = "built";
    8078    /** The name of the build config element. */
    8179    static final private String BUILD_CONFIG = "BuildConfig";
     
    160158    msm = null;
    161159    }
    162     /** Determine whether this collection has been successfully built in the past.
    163      * @return <i>true</i> if the collection has been built, <i>false</i> otherwise.
    164      */
    165     public boolean getBuilt() {
    166     return get(BUILT);
    167     }
    168160
    169161    /** Determine the number of documents and folders in this collection. */
     
    309301    Utility.export(document, file);
    310302    }
    311     /** Set the value of built to the given value.
    312      * @param value The new value for built, <i>true</i> if the collection has been built successfully, <i>false</i> otherwise.
    313      */
    314     public void setBuilt(boolean value) {
    315     set(BUILT, value);
    316     saved = false;
    317     }
     303
    318304    /** Set the value of imported to the given value.
    319305     * @param value The new value for imported, <i>true</i> if the collection has been imported successfully, <i>false</i> otherwise.
     
    351337        Element argument_element = (Element) arguments.item(i);
    352338        if(argument_element.getParentNode() == document_element) {
    353             if(argument_element.getAttribute(NAME).equalsIgnoreCase(BUILT)) {
     339            if(argument_element.getAttribute(NAME).equalsIgnoreCase(name)) {
    354340            String value = MSMUtils.getValue(argument_element);
    355341            if(value.equalsIgnoreCase(TRUE)) {
     
    428414        Element argument_element = (Element) arguments.item(i);
    429415        if(argument_element.getParentNode() == document_element) {
    430             if(argument_element.getAttribute(NAME).equalsIgnoreCase(BUILT)) {
     416            if(argument_element.getAttribute(NAME).equalsIgnoreCase(name)) {
    431417            // Strip any current value nodes.
    432418            while(argument_element.hasChildNodes()) {
Note: See TracChangeset for help on using the changeset viewer.