final EIURI resourceProvider = searchRequest.getResourceProvider(); final String nodeUrlString = searchRequest.getNode(); if ( resourceProvider == null || resourceProvider.equals( EIURI.NULL_EIURI ) || resourceProvider.getId().length() == 0 ) {
String humanSubjectUri = makeCentralSearchLink( baseSearchUrl, result.getHumanSubject().getURI().getId() ); String humanSubjectLabel = result.getHumanSubject().getLabel(); String location = result.getLocation().getLabel(); csvRow.add( typeEntity.getLabel() ); csvRow.add( cellLine.getLabel() ); csvRow.add( makeCentralSearchLink( baseSearchUrl, cellLine.getURI().getId() ) ); listResult.add( csvRow );
private boolean needsCiteButton() { //globals can't be cited if(eiInstance.getInstanceURI().getId().contains( "http://global." )) { return false; } // Organizations will show a cite button, but only if // they have resources if ( eiInstance.getRootSuperType().getEntity().equals( FOAF.organization.getEntity() ) ) { if ( eiInstance.getMaterializedInverseProperties().isEmpty() ) { return false; } return true; } // The only non-primary types that will ever get a cite button are // organizations, which are dealt with above if ( !eiInstance.isOfPrimaryType() ) { return false; } //All primary types need a button return true; }
/** * Use this method to set the request when this widget is being instantiated * via a @UiField in another component. * * @param request */ public void setSearchRequest( final StemCellSearchRequest request) { String nodeUriString = request.getNode(); EIURI rpuUri = request.getResourceProvider(); String rpuUriString = (rpuUri == null || rpuUri.isNullEIURI() || rpuUri.getId().length() == 0) ? null : rpuUri.toString(); if ( nodeUriString != null && rpuUriString == null ) { ClientStemCellSearchProxy.getInstance().getInstitutionNameFromUrl( nodeUriString, new RootAsyncCallback<String>() { @Override public void onSuccess(String result) { if ( result != null && result.length() > 0 ) { StringBuilder sb = new StringBuilder( INSTITUTION_NAME_PRELUDE ); sb.append( result ); sb.append( INSTITUTION_NAME_POSTLUDE ); InstitutionNameWidget.this.setHTML( sb.toString() ); InstitutionNameWidget.this.setVisible( true ); } else { InstitutionNameWidget.this.setVisible( false ); } } }); } }
if(eiInstance.getInstanceURI().getId().contains( "http://global." )) { return null;