Skip to content

Commit

Permalink
Merge branch 'main' into APPS-1932_create-media-gallery-half-width-2
Browse files Browse the repository at this point in the history
  • Loading branch information
jendiamond authored Sep 22, 2023
2 parents b52cd33 + f53341c commit 32a6eae
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions pages/search-site/index.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<template lang="html">
<main
id="main"
class="page page-search-site"
>
<main id="main" class="page page-search-site">
<masthead-secondary title="Search Results" />

<search-generic
Expand All @@ -13,10 +10,7 @@
/>

<section-wrapper theme="divider">
<divider-way-finder
class="search-margin"
color="default"
/>
<divider-way-finder class="search-margin" color="default" />
</section-wrapper>

<section-wrapper
Expand All @@ -28,10 +22,7 @@
</div>
</section-wrapper>

<section-wrapper
v-else-if="$fetchState.error"
class="results"
>
<section-wrapper v-else-if="$fetchState.error" class="results">
<p>There is an error</p>
</section-wrapper>

Expand All @@ -51,7 +42,9 @@
>
<h2 class="about-results">
Displaying {{ page.hits.total.value }} results for
<strong><em>“{{ $route.query.q }}”</em></strong>
<strong
><em>“{{ $route.query.q }}”</em></strong
>
</h2>

<section-wrapper
Expand All @@ -75,10 +68,7 @@
/>
</section-wrapper>
</section-wrapper>
<section-wrapper
v-else
class="section-no-top-margin"
>
<section-wrapper v-else class="section-no-top-margin">
<rich-text class="error-text">
<h2>Search for “{{ $route.query.q }}” not found.</h2>
<p>
Expand All @@ -88,22 +78,24 @@
</p>
<ul>
<li>
<a
href="https://library.ucla.edu"
>UCLA Library Home</a>
<a href="https://library.ucla.edu"
>UCLA Library Home</a
>
</li>
<li>
<a
href="https://www.library.ucla.edu/research-teaching-support/research-help"
>Research Help</a>
>Research Help</a
>
</li>
<li>
<a href="/help/services-resources/ask-us">Ask Us</a>
</li>
<li>
<a
href="https://www.library.ucla.edu/use/access-privileges/disability-resources"
>Accessibility Resources</a>
>Accessibility Resources</a
>
</li>
</ul>
</rich-text>
Expand Down Expand Up @@ -293,10 +285,13 @@ export default {
methods: {
parseCategory(sectionHandle) {
if (!sectionHandle) return
return sectionHandle
.split(/(?=[A-Z])/)
.join(" ")
.toUpperCase()
if (sectionHandle == "Libguide") {
return "RESEARCH GUIDE"
} else
return sectionHandle
.split(/(?=[A-Z])/)
.join(" ")
.toUpperCase()
},
async setFilters() {
/*const searchAggsResponse =
Expand Down

0 comments on commit 32a6eae

Please sign in to comment.