Fix some comments.

This commit is contained in:
rjy7 2011-03-03 18:30:37 +00:00
parent f0fe94bdd0
commit 91e11c0809
2 changed files with 6 additions and 6 deletions

View file

@ -70,15 +70,15 @@ public abstract class BaseIndividualTemplateModel extends BaseTemplateModel {
return UrlBuilder.getIndividualProfileUrl(individual, vreq.getWebappDaoFactory()); return UrlBuilder.getIndividualProfileUrl(individual, vreq.getWebappDaoFactory());
} }
// This remains as a convenience method for getting the image url. We could instead use a custom list // For image, we use the default list view and Individual methods to reconstruct the image
// view for mainImage which would provide this data in the query results. // url from various triples. A custom list view would require that logic to be duplicated here.
public String getImageUrl() { public String getImageUrl() {
String imageUrl = individual.getImageUrl(); String imageUrl = individual.getImageUrl();
return imageUrl == null ? null : getUrl(imageUrl); return imageUrl == null ? null : getUrl(imageUrl);
} }
// This remains as a convenience method for getting the thumbnail url. We could instead use a custom list // For image, we use the default list view and Individual methods to reconstruct the image
// view for mainImage which would provide this data in the query results. // url from various triples. A custom list view would require that logic to be duplicated here.
public String getThumbUrl() { public String getThumbUrl() {
String thumbUrl = individual.getThumbUrl(); String thumbUrl = individual.getThumbUrl();
return thumbUrl == null ? null : getUrl(thumbUrl); return thumbUrl == null ? null : getUrl(thumbUrl);

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml version="1.0" encoding="ISO-8859-1"?>
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ --> <!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<!-- Default list view config file for uncollated object properties <!-- Default list view config file for object properties
See guidelines in vitro/doc/list_view_configuration_guidelines.txt --> See guidelines in vitro/doc/list_view_configuration_guidelines.txt -->
@ -12,7 +12,7 @@
PREFIX afn: &lt;http://jena.hpl.hp.com/ARQ/function#&gt; PREFIX afn: &lt;http://jena.hpl.hp.com/ARQ/function#&gt;
SELECT <collation-fragment> ?subclass </collation-fragment> SELECT <collation-fragment> ?subclass </collation-fragment>
?object ?name ?moniker { ?object ?name ?moniker WHERE {
?subject ?property ?object ?subject ?property ?object
<collation-fragment> OPTIONAL { ?object a ?subclass } <collation-fragment> OPTIONAL { ?object a ?subclass }
FILTER ( afn:namespace(?subclass) != "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" ) FILTER ( afn:namespace(?subclass) != "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" )