- Timestamp:
- 2007-01-12T15:36:27+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/PreviewButton.java
r13592 r13595 36 36 import org.greenstone.gatherer.Configuration; 37 37 import org.greenstone.gatherer.Gatherer; 38 import org.greenstone.gatherer.collection.Collection ;38 import org.greenstone.gatherer.collection.CollectionManager; 39 39 import org.greenstone.gatherer.greenstone.LocalLibraryServer; 40 40 import org.greenstone.gatherer.util.StaticStrings; … … 74 74 protected void configureHomeURL() { 75 75 // set up the home page for the current collection 76 Collection current_collection = Gatherer.c_man.getCollection();77 76 if (Gatherer.GS3) { 78 77 // don't do anything fancy here 79 preview_address = Configuration.library_url.toString() + Configuration.getServletPath() + "?a=p&sa=about&c=" + current_collection.getName()+"&l="+Configuration.getLanguage();78 preview_address = Configuration.library_url.toString() + Configuration.getServletPath() + "?a=p&sa=about&c=" + CollectionManager.getLoadedCollectionName() + "&l=" + Configuration.getLanguage(); 80 79 return; 81 80 } 82 preview_address = Configuration.library_url.toString() +"?c="+current_collection.getName()+"&l="+Configuration.getLanguage();81 preview_address = Configuration.library_url.toString() + "?c=" + CollectionManager.getLoadedCollectionName() + "&l=" + Configuration.getLanguage(); 83 82 84 83 String main_args = "&a=p&p=about";
Note:
See TracChangeset
for help on using the changeset viewer.