Changeset 18946
- Timestamp:
- 2009-04-14T14:33:28+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/gui/OpenCollectionDialog.java
r18370 r18946 217 217 for (int s=0; s<sites.length; s++) { 218 218 String site_name = sites[s].getName(); 219 System.err.println("found site "+site_name);220 219 File collect_folder = new File(Utility.getCollectDir(Configuration.gsdl3_path, site_name) ); 221 220 if (!collect_folder.exists()) { … … 282 281 protected void load_collection_configs(TreeSet data, File collect_directory) { 283 282 284 283 File[] collection_folders = collect_directory.listFiles(); 285 284 286 285 for(int i = 0; i < collection_folders.length; i++) { … … 300 299 File config_file = new File(collection_folder, file_name); 301 300 File collection_metadata_directory = new File(collection_folder, "metadata"); 302 if (co llection_metadata_directory.exists() && config_file.exists()) {301 if (config_file.exists()) { 303 302 BasicCollectionConfiguration collection_configuration = new BasicCollectionConfiguration(config_file); 304 303 … … 310 309 } 311 310 else { 312 data.add(collection_configuration); 311 // if we have a metadata directory, then its a valid collection 312 if (collection_metadata_directory.exists()) { 313 data.add(collection_configuration); 314 } 313 315 } 314 316 }
Note:
See TracChangeset
for help on using the changeset viewer.