Changeset 33015

Show
Ignore:
Timestamp:
16.04.2019 20:35:44 (7 months ago)
Author:
ak19
Message:

Bugfix. Client-GLI didn't have the preview button enabled if opening a collection that was already built, requiring the user to rebuild again in order for the button to become enabled. Now the built() method, which returns true if a collection is already built, also works for the remote GS3 case.

Files:
1 modified

Legend:

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

    r32712 r33015  
    398398        } 
    399399        File test_file = new File(file_name); 
    400         return test_file.exists(); 
     400 
     401        if(Gatherer.isGsdlRemote) { 
     402        return Gatherer.remoteGreenstoneServer.exists(collection.getGroupQualifiedName(false), test_file); 
     403        } else { 
     404        return test_file.exists(); 
     405        } 
    401406    } 
    402407    return false;