This commit is contained in:
parent
71ed7330d5
commit
ace9f86f5c
1 changed files with 4 additions and 5 deletions
|
@ -68,14 +68,13 @@ var browseByVClass = {
|
||||||
$.each(results.individuals, function(i, item) {
|
$.each(results.individuals, function(i, item) {
|
||||||
indivLabel = results.individuals[i].label;
|
indivLabel = results.individuals[i].label;
|
||||||
indivUri = results.individuals[i].URI;
|
indivUri = results.individuals[i].URI;
|
||||||
// test for individual image is not currently functional
|
indivProfileUrl = results.individuals[i].profileUrl;
|
||||||
// since the image is not yet included in the JSON results
|
if ( !results.individuals[i].imageUrl ) {
|
||||||
if ( !results.individuals[i].image ) {
|
|
||||||
indivImage = browseByVClass.baseUrl + '/images/placeholders/person.thumbnail.jpg';
|
indivImage = browseByVClass.baseUrl + '/images/placeholders/person.thumbnail.jpg';
|
||||||
} else {
|
} else {
|
||||||
indivImage = results.individuals[i].image;
|
indivImage = browseByVClass.baseUrl + results.individuals[i].imageUrl;
|
||||||
}
|
}
|
||||||
browseByVClass.individualsInVClass.append('<article class="vcard individual-foaf-person" role="navigation"> <img src="'+ indivImage +'" width="90" height="90" alt="'+ indivLabel +'" /><h1 class="fn"><a href="'+ indivUri +'" title="View the profile page for '+ indivLabel +'">'+ indivLabel + '</a></h1><p>core:preferredTitle <span class="org">org from preferredTitle??</span></p></article>');
|
browseByVClass.individualsInVClass.append('<article class="vcard individual-foaf-person" role="navigation"> <img src="'+ indivImage +'" width="90" height="90" alt="'+ indivLabel +'" /><h1 class="fn"><a href="'+ indivProfileUrl +'" title="View the profile page for '+ indivLabel +'">'+ indivLabel + '</a></h1><p>core:preferredTitle <span class="org">org from preferredTitle??</span></p></article>');
|
||||||
})
|
})
|
||||||
// set selected class and alpha
|
// set selected class and alpha
|
||||||
browseByVClass.selectedVClass(results.vclass.URI);
|
browseByVClass.selectedVClass(results.vclass.URI);
|
||||||
|
|
Loading…
Add table
Reference in a new issue