VIVO-215: fix layout of search results page - the first search result was appearing up in the header as were the facets; standardize look of the download popup. Also ensure that longer headings that include types from the facet wrap to new line rather than overrun the search help link.
This commit is contained in:
parent
fcbe59dcf6
commit
46ae630e95
5 changed files with 25 additions and 28 deletions
|
@ -268,11 +268,6 @@ input#uriLink {
|
||||||
width: 350px;
|
width: 350px;
|
||||||
font-size: .8em;
|
font-size: .8em;
|
||||||
}
|
}
|
||||||
a.close {
|
|
||||||
float: right;
|
|
||||||
margin-right: .3em;
|
|
||||||
font-size: .8em;
|
|
||||||
}
|
|
||||||
.rdf-url {
|
.rdf-url {
|
||||||
display: block;
|
display: block;
|
||||||
padding-top: 0.8em;
|
padding-top: 0.8em;
|
||||||
|
|
|
@ -83,18 +83,11 @@ span#searchHelp {
|
||||||
font-size:.825em;
|
font-size:.825em;
|
||||||
padding-right:32px
|
padding-right:32px
|
||||||
}
|
}
|
||||||
|
|
||||||
span#downloadResults {
|
|
||||||
float:left;
|
|
||||||
margin-top:10px;
|
|
||||||
font-size:.825em;
|
|
||||||
padding-left:10px
|
|
||||||
}
|
|
||||||
|
|
||||||
img#downloadIcon {
|
img#downloadIcon {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
margin-left: 6px;
|
||||||
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-url {
|
.download-url {
|
||||||
padding: 5px 25px 5px;
|
padding: 5px 25px 5px;
|
||||||
}
|
}
|
|
@ -140,9 +140,22 @@
|
||||||
.searchTOC ul span {
|
.searchTOC ul span {
|
||||||
float:right;
|
float:right;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
color:grey;
|
color:gray;
|
||||||
font-size:smaller;
|
font-size:smaller;
|
||||||
}
|
}
|
||||||
|
.contentsBrowseGroup {
|
||||||
|
clear:both;
|
||||||
|
padding-top: 5px;
|
||||||
|
}
|
||||||
|
.searchResultsHeader {
|
||||||
|
width: 675px;
|
||||||
|
float:left;
|
||||||
|
}
|
||||||
|
a.close {
|
||||||
|
float: right;
|
||||||
|
margin-right: .3em;
|
||||||
|
font-size: .8em;
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------------> */
|
/* -------------------------------------------------> */
|
||||||
/* DROP DOWN USER MENU ----------------------------> */
|
/* DROP DOWN USER MENU ----------------------------> */
|
||||||
|
|
|
@ -3,21 +3,21 @@
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
// This function creates and styles the "qTip" tooltip that displays the resource uri and the rdf link when the user clicks the uri/rdf icon.
|
// This function creates and styles the "qTip" tooltip that displays the resource uri and the rdf link when the user clicks the uri/rdf icon.
|
||||||
|
|
||||||
$('span#downloadResults').children('img#downloadIcon').each(function()
|
$('img#downloadIcon').each(function()
|
||||||
{
|
{
|
||||||
$(this).qtip(
|
$(this).qtip(
|
||||||
{
|
{
|
||||||
content: {
|
content: {
|
||||||
prerender: true, // We need this for the .click() event listener on 'a.close'
|
prerender: true, // We need this for the .click() event listener on 'a.close'
|
||||||
text: '<div style="float:right; width:150px">'
|
text: '<div style="float:right; width:150px;border-left: 1px solid #A6B1B0; padding: 3px 0 0 20px">'
|
||||||
+'<p><label for="amount" style="font-size:14px;">Maximum Records:</label>'
|
+'<p><label for="amount" style="font-size:14px;">Maximum Records:</label>'
|
||||||
+'<input disabled type="text" id="amount" style="margin-left:35px; border: 0; color: #f6931f; font-weight: bold; width:45px" /></p>'
|
+'<input disabled type="text" id="amount" style="margin-left:35px; border: 0; color: #f6931f; font-weight: bold; width:45px" /></p>'
|
||||||
+'<div id="slider-vertical" style="margin-left:60px; margin-top: -20px; height: 100px; background-color:white"></div>'
|
+'<div id="slider-vertical" style="margin-left:60px; margin-top: -20px; height: 100px; background-color:white"></div>'
|
||||||
+'</div>'
|
+'<br /><a class="close" href="#">close</a></div>'
|
||||||
+'<div style="float:left; width:300px"><h5>Download the results from this search</h5> '
|
+'<div style="float:left; width:280px"><h5>Download the results from this search</h5> '
|
||||||
+'<h5 class ="download-url"><a id=xmlDownload href="' + urlsBase + '/search?' + queryText +'&xml=1&hitsPerPage=500">download results in XML format</a></h5>'
|
+'<h5 class ="download-url"><a id=xmlDownload href="' + urlsBase + '/search?' + queryText +'&xml=1&hitsPerPage=500">download results in XML format</a></h5>'
|
||||||
+'<h5 class ="download-url"><a id=csvDownload href="' + urlsBase + '/search?' + queryText +'&csv=1&hitsPerPage=500">download results in CSV format</a></h5>'
|
+'<h5 class ="download-url"><a id=csvDownload href="' + urlsBase + '/search?' + queryText +'&csv=1&hitsPerPage=500">download results in CSV format</a></h5>'
|
||||||
+'<br /><a class="close" href="#">close</a></div>'
|
+'</div>'
|
||||||
|
|
||||||
},
|
},
|
||||||
position: {
|
position: {
|
||||||
|
|
|
@ -2,10 +2,7 @@
|
||||||
|
|
||||||
<#-- Template for displaying paged search results -->
|
<#-- Template for displaying paged search results -->
|
||||||
|
|
||||||
|
<h2 class="searchResultsHeader">
|
||||||
|
|
||||||
|
|
||||||
<h2 style="float:left">
|
|
||||||
<#escape x as x?html>
|
<#escape x as x?html>
|
||||||
${i18n().search_results_for} '${querytext}'
|
${i18n().search_results_for} '${querytext}'
|
||||||
<#if classGroupName?has_content>${i18n().limited_to_type} '${classGroupName}'</#if>
|
<#if classGroupName?has_content>${i18n().limited_to_type} '${classGroupName}'</#if>
|
||||||
|
@ -22,11 +19,10 @@
|
||||||
|
|
||||||
var urlsBase = '${urls.base}';
|
var urlsBase = '${urls.base}';
|
||||||
</script>
|
</script>
|
||||||
</h2>
|
|
||||||
|
|
||||||
<span id="downloadResults" title="Download Results">
|
<img id="downloadIcon" src="images/download-icon.png" alt="Download Results" title="Download Results" />
|
||||||
<img id="downloadIcon" src="images/download-icon.png" alt="Download Results" />
|
<#-- <span id="downloadResults" style="float:left"></span> -->
|
||||||
</span>
|
</h2>
|
||||||
|
|
||||||
<span id="searchHelp"><a href="${urls.base}/searchHelp" title="${i18n().search_help}">${i18n().not_expected_results}</a></span>
|
<span id="searchHelp"><a href="${urls.base}/searchHelp" title="${i18n().search_help}">${i18n().not_expected_results}</a></span>
|
||||||
<div class="contentsBrowseGroup">
|
<div class="contentsBrowseGroup">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue