Skip to content

Commit eb555b4

Browse files
authored
Merge pull request #325 from MITLibraries/use-304
USE-304: Updates to No Results to simplify content
2 parents 43a0512 + 4ebce98 commit eb555b4

File tree

3 files changed

+14
-21
lines changed

3 files changed

+14
-21
lines changed

app/assets/stylesheets/partials/_results.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,13 +322,24 @@
322322
}
323323
}
324324

325+
// -------------------------
326+
// NO RESULTS SECTION - USE
327+
// -------------------------
328+
329+
.no-results-container {
330+
max-width: 840px;
331+
332+
#callout-wrapper {
333+
margin-bottom: 0;
334+
}
335+
}
336+
325337
.no-results.use {
326338
border: 0;
327339
font-size: 1.6rem;
328340
line-height: $lh-xloose;
329341
margin: 0;
330342
margin-bottom: 2em;
331-
max-width: 760px;
332343

333344
a {
334345
@include underlinedLinks;
Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
11
<div class="no-results use">
22
<h2>No results were found</h2>
3-
<p>Any misspellings in your search terms?</p>
4-
5-
<p>Even if we don't own it, we can often get it for you:</p>
6-
<ul>
7-
<li>Articles: Request via <a href="https://libraries.mit.edu/illiad">ILLiad</a>
8-
<li>Books, physical materials: Search <a href="https://mit.on.worldcat.org/">WorldCat</a> and submit a request.
9-
</ul>
10-
11-
<p>A specialized or advanced search may work better:</p>
12-
<ul>
13-
<li><a href="https://libraries.mit.edu/search-collections">Search our Collections</a>: MIT Libraries catalog
14-
<li><a href="https://libguides.mit.edu/az.php">A-Z Databases</a>: Browse or search for databases.
15-
<li><a href="http://archivesspace.mit.edu/">ArchivesSpace</a>: Archives and manuscripts in our Distinctive Collections.
16-
<li><a href="https://libraries.mit.edu/dspace">DSpace@MIT</a>: MIT theses, articles and other research materials.
17-
<li><a href="https://geodata.libraries.mit.edu/">GeoData</a>: GIS/spatial data available at MIT.
18-
<li><a href="https://libraries.mit.edu/experts">Subject guides</a>: Created by our librarians for targeted research by subject.
19-
</ul>
20-
21-
<p><a href="http://libraries.mit.edu/ask">Ask Us</a> for more help!</p>
3+
<p>Check the spelling of your search terms, try a less specific search, or <a href="http://libraries.mit.edu/ask">Ask us</a> for help.</p>
224
</div>

app/views/search/results.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<% elsif @errors.blank? %>
4242

4343
<div id="results-layout-wrapper">
44-
<main id="results">
44+
<main id="results" class="no-results-container">
4545
<%= render partial: "no_results" %>
4646

4747
<%# Note `results_callouts` is also displayed in results and no errors condition above %>

0 commit comments

Comments
 (0)