Changeset 21587

Show
Ignore:
Timestamp:
22.01.2010 19:19:55 (9 years ago)
Author:
ak19
Message:

Now when the preview button is pressed in FLI, the collection page on the Fedora Server is opened in the browser.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/gui/PreviewButton.java

    r20952 r21587  
    109109    } 
    110110    // FLI or GLI for GS2 case (no library_url) 
    111     preview_address = Configuration.library_url.toString() + "?c=" + collGroupWithName + "&l=" + Configuration.getLanguage(); 
     111    if(Configuration.fedora_info.isActive()) { 
     112        preview_address = Configuration.library_url.toString() + "?pid=true&title=true&terms=&query=pid~greenstone:"+collGroupWithName+"*&maxResults=20"; 
     113        //+ "&l=" + Configuration.getLanguage(); 
     114    } else { 
     115        preview_address = Configuration.library_url.toString() + "?c=" + collGroupWithName + "&l=" + Configuration.getLanguage(); 
     116    } 
    112117 
    113118    String main_args = "&a=p&p=about";