VIVO-371 RDF link should be based on /individual, not /display
Removing Tim's "quick fix" in the template and fixing it in the TemplateModel.
This commit is contained in:
parent
8c438872dc
commit
011594c7fc
1 changed files with 5 additions and 3 deletions
|
@ -95,9 +95,11 @@ public abstract class BaseIndividualTemplateModel extends BaseTemplateModel {
|
||||||
|
|
||||||
String individualUri = getUri();
|
String individualUri = getUri();
|
||||||
String profileUrl = getProfileUrl();
|
String profileUrl = getProfileUrl();
|
||||||
boolean isUriInDefaultNamespace = UrlBuilder.isUriInDefaultNamespace(individualUri, vreq);
|
if (UrlBuilder.isUriInDefaultNamespace(individualUri, vreq)) {
|
||||||
return isUriInDefaultNamespace ? profileUrl + "/" + getLocalName() + ".rdf"
|
return UrlBuilder.getUrl("/individual/" + getLocalName() + "/" + getLocalName() + ".rdf") ;
|
||||||
: UrlBuilder.addParams(profileUrl, "format", "rdfxml");
|
} else {
|
||||||
|
return UrlBuilder.addParams(profileUrl, "format", "rdfxml");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public GroupedPropertyList getPropertyList() {
|
public GroupedPropertyList getPropertyList() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue