NIHVIVO-634: Fixed style issues in 'browse by' section for individuals with no thumb images

This commit is contained in:
mb863 2011-01-18 00:16:55 +00:00
parent 75d45dfc5b
commit c41f121235
2 changed files with 18 additions and 23 deletions

View file

@ -273,23 +273,30 @@ ul#alpha-browse-childClass a{
#individuals-in-childClass ul{
list-style: none;
}
#individuals-in-childClass li.individual-foaf-person{
#individuals-in-childClass li.individual-foaf-person,
#individuals-in-childClass li.individual{
width: 39%;
padding-bottom: 30px;
padding-top: 20px;
margin-left: 30px;
margin-right: 30px;
clear: left;
min-height: 100px;
overflow: hidden;
}
#individuals-in-childClass li.individual-foaf-person img{
#individuals-in-childClass li.individual-foaf-person img,
#individuals-in-childClass li.individual img{
float: left;
margin-bottom: 10px;
}
#individuals-in-childClass li.individual-foaf-person h1{
#individuals-in-childClass li.individual-foaf-person h1,
#individuals-in-childClass li.individual h1{
font-weight: bold;
padding: 30px 0 10px 110px;
line-height: 1.2em;
}
#individuals-in-childClass li.individual h1.no-thumb{
padding: 0 0 10px 0;
line-height: 1.2em;
}
#individuals-in-childClass p{
padding-left: 110px;
line-height: 1.2em;
@ -297,18 +304,3 @@ ul#alpha-browse-childClass a{
#individuals-in-childClass span.org{
display: block;
}
#individuals-in-childClass li.individual{
width: 440px;
margin-left: 30px;
margin-right: 30px;
}
#individuals-in-childClass li.individual h1{
margin: 0;
padding: 0;
color: #5e6363;
line-height: 1.2em;
padding-bottom: 20px;
padding-top: 20px;
font-size: 1em;
font-weight: normal;
}

View file

@ -78,11 +78,14 @@ var browseByVClass = {
}
// Build the content of each list item, piecing together each component
listItem = '<li class="individual" role="listitem" role="navigation">';
if ( typeof image !== "undefined" ) {
if ( typeof results.individuals[i].thumbUrl !== "undefined" ) {
listItem += '<img src="'+ image +'" width="90" height="90" alt="'+ label +'" />';
listItem += '<h1><a href="'+ profileUrl +'" title="View the profile page for '+ label +'">'+ label +'</a></h1>';
// Include the moniker only if it's not empty and not equal to the VClass name
}else {
listItem += '<h1 class="no-thumb"><a href="'+ profileUrl +'" title="View the profile page for '+ label +'">'+ label +'</a></h1>';
// Include the moniker only if it's not empty and not equal to the VClass name
}
listItem += '<h1><a href="'+ profileUrl +'" title="View the profile page for '+ label +'">'+ label +'</a></h1>';
// Include the moniker only if it's not empty and not equal to the VClass name
if ( moniker != vclassName && moniker != "" ) {
listItem += '<p>'+ moniker +'</p>';
}