Skip to content

Commit

Permalink
fix empty browse; fix links in browse.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
respinos committed Dec 11, 2023
1 parent a920c60 commit f5a1f88
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
9 changes: 8 additions & 1 deletion src/scss/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
max-width: 100%;
}

.text-block ul:not([class]) {
// TODO - this is clunky and either this
// should be refined or the browse.xml should stop
// using staticincl
.text-block > div > ul:not([class]) {
list-style: initial;
padding: revert;
}
Expand Down Expand Up @@ -55,3 +58,7 @@
font-size: 0.875rem;
max-width: 20ch;
}

img.brand {
border-radius: 0;
}
13 changes: 0 additions & 13 deletions templates/text/qbat/qbat.browse.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,6 @@
<xsl:text>.</xsl:text>
</p>
</xsl:if>
<xsl:if test="$nav/@total = 0">
<xsl:call-template name="build-search-hints" />
</xsl:if>
</xsl:template>

<xsl:template name="build-search-tools">
Expand Down Expand Up @@ -547,16 +544,6 @@
</m-callout>
</xsl:template>

<xsl:template name="build-search-hints">
<h3>Other suggestions</h3>
<ul class="[ list-bulleted ]">
<li>Check your spelling.</li>
<li>Try more general keywords.</li>
<li>Try different keywords that mean the same thing.</li>
<li>Try searching in <strong>Anywhere in record</strong>.</li>
</ul>
</xsl:template>

<xsl:template match="qui:label[@for='input-value']">
<label class="text-muted text-xx-small flex--wide" style="margin-bottom: -0.5rem">
<xsl:apply-templates select="." mode="copy-guts" />
Expand Down
1 change: 1 addition & 0 deletions templates/text/qbat/qbat.home.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@

<xsl:template match="qui:img">
<img height="{@height}" width="{@width}">
<xsl:apply-templates select="@class" mode="copy" />
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="starts-with(@src, 'http')">
Expand Down
6 changes: 6 additions & 0 deletions templates/text/qbat/qbat.static.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,11 @@
<xsl:apply-templates mode="copy" />
</h3>
</xsl:template>

<xsl:template match="xhtml:div[@data-slot='list']/xhtml:ul[not(@class)]" mode="copy">
<ul class="list-unstyled">
<xsl:apply-templates mode="copy" />
</ul>
</xsl:template>

</xsl:stylesheet>
2 changes: 0 additions & 2 deletions templates/text/qui/qui.browse.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
<xsl:call-template name="build-browse-index" />
<xsl:call-template name="build-browse-navigation" />
<!-- <xsl:call-template name="build-portfolio-form" /> -->
<qui:message>BOO-YAH-HAH</qui:message>
</xsl:template>

<xsl:template name="get-title">
Expand Down Expand Up @@ -316,7 +315,6 @@
<xsl:template name="build-portfolio-actions" />

<xsl:template name="build-no-results">
<pre>BOO-YAH</pre>
</xsl:template>

<xsl:template match="BrowseList/Tag">
Expand Down

0 comments on commit f5a1f88

Please sign in to comment.