<% if( typeof logo == "string" ) { var urlBase = ""; if( logo.startsWith("http") ){ %> <% } else { //If there are alt repos configured, use the datasource obbject service URL if( MetacatUI.appModel.get("alternateRepositories").length && searchResult.get("datasource") ){ var sourceMN = _.findWhere(MetacatUI.appModel.get("alternateRepositories"), { identifier: searchResult.get("datasource") }); if( sourceMN ){ urlBase = sourceMN.objectServiceUrl; } } if( !urlBase ){ // use the resolve service if there is no object service url // (e.g. in DataONE theme) urlBase = MetacatUI.appModel.get("objectServiceUrl") || MetacatUI.appModel.get("resolveServiceUrl"); } %> <% } } %>

<%=label%>

<%=title%>

<% if ( MetacatUI.appUserModel.get("loggedIn") ) { %> <% } %>