Changeset 26754
- Timestamp:
- 2013-01-19T15:29:32+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/GlamED/trunk/src/org/honours/Main.java
r26742 r26754 18 18 19 19 /** 20 * Main class for the cultural collections21 * management system.20 * Main class for the GlamED cultural 21 * collections management system. 22 22 * @author Korii 23 23 */ … … 30 30 public static final String GSDL_HOME = "greenstone3-svn\\web"; 31 31 32 //33 32 public static final String GSDL_COLLECT_PATH = GSDL_HOME + File.separator + "sites" + File.separator + "localsite" + 34 33 File.separator + "collect" + File.separator; … … 39 38 public static final int _assocfilePathXpos = 175; 40 39 public static final int _assocfilePathYpos = 101; 40 41 //Collection info file name. 42 private static final String COLLECTION_INF_FILE = "collection.inf"; 43 41 44 42 45 /** … … 108 111 /** 109 112 * Set up collection objects which last for entire runtime. 110 * A "Collections" directory has been specially created where111 * collection framesets from GSDL are kept. This method will only112 * search this directory for collections (and not any other directories113 * where framesets are kept).113 * TODO: It would be good to set up a "Collections" frameset directory 114 * to import framesets from Greenstone into. However at this stage, accessing 115 * framesets not in the default framesets location makes loading them 116 * a lot slower. 114 117 * @throws Exception 115 118 */ 116 119 private static void setUpCollectionObjects() throws Exception{ 117 120 118 //File collectionsDir = new File(HonoursFrameIO.COLLECTIONS_PATH);119 120 121 File collectionsDir = new File(FrameIO.FRAME_PATH); 122 121 123 122 124 if(collectionsDir.isDirectory()){ … … 130 132 continue; 131 133 134 //Check if directory is a collection frameset from Greenstone. 132 135 String fName = f.getName(); 133 134 //TODO: Change this so that "collection" framesets have their own special way of being identified. 135 if(fName.equals("collectionsmain") || fName.equals("exhibitionsmain") || fName.equals("interface-overlays") || fName.equals("notesmain") || fName.equals("documentation")){ 136 File[] children = f.listFiles(); 137 boolean isCollection = false; 138 139 for(int i =0; i < children.length; i++){ 140 String currChildName = children[i].getName(); 141 if(currChildName.equals(COLLECTION_INF_FILE)){ 142 isCollection = true; 143 } 144 } 145 146 if(!isCollection) 136 147 continue; 137 } 138 148 139 149 Collection collect = obtainCollectionItems(fName); 140 150
Note:
See TracChangeset
for help on using the changeset viewer.