- Timestamp:
- 2010-07-06T15:22:01+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/gui/OpenCollectionDialog.java
r20924 r22357 298 298 299 299 File config_file = new File(collection_folder, file_name); 300 File collection_metadata_directory = new File(collection_folder, "metadata");301 300 if (config_file.exists()) { 302 301 BasicCollectionConfiguration collection_configuration = new BasicCollectionConfiguration(config_file); … … 309 308 } 310 309 else { 311 // if we have a metadata directory, then its a valid collection 312 if (collection_metadata_directory.exists()) { 313 data.add(collection_configuration); 314 } 310 // add this collection. We want to allow non gli collections, so add anything that has a config file. 311 data.add(collection_configuration); 315 312 } 316 313 } … … 385 382 File etc_folder = collect_cfg_file.getParentFile(); 386 383 File collection_folder = etc_folder.getParentFile(); 387 filename = collection_folder.getAbsolutePath() + File.separator + collection_folder.getName() + ".col";384 filename = collection_folder.getAbsolutePath() + File.separator + "gli.col"; 388 385 collection_folder = null; 389 386 etc_folder = null;
Note:
See TracChangeset
for help on using the changeset viewer.