VIVO-454
This commit is contained in:
parent
15169ca894
commit
c2d24cb74d
3 changed files with 12 additions and 9 deletions
|
@ -126,9 +126,9 @@ function setProfileMoniker(monikerContainerID, moniker, doEllipsis) {
|
|||
|
||||
var finalDisplayMoniker;
|
||||
|
||||
if (moniker.length > 30 && doEllipsis) {
|
||||
if (moniker.length > 40 && doEllipsis) {
|
||||
|
||||
finalDisplayMoniker = moniker.substr(0,30) + "...";
|
||||
finalDisplayMoniker = moniker.substr(0,40) + "...";
|
||||
|
||||
} else {
|
||||
|
||||
|
@ -154,9 +154,9 @@ function setProfileName(nameContainerID, name, doNameEllipsis) {
|
|||
|
||||
var finalDisplayName;
|
||||
|
||||
if (name.length > 30 && doNameEllipsis) {
|
||||
if (name.length > 40 && doNameEllipsis) {
|
||||
|
||||
finalDisplayName = name.substr(0,30) + "...";
|
||||
finalDisplayName = name.substr(0,40) + "...";
|
||||
|
||||
} else {
|
||||
|
||||
|
@ -188,7 +188,7 @@ function processProfileInformation(nameContainerID,
|
|||
|
||||
mainImageURL = set[0];
|
||||
|
||||
} else if (key.search(/moniker/i) > -1) {
|
||||
} else if (key.search(/title/i) > -1) {
|
||||
|
||||
moniker = set[0];
|
||||
|
||||
|
|
|
@ -68,8 +68,8 @@ public class UtilitiesRequestHandler implements VisualizationRequestHandler {
|
|||
|
||||
|
||||
String filterRule = "?predicate = j.2:mainImage "
|
||||
// + "|| ?predicate = core:preferredTitle "
|
||||
+ "|| ?predicate = rdfs:label";
|
||||
+ " || ?predicate = rdfs:label "
|
||||
+ " || ?predicate = <http://www.w3.org/2006/vcard/ns#title>";
|
||||
|
||||
QueryRunner<GenericQueryMap> profileQueryHandler =
|
||||
new AllPropertiesQueryRunner(individualURI,
|
||||
|
|
|
@ -99,8 +99,11 @@ public class AllPropertiesQueryRunner implements QueryRunner<GenericQueryMap> {
|
|||
+ "SELECT "
|
||||
+ " (str(?predicate) as ?" + QueryFieldLabels.PREDICATE + ") "
|
||||
+ " (str(?object) as ?" + QueryFieldLabels.OBJECT + ") "
|
||||
+ "WHERE { "
|
||||
+ "<" + queryURI + "> ?predicate ?object. "
|
||||
+ "WHERE { {"
|
||||
+ "<" + queryURI + "> ?predicate ?object. }"
|
||||
+ "UNION {<" + queryURI + "> <http://purl.obolibrary.org/obo/ARG_2000028> ?vCard . "
|
||||
+ "?vCard <http://www.w3.org/2006/vcard/ns#hasTitle> ?vTitle . "
|
||||
+ "?vTitle ?predicate ?object . }"
|
||||
+ filterClause
|
||||
+ "}";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue