@ -74,17 +74,17 @@ public class CatalogueResolver {
String itemCatalogueURL ;
if ( itemCatalogueURLs . isPublicItem ( ) ) {
logger . info ( "The dataset " + itemCatalogueURLs . getItemName ( ) + " i s a public") ;
logger . info ( "The dataset " + itemCatalogueURLs . getItemName ( ) + " should be a public item (not private to VRE). ") ;
if ( itemCatalogueURLs . getPublicVRECataloguePortletURL ( ) ! = null & & ! itemCatalogueURLs . getPublicVRECataloguePortletURL ( ) . isEmpty ( ) ) {
itemCatalogueURL = itemCatalogueURLs . getPublicVRECataloguePortletURL ( ) ;
logger . info ( "I found the public VRE catalogue URL "+ itemCatalogueURL + " so using public access to it" ) ;
logger . info ( "I found the public VRE catalogue URL , so using public access to it: "+ itemCatalogueURL ) ;
} else {
itemCatalogueURL = itemCatalogueURLs . getPublicGatewayCataloguePortletURL ( ) ;
logger . info ( "No public VRE catalogue URL found, so using public access to gateway CKAN portlet: " + itemCatalogueURL ) ;
}
} else {
itemCatalogueURL = itemCatalogueURLs . getPrivateVRECataloguePortletURL ( ) ;
logger . info ( "The dataset " + itemCatalogueURLs . getItemName ( ) + " is a private item so using protected access to CKAN portlet: "+ itemCatalogueURL ) ;
logger . info ( "The dataset " + itemCatalogueURLs . getItemName ( ) + " is a private item (to VRE) so using protected access to CKAN portlet: "+ itemCatalogueURL ) ;
}
return Response . seeOther ( new URL ( itemCatalogueURL ) . toURI ( ) ) . build ( ) ;